[mrtg] Two devices, one graph?

Tobias Oetiker tobi at oetiker.ch
Fri May 10 07:46:44 CEST 2013


Yesterday Christian Arnaut wrote:

> Have what could be a simple question. When monitoring an SNMP device w/MRTG,
> is it possible to plot the data from two devices on a single graph?
>
>
>
> I have two temperature probes. I would like probe #1 (indoor temp) displayed
> as the I value and probe #2 (outdoor temperature) as the O value.
>
>
>
> Currently I am monitoring the indoor temp with the noo option enabled.
>
> Target[ncr-temp]:
> 1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0&1.3.6.1.4.1.3854.1.2.2.1.16.1.8.0:public at 1
> 0.44.1.60
>
>
>
> I also have a second temp probe (also noo option) on a different IP address
> measuring outdoor temperature.
>
> Target[outdoor-temp]:
> 1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0&1.3.6.1.4.1.3854.1.2.2.1.16.1.8.0:public at 1
> 0.1.1.60
>
>
>
> Would love to modify the syntax of the Target line in the cfg file to
> support polling the I & O values from different devices.
>
> Something like below, but this doesn't seem to work.
>
>
>
> 1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0:public at 10.44.1.60&1.3.6.1.4.1.3854.1.2.2.1
> .16.1.3.0:public at 10.1.1.60
>
>

Target[temp]: PseudoZero&1.3.6.1.4.1.3854.1.2.2.1.16.1.8.0:public at 10.44.1.60
 + 1.3.6.1.4.1.3854.1.2.2.1.16.1.3.0&PseudoZero:public at 10.1.1.60

should do the trick

cheers
tobi




>
>
>
> Thank you, in advance, for any assistance. I have search the forums and
> found that others have asked the same fundamental, however the links to the
> solutions are dead links.
>
>
>
>
>
> ~Christian
>
>
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the mrtg mailing list