debug mode

Marc Powell marc at ena.com
Mon Nov 21 16:58:13 CET 2005



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of John Jolet
> Sent: Monday, November 21, 2005 9:48 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] debug mode
> 
> I've written a check that seems to work just dandy from the command
line,
> and
> I BELIEVE i've got the same syntax for it in checkcommands.cfg, but
the
> return info from the check as run by nagios does not seem to be
working
> right.  Is there a way to see EXACTLY what the check command looked
like
> when
> nagios ran it?  Like a debug flag on the checks or something?  I
haven't
> found anything like that in the docs, but I can find no reason why my
> check
> works at the command line, but only partially works via nagios.

You could enable debug at compile time (./configure --help) or you could
just wrap your command_line in an echo like --

# 'check_nrpe' command definition
define command{
        command_name    check_nrpe
        command_line    echo "$USER1$/check_nrpe $HOSTADDRESS$ -c $ARG1$
-to 30" >> /tmp/command.lines
        }

--
Marc 


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
_______________________________________________
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