[mrtg] Using MRTG for graphing sum of OIDS.

G. Colangelo binarym at psycho-hazard.net
Mon Feb 14 16:26:22 MET 2005


Hi,

I want my mrtg to graph UCD-SNMP-MIB::memAvailReal +
UCD-SNMP-MIB::memBuffer + UCD-SNMP-MIB::memCac hed", so i tried the
following syntax: 

Target[mem]: 1.3.6.1.4.1.2021.4.6.0 + 1.3.6.1.4.1.2021.4.15.0
+ 1.3.6.1.4.1.2021.4.14.0&1.3.6.1.4.1.2021.4.6.0:comm at host (no linefeed,
space between each '+')

But mrtg reply me this:

[root at rei]:/etc# mrtg                                                   
                                                                      
16:07 ERROR: Target[mem][_IN_] '1.3.6.1.4.1.2021.4.6.0 +
1.3.6.1.4.1.2021.4.15.0 +  $target->[3]{$mode} ' (warn): Argument
"\x{1}\x{3}..." isn't numeric in addition (+) at (eval 12) line 1.
ERROR: Target[mem][_OUT_] '1.3.6.1.4.1.2021.4.6.0 +
1.3.6.1.4.1.2021.4.15.0 +  $target->[3]{$mode} ' (warn): Argument
"\x{1}\x{3}..." isn't numeric in addition (+) at (eval 13) line 1.

I tried a lot of differents syntax, but none works. 
I don't understand the syntax used in the manpage:

oid1&oid2:comm at host / oid3&oid4:comm at host * x

Why is there 3 '&'. I was believing that '&' was used as delimiter
between in and out sources.
Can anybody explain me the syntax to do it ?

Regards,

-- 
Gérald Colangelo
binarym at psycho-hazard.net - http://psycho-hazard.net/~binarym/

Being a sysadmin means hours of hard labor every day.
Being an abusive sysadmin means hours of fun.

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