Welcome to It-Slav.Net blog
Peter Andersson
peter@it-slav.net

I've already got a female to worry about. Her name is the Enterprise.
-- Kirk, "The Corbomite Maneuver", stardate 1514.0
23
Mar

 

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>

  1. Log in as root/-<your password>
  2. Click on Adminstrator to enable the Advnced menues
  3. System->Software
  4. Click on "Update Package List" (this require Internet access).
  5. 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”

  1. JoeSemler Says:

    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

  2. JoeSemler Says:

    Nice iPad with word replacement in german 🙂
    Hope you understood the question above

  3. runout Says:

    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

  4. peter Says:

    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.

  5. Daniel Says:

    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/

Leave a Reply

Filled Under: Cool things, english, Fon, Geek stuff




Book reviews
FreePBX 2.5
Powerful Telephony Solutions






Asterisk 1.6
Build a feature rich telephony system with Asterisk






Learning NAGIOS 3.0





Cacti 0.8 Network Monitoring,
Monitor your network with ease!