User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:howto:snmp.server [2013/03/19 18:04]
doc:howto:snmp.server [2014/04/09 19:15] (current)
thenextdon13 Added note about 32 bit max counter in minisnmpd
Line 1: Line 1:
 +====== SNMPD ======
 +There are two options. mini-snmpd or snmpd. ​
 +===== How to install snmpd =====
 +opkg install snmpd
 +Then Edit the /​etc/​config/​snmpd file and finetune what you need.
 +More advanced configurations might need to edit the /​etc/​init.d/​snmpd script and make the snmpd program to load another custom config
 +===== How to install mini-snmpd =====
 +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 [[https://​​ticket/​13597|Bug Report]] and minisnmpd [[http://​​projects/​minisnmpd|project page]]
 +===== Basic configuration for mini-snmpd =====
 +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
 +===== 64-bit counters issues =====
 +| {{:​meta:​icons:​tango:​48px-outdated.svg.png?​nolink}} | As of [[https://​​changeset/​25486|r25486]] this patch is in the tree. |
 +Take a look at this post:
 +I.e. Get patch from https://​​ticket/​8818,​ build and reinstall the whole kernel/​system (rebuild and opkg install the new snmp package didn't work).
 +===== Usage with Cacti =====
 +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 :)
 +===== Wireless signal and noise =====
 +Here is a small patch for mini_snmpd to support monitoring wireless signal and noise with Cacti. Here is the [[http://​​openwrt/​201212090/​wireless.patch|patch for mini_snmpd]] and here is a patch to [[http://​​patch/​3061/​|add it to OpenWrt]]. Here is a blog post about [[http://​​2012/​12/​heres-patch-for-mini-snmp-daemon-to.html|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.