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:[email protected]: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:[email protected]: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:[email protected]> [email protected]

(GNU Terry Pratchett)

 

From: mrtg [mailto:[email protected]]
On Behalf Of Rick Silacci
Sent: Wednesday, 29 April 2015 7:19 a.m.
To: [email protected]
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:[email protected]: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

 

 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to