Return code of 141 is out of bounds

Nico Rittner nrittner at cs.atlas-brb.de
Thu Oct 27 11:36:20 CEST 2005


Hello,

if want to ping a host, and if that fails
trace the route to it:

command_line	ping -c 4 2.3.4.5 || /usr/sbin/traceroute -n 2.3.4.5 2>&1

if the 'ping' fails ,nagios notifies me,
but the expected output of traceroute is missing.
If i run this command under some interactive shell
as 'nagios' everything works.
i also tried quoting the command, because nagios
calls "sh -c <command>" .
I don't want to write an extra script for that,
so is there a way to do this directly in the config-file?

Regards,


Nico


-------------------------------------------------------
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
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
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