[mrtg] Broken gauge seemingly without cause
Edwin A. Epstein III
ed at rhinobee.com
Wed Jul 13 02:32:08 CEST 2016
I've been using MRTG to graph the number of stations connected to various Ubiquiti access points. This was working quite well with no issues till apparently a new firmware broke MRTG functionality in some way that I can't identify. The working configuration:
"Target[192.168.1.1_stcount]: CnTWaLK1. 188.8.131.52.1.149184.108.40.206 .2.1.3&CnTWaLK1. 220.127.116.11.1.14918.104.22.168 .2.1.3:public at 192.168.1.1 +0
SetEnv[192.168.1.1_stcount]: MRTG_INT_IP="192.168.1.1" MRTG_INT_DESCR="stcount"
YLegend[192.168.1.1_stcount]: Station Count
PageTop[192.168.1.1_stcount]: <h1>192.168.1.1 (stcount)</h1>
<tr><td>Make & Model:</td><td>(NSM5) Ubiquiti Networks NanoStation M5</td></tr>
<tr><td>MRTG Database ID:</td><td>548966</td></tr>
<tr><td>MRTG Server:</td><td>Node 45 (10.10.3.3 )</td></tr>
<tr><td>Maintainer:</td><td> noc at rhinobee.com </td></tr>
<tr><td>Gauge Name:</td><td>Station Count Graph</td></tr>
I'm aware (I think), that MRTG and snmpwalk use different libraries to manage the traffic. Hence, WaLK on a target line allows me to graph values otherwise unreadable/unreachable. This is the case with much of Ubiquiti equipment that is using a MIB from MikroTik (The OID above). I have two different versions of this gauge that support the two different MIBs that Ubiquiti uses, so I'm quite confident about my OIDs being correct. On the gauges that have issues a value of 0 is always received and graphed from the count walk. However, performing a snmpwalk still shows:
"SNMPv2-SMI::enterprises. 4122.214.171.124.1.5.1 = INTEGER: -58"
A count walk should return a value of 1, but never does. I can't see that anything has changed in the configuration file, or even the output from snmpwalk. I'm at a loss on how to proceed diagnostically here and would like some assistance in debugging MRTG and/or logging better information to find a fix here. Everything seems like it should be working as normal....
Edwin A Epstein, III
Rhinobee Internet Services
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mrtg