RE: [Nagios-users] debug mode
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of John Jolet Sent: Monday, November 21, 2005 9:48 AM To: nagios-users@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_namecheck_nrpe command_lineecho $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_idv28alloc_id845op=click ___ Nagios-users mailing list Nagios-users@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
Re: [Nagios-users] debug mode
On Monday 21 November 2005 09:58, Marc Powell wrote: 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_namecheck_nrpe command_lineecho $USER1$/check_nrpe $HOSTADDRESS$ -c $ARG1$ -to 30 /tmp/command.lines } not using nrpeusing snmp direct from my monitoring box. -- 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_idv28alloc_id845op=Click ___ Nagios-users mailing list Nagios-users@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 -- John Jolet Your On-Demand IT Department 512-762-0729 www.jolet.net [EMAIL PROTECTED] --- 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_id=7628alloc_id=16845op=click ___ Nagios-users mailing list Nagios-users@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
RE: [Nagios-users] debug mode
-Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of John Jolet Sent: Monday, November 21, 2005 10:09 AM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] debug mode On Monday 21 November 2005 09:58, Marc Powell wrote: 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_namecheck_nrpe command_lineecho $USER1$/check_nrpe $HOSTADDRESS$ -c $ARG1$ -to 30 /tmp/command.lines } not using nrpeusing snmp direct from my monitoring box. It doesn't matter. It was just an example. You can do the same with any command. -- 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_idv28alloc_id845op=click ___ Nagios-users mailing list Nagios-users@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