The beautiful combination of MRTG and the ZyXEL P-2812HNU-1 ADSL/VDSL router

Quick one for those of you battling with MRTG and the ZyXEL P-2812 router. Apparently running the cfgmaker doesn’t work with this device, as its SNMP capabilities are severely limited. With a little manual probing and a lot of time understanding the MRTG documentation, you can actually get something from it.

If you try to run cfgmaker you’ll get complaints about no replies, much like there isn’t anything at all in the other end. Work with it a bit, and you’ll get whining about the system name OID, the uptime OID and the Ethernet index OID. As I understand it, you pretty much have to hard code all this yourself. Enough talk though, here’s the MRTG configuration beef (other non-related things removed):

LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt /usr/share/snmp/mibs/SNMPv2-SMI.txt

Target[router_net1]: ifInOctets.1.0&ifOutOctets.1.0:COMMUNITYNAME@ROUTERIP:::::2
RouterName[router_net1]: enterprises.890.1.2.1.1.4.0
RouterUptime[router_net1]: enterprises.890.1.2.1.1.12.0
MaxBytes[router_net1]: 1000000000
Title[router_net1]: net1 -- router
PageTop[router_net1]: net1 -- router
Posted Monday, November 12th, 2012 under Uncategorized.

Leave a Reply

You must be logged in to post a comment.