I believe the problem is the output.

What Zenoss is going to want is something like:
PING OK|loss=0 RTA=0.95

The second | is going to screw it up, not to mention the text and 
semicolons...
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University



solarius wrote, On 5/18/2009 3:16 AM:
> I've been reading some docs about using build-in nagios plugin commands to 
> plot performance graph. I followed the guide and added a data source using 
> 
>> /usr/local/zenoss/libexec/check_ping -H ${dev/manageIp} -w 100,80% -c 
>> 200,90% -p 5 | sed ’s/, RTA = \([0-9.]*\) ms/ RTA=\1/’ | sed ’s/ - 
>> Packet loss = \([0-9]*\)%/|loss=\1/’
>   Test run works fine, it returns something like : 
>> PING OK|loss=0 RTA=0.95|rta=0.949000ms;100.000000;200.000000;0.000000 pl=0%;8
> 
> 
> Then i continue to add data point called RTA and a graph plot from it. I 
> expected a graph ploted from the part I've highlighted. Strangely the graph 
> never shows up. It's a graph containing nothing but a title.
> 
> I suspected that the data was never collected  properly, as I've only ploted 
> graph from OID and I'm not sure how the data source from command is 
> collected. Anyone knows how it is done or what I've done wrong?
> 
> 
> 
> 
> -------------------- m2f --------------------
> 
> Read this topic online here:
> http://forums.zenoss.com/viewtopic.php?p=34931#34931
> 
> -------------------- m2f --------------------
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> zenoss-users mailing list
> [email protected]
> http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to