[mrtg] Trying to monitor Canopy Color Code

Steve Shipway s.shipway at auckland.ac.nz
Tue Apr 28 23:42:42 CEST 2015


The OID you are monitoring, 1.3.6.1.4.1.161.19.3.3.2.2.0, needs to be there
twice.  A MRTG Target *ALWAYS* has two metrics, even if one of them is not
used or displayed.  Try this:

 

Target[10.10.5.5-color code]:
1.3.6.1.4.1.161.19.3.3.2.2.0&pseudoZero:Canopy at 10.10.5.5:161::::2

 

This sets the second metric to be always zero.  You could, of course, use
the initial OID twice, or add a different one.

 

Secondly, it is not clear what this OID returns.  If it returns anything but
a number, then you will need to convert it to a number somehow in order to
graph it.  The only way to do that is by using the ConversionCode directive;
you write a small Perl conversion function in a file, declare the file using
ConversionCode, then pipe the returned values to the function, similar to
this:

 

ConversionCode: myfile.pl

Target[10.10.5.5-color code]:
1.3.6.1.4.1.161.19.3.3.2.2.0:Canopy at 10.10.5.5:161::::2|myfunction

 

This of course assumes the file myfile.pl has been created, and defined the
function myfunction() which takes on parameter and returns a number.  See
the MRTG documentation for details
http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html 

 

Steve

 

Steve Shipway

 <mailto:s.shipway at auckland.ac.nz> s.shipway at auckland.ac.nz

(GNU Terry Pratchett)

 

From: mrtg [mailto:mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch]
On Behalf Of Rick Silacci
Sent: Wednesday, 29 April 2015 7:19 a.m.
To: mrtg at lists.oetiker.ch
Subject: [mrtg] Trying to monitor Canopy Color Code

 

This is what I have in my config file: Target[10.10.5.5-color code]:
1.3.6.1.4.1.161.19.3.3.2.2.0:Canopy at 10.10.5.5:161::::2

 

Getting error message that 1.3.6.1.4.1.161.19.3.3.2.2.0 does not make sense.
Instead of an OID is there a variable for Color code?

 

 

TX

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20150428/0c26bbbe/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 10311 bytes
Desc: not available
URL: <http://lists.oetiker.ch/pipermail/mrtg/attachments/20150428/0c26bbbe/attachment-0001.bin>


More information about the mrtg mailing list