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:[EMAIL PROTECTED] 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:[EMAIL PROTECTED]<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:[EMAIL PROTECTED] 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
