[rrd-users] CDEF: comparing Strings

Simon Hobson linux at thehobsons.co.uk
Tue Nov 8 13:30:21 CET 2011


A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

Andre Luis wrote:

>>Simple, in your script, translate from whatever you get back via SNMP
>>to a numeric value. Eg, "good" = 1, "failed" = 0. Store that number
>>(use gauge datatype) in RRD. Then what you get out from RRD will be a
>>measure of "goodness" over the consolidation/normalisation period
>>queried. Eg, if when you consolidate, half the samples were 1, and
>>half were 0, then you'd get 0.5 returned.

>how do I do that? ..
>it's a xml script..
>the part where the status is taken is this one:
>
><StatusServer>
><name>StatusServer</name>
><method>get</method>
><source>value</source>
><direction>output</direction>
><oid>.1.3.6.1.4.1.140.625.360.1.60</oid>
></StatusServer>

Dunno, this is the list for help on RRD Tools. You'd probably be 
better asking on the list that supports whatever tool (did you say 
Cacti ?) that you are using for data collection.

-- 
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.



More information about the rrd-users mailing list