When using a cool router software like OpenWRT it is a good idea to monitor the network usage. This article describe howto get SNMP on your OpenWRT based router.
1. Install
The easiest way is to use the webgui, http://<your router ip>
- Log in as root/-<your password>
- Click on Adminstrator to enable the Advnced menues
- System->Software
- Click on "Update Package List" (this require Internet access).
- Install snmpd-static
2. Configure
Log in to the La Fonera using ssh:
peter@peter-laptop:~$ ssh -l root 192.168.0.159 root@192.168.0.159's password: BusyBox v1.11.2 (2009-12-02 11:25:47 UTC) built-in shell (ash) Enter 'help' for a list of built-in commands. _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M KAMIKAZE (8.09.2, r18961) ------------------------- * 10 oz Vodka Shake well with ice and strain * 10 oz Triple sec mixture into 10 shot glasses. * 10 oz lime juice Salute! --------------------------------------------------- root@fon:~#
Start snmpd
root@fon:~# /etc/init.d/snmpd start
Make it start when rebooted:
root@fon:~# /etc/init.d/snmpd enable
If you want to change your SNMP configuration the configuration is located in:
/etc/config/snmpd.conf
3. Monitor
Now you can get the SNMP data and use your favorite Monitor tool, i.e. Nagios or op5 Monitor.
Below a screenshoot from op5 Monitor:
Useful links
- OpenWRT, an OpenSource router software
- Net-SNMP, an SNMP implementation
- Nagios, an OpenSource Monitoring software
- op5 Monitor, an Enterprise Class Monitoring software based on Nagios
5 Responses to “Install SNMP on OpenWRT”
Leave a Reply
You must be logged in to post a comment.
June 2nd, 2011 at 8:46 am
Hi Peter,
Can u live me an idea what are the differencies btwn snmpd snmp-static and Otter snmp Lackaffe in openwrt Trunk.
I’ll add it to our Vienna Images and replace LuCI Statistics which is Basedow an collectd
Joe
June 2nd, 2011 at 8:47 am
Nice iPad with word replacement in german 🙂
Hope you understood the question above
September 13th, 2011 at 10:28 am
hi,
good question from joe. i’m wondering what might be the difference between snmpd and mini-snmpd. i could not find any explanation.
i think, on openwrt i will only need an snmp agent (client).
markus
September 13th, 2011 at 9:59 pm
My guess:
snmp-static, statically linked
mini-snmp, another implemenetation of snmp that hopefully has a smaller footprint.
Look into the projects homepages and figure out, or give me your Ipad and I will find it for you.
January 29th, 2012 at 1:23 pm
Thank you for your article! I really liked seen this. I`m look similar article on http://www.webserverdb.com/simple-network-management-protocol-snmp/