[mrtg] Re: Graph differences
Håkan Lindholm
hakan at spray.se
Sun Jan 13 14:51:19 MET 2002
Hello Lars.
On Sun, 13 Jan 2002, Lars Holmström wrote:
>
> I would like to graph the differences between two targets.
>
> One is the difference between two SNMP results. I tried this :
> Target[192.168.101.1_987]: 4:public at 192.168.101.1 -
> 3:public at 192.168.99.1:
> It give me the result of the first one only i.e. no substract is take
> place.
I think you need to use "targetA + -targetB". Your case:
Target[192.168.101.1_987]: 4:public at 192.168.101.1 + -3:public at 192.168.99.1
> The other is the differences between a SNMP counter and the output of a
> shellscript that provide values using IPCHAINS
> Target[bck]: `/usr/local/mrtg-2.9.17/bin/ipchainacc` +
> -5:public at 192.168.99.1:
> It give me twice the figures of the first entry, the SNMP counters.
>
> The MRTG reference says;
> "You can also use several statements in a mathematical expression."
> "Note the whitespace arround the target definitions"
>
> It is not said if you can use other matamatical expressions that
> addidtion, but I assume so. I also added the whitespace, as stated.
I'm not sure mixing scripts and SNMP targets is supported. You should be
able to include the SNMP polling inside the script "ipchainacc" or write
another script as a wrapper.
/H
--
Håkan Lindholm <hakan at spray.se>
--
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