unix agent polling broken in 3397 - likely a couple of versions before too
![](https://secure.gravatar.com/avatar/80c1e58ea561aab499c92d422f951e8d.jpg?s=120&d=mm&r=g)
No data for servers using the unix agent for a couple of weeks now. Have Observium build 3397 installed. Just had a chance to do some troubleshooting...
Running poller update on a specific server in debug mode reveals the apparent problem:
=======================================================================================
including: includes/polling/unix_agent.inc.php PHP Warning: include(includes/polling/unix_agent.inc.php): failed to open stream: No such file or directory in /opt/observium/includes/polling/functions.inc.php on line 192
Warning: include(includes/polling/unix_agent.inc.php): failed to open stream: No such file or directory in /opt/observium/includes/polling/functions.inc.php on line 192 PHP Warning: include(): Failed opening 'includes/polling/unix_agent.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /opt/observium/includes/polling/functions.inc.php on line 192
Warning: include(): Failed opening 'includes/polling/unix_agent.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /opt/observium/includes/polling/functions.inc.php on line 192
=======================================================================================
Fixed (worked around) by running:
ln -s /opt/observium/includes/polling/unix-agent.inc.php /opt/observium/includes/polling/unix_agent.inc.php
Added to Jira as well: http://jira.observium.org/browse/OBSERVIUM-154
Chris
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
This is almost certainly because you have put 'unix_agent' into your config instead of 'unix-agent'.
$config['poller_modules']['unix-agent'] = 0;
adam.
On 17/10/2012 12:41, Chris Stone wrote:
No data for servers using the unix agent for a couple of weeks now. Have Observium build 3397 installed. Just had a chance to do some troubleshooting...
Running poller update on a specific server in debug mode reveals the apparent problem:
=======================================================================================
including: includes/polling/unix_agent.inc.php PHP Warning: include(includes/polling/unix_agent.inc.php): failed to open stream: No such file or directory in /opt/observium/includes/polling/functions.inc.php on line 192
Warning: include(includes/polling/unix_agent.inc.php): failed to open stream: No such file or directory in /opt/observium/includes/polling/functions.inc.php on line 192 PHP Warning: include(): Failed opening 'includes/polling/unix_agent.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /opt/observium/includes/polling/functions.inc.php on line 192
Warning: include(): Failed opening 'includes/polling/unix_agent.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /opt/observium/includes/polling/functions.inc.php on line 192
=======================================================================================
Fixed (worked around) by running:
ln -s /opt/observium/includes/polling/unix-agent.inc.php /opt/observium/includes/polling/unix_agent.inc.php
Added to Jira as well: http://jira.observium.org/browse/OBSERVIUM-154
Chris
-- Chris Stone AxisInternet, Inc. www.axint.net http://www.axint.net
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/80c1e58ea561aab499c92d422f951e8d.jpg?s=120&d=mm&r=g)
That line was in the config file - fixed it to be unix-agent instead of unix_agent and the error is gone....
However, I am getting no data shown in the web interface for any servers that I have setup to use the agent. Looking that the poller output, seems that it is getting data and the rrd files are there and look to be updated, but the graphs are all empty....just changed one of the servers back from the agent to using just snmp and I am again getting data on the graphs for that server...
Suggestions?
Chris
On Wed, Oct 17, 2012 at 11:50 AM, Adam Armstrong adama@memetic.org wrote:
This is almost certainly because you have put 'unix_agent' into your config instead of 'unix-agent'.
$config['poller_modules']['unix-agent'] = 0;
adam.
On 17/10/2012 12:41, Chris Stone wrote:
No data for servers using the unix agent for a couple of weeks now. Have Observium build 3397 installed. Just had a chance to do some troubleshooting...
Running poller update on a specific server in debug mode reveals the apparent problem:
=======================================================================================
including: includes/polling/unix_agent.inc.php PHP Warning: include(includes/polling/unix_agent.inc.php): failed to open stream: No such file or directory in /opt/observium/includes/polling/functions.inc.php on line 192
Warning: include(includes/polling/unix_agent.inc.php): failed to open stream: No such file or directory in /opt/observium/includes/polling/functions.inc.php on line 192 PHP Warning: include(): Failed opening 'includes/polling/unix_agent.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /opt/observium/includes/polling/functions.inc.php on line 192
Warning: include(): Failed opening 'includes/polling/unix_agent.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /opt/observium/includes/polling/functions.inc.php on line 192
=======================================================================================
Fixed (worked around) by running:
ln -s /opt/observium/includes/polling/unix-agent.inc.php /opt/observium/includes/polling/unix_agent.inc.php
Added to Jira as well: http://jira.observium.org/browse/OBSERVIUM-154
Chris
-- Chris Stone AxisInternet, Inc. www.axint.net
observium mailing listobservium@observium.orghttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
I'm not sure, it depends a lot upon which applications you're using, and wether the agent is giving data properly.
adam.
On 17/10/2012 18:12, Chris Stone wrote:
That line was in the config file - fixed it to be unix-agent instead of unix_agent and the error is gone....
However, I am getting no data shown in the web interface for any servers that I have setup to use the agent. Looking that the poller output, seems that it is getting data and the rrd files are there and look to be updated, but the graphs are all empty....just changed one of the servers back from the agent to using just snmp and I am again getting data on the graphs for that server...
Suggestions?
Chris
On Wed, Oct 17, 2012 at 11:50 AM, Adam Armstrong <adama@memetic.org mailto:adama@memetic.org> wrote:
This is almost certainly because you have put 'unix_agent' into your config instead of 'unix-agent'. $config['poller_modules']['unix-agent'] = 0; adam. On 17/10/2012 12:41, Chris Stone wrote:
No data for servers using the unix agent for a couple of weeks now. Have Observium build 3397 installed. Just had a chance to do some troubleshooting... Running poller update on a specific server in debug mode reveals the apparent problem: ======================================================================================= including: includes/polling/unix_agent.inc.php PHP Warning: include(includes/polling/unix_agent.inc.php): failed to open stream: No such file or directory in /opt/observium/includes/polling/functions.inc.php on line 192 Warning: include(includes/polling/unix_agent.inc.php): failed to open stream: No such file or directory in /opt/observium/includes/polling/functions.inc.php on line 192 PHP Warning: include(): Failed opening 'includes/polling/unix_agent.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /opt/observium/includes/polling/functions.inc.php on line 192 Warning: include(): Failed opening 'includes/polling/unix_agent.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /opt/observium/includes/polling/functions.inc.php on line 192 ======================================================================================= Fixed (worked around) by running: ln -s /opt/observium/includes/polling/unix-agent.inc.php /opt/observium/includes/polling/unix_agent.inc.php Added to Jira as well: http://jira.observium.org/browse/OBSERVIUM-154 Chris -- Chris Stone AxisInternet, Inc. www.axint.net <http://www.axint.net> _______________________________________________ observium mailing list observium@observium.org <mailto:observium@observium.org> http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________ observium mailing list observium@observium.org <mailto:observium@observium.org> http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Chris Stone AxisInternet, Inc. www.axint.net http://www.axint.net
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/80c1e58ea561aab499c92d422f951e8d.jpg?s=120&d=mm&r=g)
It's all pretty basic and standard really. Interested in seeing the output of poller.php in debug mode for a particular host?
Chris
On Wed, Oct 17, 2012 at 5:41 PM, Adam Armstrong adama@memetic.org wrote:
I'm not sure, it depends a lot upon which applications you're using, and wether the agent is giving data properly.
adam.
On 17/10/2012 18:12, Chris Stone wrote:
That line was in the config file - fixed it to be unix-agent instead of unix_agent and the error is gone....
However, I am getting no data shown in the web interface for any servers that I have setup to use the agent. Looking that the poller output, seems that it is getting data and the rrd files are there and look to be updated, but the graphs are all empty....just changed one of the servers back from the agent to using just snmp and I am again getting data on the graphs for that server...
Suggestions?
Chris
On Wed, Oct 17, 2012 at 11:50 AM, Adam Armstrong adama@memetic.orgwrote:
This is almost certainly because you have put 'unix_agent' into your config instead of 'unix-agent'.
$config['poller_modules']['unix-agent'] = 0;
adam.
On 17/10/2012 12:41, Chris Stone wrote:
No data for servers using the unix agent for a couple of weeks now. Have Observium build 3397 installed. Just had a chance to do some troubleshooting...
Running poller update on a specific server in debug mode reveals the apparent problem:
=======================================================================================
including: includes/polling/unix_agent.inc.php PHP Warning: include(includes/polling/unix_agent.inc.php): failed to open stream: No such file or directory in /opt/observium/includes/polling/functions.inc.php on line 192
Warning: include(includes/polling/unix_agent.inc.php): failed to open stream: No such file or directory in /opt/observium/includes/polling/functions.inc.php on line 192 PHP Warning: include(): Failed opening 'includes/polling/unix_agent.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /opt/observium/includes/polling/functions.inc.php on line 192
Warning: include(): Failed opening 'includes/polling/unix_agent.inc.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /opt/observium/includes/polling/functions.inc.php on line 192
=======================================================================================
Fixed (worked around) by running:
ln -s /opt/observium/includes/polling/unix-agent.inc.php /opt/observium/includes/polling/unix_agent.inc.php
Added to Jira as well: http://jira.observium.org/browse/OBSERVIUM-154
Chris
-- Chris Stone AxisInternet, Inc. www.axint.net
observium mailing listobservium@observium.orghttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Chris Stone AxisInternet, Inc. www.axint.net
observium mailing listobservium@observium.orghttp://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (2)
-
Adam Armstrong
-
Chris Stone