[mrtg] Re: Using MRTG for graphing sum of OIDS.
G. Colangelo
binarym at psycho-hazard.net
Mon Feb 14 17:30:19 MET 2005
After googling a bit more, i found the answer to my problem, so i'll
reply to myself (it can be useful for others).
In fact, we must create group of target instead of target of group.
For example, if you want to graph (a.a + b.b) for in and (c.c + d.d) for
out, you must use the following syntax:
Target[multiple]: a.a&c.c:comm at host + b.b&d.d:comm at host
Le Mon, 14 Feb 2005 16:26:22 +0100
"G. Colangelo" <binarym at psycho-hazard.net> a écrit:
> 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