[mrtg] Re: arithmetic in mrtg?

paul beard paulbeard at mac.com
Sun Apr 13 20:19:23 MEST 2003


Chad Whitten wrote:
> #!/bin/bash
> VALUE=`snmpget -Ov -cpaulbeard.org pink hrStorageUsed.6 | awk '{print $2}'`
> NEWVAL=`echo "$VALUE * 4" | bc`
> echo $NEWVAL
> 
> then in mrtg.cfg
> Target[name]:`/path/to/script/above`
> 
> that should work
> 

Yeah, I could go down that road, but I was sure mrtg could handle 
this internally.


-- 
Paul Beard
<http://paulbeard.no-ip.org/movabletype/>
whois -h whois.networksolutions.com ha=pb202

ADA, n.:
	Something you need only know the name of to be an Expert in
Computing.  Useful in sentences like, "We had better develop an ADA
awareness."

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list