Host DOWN alerts not passing pluging output

Quanah Gibson-Mount quanah at stanford.edu
Thu Jul 1 01:12:44 CEST 2004



--On Monday, June 28, 2004 2:56 PM -0400 Alex Burger <alex at fragit.net> 
wrote:

> It looks like check_ping is expecting the 'From 10.36.39.219 icmp_seq=1
> Destination Host Unreachable' message to be sent to STDERR from ping, but
> on my system it goes to STDOUT.
>
> To test, I created a script that outputs to STDERR a ping result, and
> changed check_ping to call my script instead:
>
># !/usr/bin/perl
> select STDERR;
> print "From 192.168.1.1 icmp_seq=1 Destination Host Unreachable\n";
> print "\n";
> print "--- 192.168.1.1 ping statistics ---\n";
> print "echo 1 packets transmitted, 0 received, +1 errors, 100% packet
> loss, time 0ms\n";
>
> Calling check_ping, I get:
>
> PING CRITICAL - Host Unreachable
>
> If I changed the script by removing 'select STDERR', I get:
>
> Error: Could not interpret output from ping command

Have you filed a bug in the Nagios bug tracker (although be aware you may 
not hear anything on bugs filed there for many months)?

--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
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