Check not running
Mike Chesnut
mikec at aggregateknowledge.com
Wed Jun 17 21:13:44 CEST 2009
Any ideas how I could debug a check that works when using
capture_plugin.pl, but never gets scheduled or run otherwise?
Thanks,
Mike
Mike Chesnut wrote:
> I have a check that never runs. The services I've defined that use it
> sit at the top of the scheduling queue, with their next check always
> within a few minutes of the last time I restarted nagios. This remains
> the case even if I reschedule their next check time in the web interface
> (while I see a line in the log file confirming that I rescheduled it,
> the "next check" does not update and the check is never run).
>
> The check is defined like this:
>
> command_line /etc/nagios/plugins/check_snmp_byportname.pl --host
> $HOSTADDRESS$ --community mycommunity --port $ARG1$
>
> What's really weird is that if I change it to use Wolfgang Wagner's
> capture_plugin.pl*, then everything works as expected. I change the
> above to this:
>
> command_line /etc/nagios/plugins/capture_plugin.pl
> /etc/nagios/plugins/check_snmp_byportname.pl --host $HOSTADDRESS$
> --community mycommunity --port $ARG1$
>
> and then I am able to see the output in /tmp/camptured-plugins.log, the
> status updates in nagios, these checks get cycled through the scheduler
> queue normally, and everything is as it should be.
>
> check_snmp_byportname.pl is a script I've written that's essentially
> just a wrapper around the stock check_snmp. It works on its own (from
> the command line) as expected, and works when called with
> capture_plugin.pl as a wrapper.
>
> If I then remove the capture_plugin.pl part of that command definition
> and restart (and this is the *only* change I'm making), then this
> particular check goes back to not working (while everything else
> continues to work as normal).
>
> This is on Nagios 2.9 (I'm using the rpm provided by Dag Wieers, on
> CentOS 5.2).
>
> What else can I do to debug this? I thought that using capture_plugin
> would show me what was wrong with this check, but instead it just showed
> me that nothing is wrong, apparently. I'm kind of confused at this point.
>
> Sorry this is so long. I wanted to try to include as much information
> and observations as possible.
>
> Thanks in advance for the help,
> Mike
>
> * - from here: http://www.waggy.at/nagios/capture_plugin.htm
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list