SNMPD

Under Construction!
This page is currently under construction. You can edit the article to help completing it.

There are two options: mini-snmpd or snmpd.

opkg install snmpd

Then Edit the /etc/config/snmpd file and finetune what you need. More advanced configurations might need to edit the snmpd init script and make the snmpd program to load another custom config.

Basic information about WIFi 802.11 interfaces can be obtained using the OID 1.2.840.10036, the MIB file for this OID is available for download from sourceforge.

opkg install mini_snmpd

Note: minisnmpd uses a 32 bit counter, which maxes out at 4294967295. This means any traffic over that does not appear on the counter, making it appear that you no longer have traffic. This is by design of minisnmpd. See Bug Report and minisnmpd project page

Open /etc/config/mini_snmpd and update the entries in the brackets to something that makes sense for you:

config mini_snmpd
        option enabled 1
        option ipv6 0
        option community <SNMP COMMUNITY>
        option location '<WHERE YOUR OPENWRT IS :)>'
        option contact '<YOUR CONTACT DETAILS>'
        option disks '/tmp,/jffs,<ANY OTHER DISKS>'
        option interfaces 'lo,br-lan,eth0.1,eth1' # Max 4
As of r25486 this patch is in the tree.

Take a look at the forum post (“64 bit counter support in SNMP (TL-WR1043ND)”), i.e. get the patch from Ticket 8818 (“Enable 64 bit counters in net-snmp”), build and reinstall the whole kernel/system (rebuild and opkg install the new snmp package didn't work).

For some reason, Cacti doesn't like the system response that mini_snmpd gives (eg uptime, syslocation etc). In order to get your graphs correctly generated within Cacti, you need to change the way Cacti polls the OpenWRT system to see if it is up - on the device page within Cacti you should change the 'downed device detection' method to 'Ping' and the ping method to 'ICMP Ping'. This should then work :)

Here is a small patch for mini_snmpd to support monitoring wireless signal and noise with Cacti. Here is the patch for mini_snmpd and here is a patch to add it to OpenWrt. Here is a blog post about how to configure Cacti to make graphs from signal and noise data.

The OIDs in the patch are chosen to work with the kbridge.xml SNMP query this is distributed with Cacti.

http://nottheoilrig.com/openwrt/201212090/

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • Last modified: 2023/10/14 06:15
  • by vgaetera