[mrtg] ifOperStatus and if-template problem

McDonald, Dan Dan.McDonald at austinenergy.com
Thu Nov 13 14:31:10 CET 2008

On Thu, 2008-11-13 at 11:35 +0100, Jakub M wrote:
> Hello,
> I have a small problem with generating proper cfg file. I want to
> monitor a link status for my devices. I have made a template for
> cfgmaker, but when I run mrtg with a generated cfg, I don't get any
> results (no values on charts)

You need to monitor two values, not just one, and you need a period, not
a colon, for the $if_ref:

- Target[$target_name]: ifOperStatus:$if_ref:$router_connect
+ Target[$target_name]: ifOperStatus.$if_ref&ifAdminStatus.$if_ref:$router_connect

Daniel J McDonald, CCIE #2495, CISSP #78281, CNX
Austin Energy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.oetiker.ch/pipermail/mrtg/attachments/20081113/d45f6060/attachment.bin 

More information about the mrtg mailing list