Debugging Plugins
Posted: Thu Jun 03, 2010 10:21 am
I just installed NagaiosXI and am attempting to migrate some plugins
from the Nagios Core server with some difficulty
Perhaps someone can help get me started
I have a plugin called check_disk_space which does an ssh into my linux, freebsd and solaris
hosts and does a df and warns of filesystems over 90% and critcal for over 95%
I have copied this plugin over to /usr/local/nagios/libexec on the NagiosXI system and added it as a service
with this check command, the same as on the old server
$USER1$/check_disk_space -w90 -c95 -H $HOSTADDRESS$
when I log into the server as nagios and run this command manually, I get the proper
output, but the service for the host is calling it a critical failure and displaying
output as (null)
How can I debug what is failing as far as NagiosXI is concerned
Not sure what other information you would need to help me find a way to debug this
from the Nagios Core server with some difficulty
Perhaps someone can help get me started
I have a plugin called check_disk_space which does an ssh into my linux, freebsd and solaris
hosts and does a df and warns of filesystems over 90% and critcal for over 95%
I have copied this plugin over to /usr/local/nagios/libexec on the NagiosXI system and added it as a service
with this check command, the same as on the old server
$USER1$/check_disk_space -w90 -c95 -H $HOSTADDRESS$
when I log into the server as nagios and run this command manually, I get the proper
output, but the service for the host is calling it a critical failure and displaying
output as (null)
How can I debug what is failing as far as NagiosXI is concerned
Not sure what other information you would need to help me find a way to debug this