check_ping: Could not interpret...

alan.simon at free.fr alan.simon at free.fr
Wed May 11 18:31:29 CEST 2005


great!

it's working fine.
thanks.

observations :
- on host DOWN the ^M caracter missing at the end of the output :
[nagios at test plugins]$./check_ping -H 10.X.X.X -w 3000,80% -c 5000,100%
CRITICAL - Host Unreachable (10.X.X.X)[nagios at test plugins]$
[nagios at test plugins]$
[nagios at test plugins]$ ./check_ping -H 10.99.200.60 -w 3000,80% -c 5000,100%
PING OK - Packet loss = 0%, RTA = 0.29 ms
[nagios at test plugins]$
## I've put "\n" on line 466 468 470 and 472 it's seems to be all rigth:
## -> die (STATE_CRITICAL, _("CRITICAL - Network unreachable\n (%s)"), addr);

- the binary is big
size   binary
25044  check_ping_1.11
31598  check_ping_1.42
53803  check_ping_1.42_compiled  #setlocale(LC_ALL,"C")

that's all
thanks again





Selon news gonzo news gonzo <news_gonzo at yahoo.fr>:

> in check_ping.c
> find setlocale(LC_ALL,"") and remplace by
> setlocale(LC_ALL,"C")
>
> Say me if it works or not ....
> --- alan.simon at free.fr a écrit:
> > hi all,
> >
> > I'am using :
> > nagios-1.2-2.1.el3.rf
> > nagios-plugins-1.4-2.1.el3.rf
> > fping-2.4-1.b2.1.el3.rf
> >  on a RedHat EL3
> >
> > and testing two versions of check_ping
> > check_ping -V :
> > 1.11 (nagios-plugins 1.3.1)
> > 1.42 (nagios-plugins 1.4)
> >
> > I get this known Error:  Could not interpret output
> > from ping command
> > on host up with version 1.42 (work fine on host
> > down)
> > on host down (unused IP) with version 1.11 (work
> > fine on host up)
> >
> > and here's the output of the ping command :
> > ### on host UP :
> >  /bin/ping -n -U -w 30 -c 5 10.X.X.X  # commande
> > give by version 1.42's output
> > PING 10.X.X.X (10.X.X.X) 56(84) bytes of data.
> > 64 bytes from 10.X.X.X: icmp_seq=0 ttl=128
> > time=0.255 ms
> > 64 bytes from 10.X.X.X: icmp_seq=1 ttl=128
> > time=0.220 ms
> > 64 bytes from 10.X.X.X: icmp_seq=2 ttl=128
> > time=0.237 ms
> > 64 bytes from 10.X.X.X: icmp_seq=3 ttl=128
> > time=0.232 ms
> > 64 bytes from 10.X.X.X: icmp_seq=4 ttl=128
> > time=0.264 ms
> >
> > --- 10.X.X.X ping statistics ---
> > 5 packets transmitted, 5 received, 0% packet loss,
> > time 4016ms
> > rtt min/avg/max/mdev = 0.220/0.241/0.264/0.023 ms,
> > pipe 2
> >
> > ### on host DOWN :
> > [nagios at nagios1 nagios]$ /bin/ping -n -U -c 5
> > 10.X.X.X # commande give by
> > version 1.11's output
> >
> > PING 10.X.X.X (10.X.X.X) 56(84) bytes of data.
> > From 10.X.X.Y icmp_seq=0 Destination Host
> > Unreachable
> > From 10.X.X.Y icmp_seq=1 Destination Host
> > Unreachable
> > From 10.X.X.Y icmp_seq=2 Destination Host
> > Unreachable
> > From 10.X.X.Y icmp_seq=3 Destination Host
> > Unreachable
> > From 10.X.X.Y icmp_seq=4 Destination Host
> > Unreachable
> >
> > --- 10.X.X.X ping statistics ---
> > 5 packets transmitted, 0 received, +5 errors, 100%
> > packet loss, time 4019ms
> > , pipe 4
> >
> > here's the question :
> > whitch version i need?
> > did i realy need to compile it on my own?
> >
> > thanks for all
> >  sorry for my bad language
> >
> >
> >
> -------------------------------------------------------
> > This SF.Net email is sponsored by Oracle Space
> > Sweepstakes
> > Want to be the first software developer in space?
> > Enter now for the Oracle Space Sweepstakes!
> > http://ads.osdn.com/?ad_ids93&alloc_id281&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
> >
>
>
>
>
>
> _____________________________________________________________________________
> Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails,
> photos et vidéos !
> Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/
>




-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93&alloc_id281&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