[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,, 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[ code]: at


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


ConversionCode: myfile.pl

Target[ code]: at|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




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[ code]: at


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






-------------- 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