Debugging a plugin
Andreas Ericsson
ae at op5.se
Tue Oct 26 10:15:11 CEST 2004
Jason Martin wrote:
> On Mon, Oct 25, 2004 at 04:28:38PM -0700, Steve Garcia wrote:
>
>>Is there a way to log the actual command issued by nagios to perform a
>>service check?
>
> A permutation of the 'strace' command can do that for you.
>
Or ./configure --enable-DEBUG3; make nagios and then run it as a
foreground process with
nagios nagios.cfg > output.log 2>&1 &
to redirect all output to output.log and detach it from terminal. Then
use the web-interface to force the check you wish to run.
output.log should contain all the info you need (and plenty more as well).
> -Jason Martin
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
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