[mrtg] Re: arithmetic in mrtg?

Alex van den Bogaerdt alex at ergens.op.het.net
Sun Apr 13 14:13:10 MEST 2003


On Sat, Apr 12, 2003 at 11:09:20PM -0700, paul beard wrote:
> I've been hunting around for some way to take values from mrtg's snmpgets and multiply them by a value (in my case, 4) and nothing I have found seems to work. 
> 
> [/usr/local/etc/mrtg]# snmpget -Ov -cpaulbeard.org pink hrStorageUsed.6 
> INTEGER: 5658
> 
> Target[pink-scratch]:hrStorageUsed.6&hrStorageSize.6:paulbeard.org at pink works fine, but it's not what I want. I would like either to divide one by the other or to multiply both by 4 (for some reason the results are coming back at 1/4 the real size). 
> 

Target[name]:<whitespace>OID1&OID2:string at host<whitespace>*<whitespace>4

> For one thing, if I just try one value, I get an error. 

Always two.  Not one, not three.  FAQ.

HTH
Alex
-- 
Much of what looks like rudeness in hacker circles is not intended to give
offence. Rather, it's the product of the direct, cut-through-the-bullshit
communications style that is natural to people who are more concerned about
solving problems than making others feel warm and fuzzy.

http://www.tuxedo.org/~esr/faqs/smart-questions.html

--
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