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:[EMAIL PROTECTED] + b.b&d.d:[EMAIL PROTECTED]

Le Mon, 14 Feb 2005 16:26:22 +0100
"G. Colangelo" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] (no
> linefeed,
> space between each '+')
> 
> But mrtg reply me this:
> 
> [EMAIL PROTECTED]:/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:[EMAIL PROTECTED] / oid3&oid4:[EMAIL PROTECTED] * 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
[EMAIL PROTECTED] - 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:[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

Reply via email to