zenoss-users  

[zenoss-users] Re: How to create graph for ping (response time and packet loss)

snarkout
Fri, 21 Mar 2008 13:46:47 -0700

FWIW, that sed line doesn't handle packet loss correctly - as is, it kicks out 
"PING CRITICAL|loss=100%" when there are failures, which graphs weirdly.

I had to edit the command sightly:

check_ping -H 65.19.32.22 -w 180,100% -c 300,100% | sed -e 's/ - Packet 
loss/|loss/;s/%,//;s/00%//;s/ms//;s/ = /=/g'

It was too hard for me to read using # as a delimiter, so I went traditional.  
This results in "PING CRITICAL|loss=1" when there is packet loss.  Good times.




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=17701#17701

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
zenoss-users@zenoss.org
http://lists.zenoss.org/mailman/listinfo/zenoss-users