[mrtg] newbie question: how to convert string -> value?
Evert
evert at meulie.net
Fri Feb 27 13:29:32 CET 2009
Niall O'Reilly wrote:
>
> On Fri, 2009-02-27 at 03:26 -0800, Evert wrote:
>> How do I configure this in mrtg.conf so that I get something I can
>> graph?
>
> Look in the MRTG reference (master copy is
> http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html, other
> copies are everywhere MRTG is installed) for 'External
> monitoring scripts'.
>
> You'll need to post-process the output from your SNMP
> collector, perhaps like this:
>
> echo ' STRING: 0.35' \
> | perl -ne 's/.*:\s+//; printf "%d\n0\n0\n0\n\n", 100*$_; exit'
>
> I've assumed it makes sense to convert the load average
> to a percentage. This may (or not) fit your needs.
>
Your assumption is wrong, but that is my fault! :-{
(the value is a load average)
I was hoping to do it all from within mrtg.conf, but I guess that's not
possible...?
Thanks for the pointer! :handshake:
-----
Greetings,
Evert
--
View this message in context: http://n2.nabble.com/newbie-question%3A-how-to-convert-string--%3E-value--tp2395093p2395385.html
Sent from the MRTG Users Mailinglist mailing list archive at Nabble.com.
More information about the mrtg
mailing list