1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SNMP

Discussion in 'Tomato Firmware' started by Jethroww, Nov 24, 2012.

  1. Jethroww

    Jethroww Networkin' Nut Member

    to monitor my household internet usage. To monitor the wireless I need to have SNMP on my router working. I installed Shibby 1.28.0000 MIPSR2-100 K26 USB Big-VPN .The Shibby site say's SNMP comes with the software I installed. I can't find it on this version of Shibby. I have also installed the optware package from XtremeCoders. Could I please get some activation/installation help?​
    Thanks Jethroww​
     
  2. koitsu

    koitsu Network Guru Member

    Try Entware instead (nobody maintains Optware any more). What you probably want is the snmpd package below (opkg install snmpd), followed by you needing to write a small script/bits to get the daemon to start on router boot.

    Code:
    root@gw:/tmp/home/root# opkg list | grep snmp
    erlang-snmp - 4.21.4 - Erlang/OTP is a general-purpose programming language and runtime
    freeswitch-mod-snmp - 1.0.7-2 - FS Simple Network Management Protocol module
    libnetsnmp - 5.4.2.1-5 - Simple Network Management Protocol (SNMP) is a widely used protocol for
    snmp-utils - 5.4.2.1-5 - Simple Network Management Protocol (SNMP) is a widely used protocol for
    snmpd - 5.4.2.1-5 - Simple Network Management Protocol (SNMP) is a widely used protocol for
    snmpd-static - 5.4.2.1-5 - Simple Network Management Protocol (SNMP) is a widely used protocol for
    
    By the way, you do realise that TomatoUSB routers (including Shibby, Toastman, etc.) already let you monitor your Internet usage natively, yes?
     
  3. Jethroww

    Jethroww Networkin' Nut Member

    Hi koitsu, Thanks for the help. No I didn't know that you were able to monitor the internet with TomatoUSB.
    How would I start that option? Would I be able to have a link/window on my desktop monitor to see how
    much is being used wireless/desktop? Would there be any pages/instructions ?
    Thanks Jethroww
     
  4. koitsu

    koitsu Network Guru Member

    This screenshot should say it all, but I want to make multiple things clear:

    1. You can see the graphs of bandwidth usage in real-time (polled every 1 second). The graph scrolls from right to left (most recent data being on right). You can see that there are colour adjustments and per-interface settings in the graph if you want to use them. There is also averaging support (this affects only the graphing part).
    2. The graphs shown can be set per-interface, meaning you can see graphs for your wireless interface vs. the LAN vs. everything, using the tabs at the top of the graph. For what each interface name means/does, see this.
    3. You can get summaries + graphs of the usage over the last 24 hours, also on a per-interface basis (see Last 24 Hours on left)
    4. You can get summaries of the usage on a daily, weekly, and monthly basis. These are for your WAN interface (i.e. total Internet usage), not per-interface.
    5. The data is stored in NVRAM (or can be exported (manually) to a file of your choice and saved on your own PC) under Admin -> Bandwidth Monitoring -> Backup.

    Thus, I really don't see why you need SNMP, unless you plan on doing long-term trending or need the data integrated into some other software that you're using for a large-scale network (i.e. business environment). I am very, very familiar with SNMP (I did dedicated hosting + had equipment in co-los for 18+ years), but it's overkill for something simple like this. TomatoUSB's built-in stuff makes it absolutely wonderful and simple.
     

    Attached Files:

    • bw.png
      bw.png
      File size:
      65.2 KB
      Views:
      52
  5. shibby20

    shibby20 Network Guru Member

  6. Jethroww

    Jethroww Networkin' Nut Member

    Hi, Thanks for the SNMP info shibby. Now I know the correct build to install with SNMP.
    Koitsu would it be possible to get the usage displayed/updated on my computer monitor
    so I will be able to monitor the household/person usage?
    Thanks Jethroww
     
  7. koitsu

    koitsu Network Guru Member

    I don't understand this question. The above screenshot is a web page. Web pages are displayed on monitors/LCDs/CRTs/etc.. Can you explain what you mean?

    You won't be able to monitor "per-individual" (as in per-human-being) network bandwidth. In fact, this isn't doable with SNMP either. What you'd want would be MAC-based octet counting, and AFAIK that feature does not exist -- it has to be done in the kernel, and AFAIK Linux does not have that.
     
  8. Jethroww

    Jethroww Networkin' Nut Member

    Hi koitsu, Sorry for being such a noob. Would I be able to link to that page or would I have to use my browser
    and go into Tomato every time to see the page?
    Thanks Jethroww
     
  9. koitsu

    koitsu Network Guru Member

    What do you mean "link to that page"?

    Your router's IP address is 192.168.1.1 correct? Then visit http://192.168.1.1/ in your web browser and look at the left side of the menu. You'll see something similar to what's shown in my screenshot. Go to the Bandwidth menu and look around in there. I shouldn't have to step someone through using a web browser; come on man, if you can load a custom firmware...... :/

    I should note that to see the real-time graphs you'll need a browser like Internet Explorer 9 (or newer), Firefox, or Chrome. Not sure about Opera. Please note that the graphing capability is separate from the bandwidth utilisation/usage/capacity tracking feature; you get the latter no matter what browser you use. (I can rephrase this about 50 different ways if you don't understand it)
     
  10. Jethroww

    Jethroww Networkin' Nut Member

    Hi koitsu, Sorry for not properly explaining what I was trying to do. What I was trying to get is a toolbar link so with a click the usage would just popup. I have no problem with the way you explained. I just was looking for a quicker way.
    Thanks Jethroww
     
  11. koitsu

    koitsu Network Guru Member

    I don't know what a "toolbar link" is. Are you referring to a bookmark in your browser, or more specifically, Toolbars -> Links in your taskbar on Windows? Or are you referring to a shortcut in Windows? If so, sure, there's a way to do that. That's more of a "how do I do this in Windows" question than "how do I do this in TomatoUSB". :)
     
  12. Jethroww

    Jethroww Networkin' Nut Member

    Hi koitsu, Yes I was looking for a link on the taskbar if possible. If a shortcut in Windows was available that would also be great. Sorry about not putting "how do I do this in Windows". I thought because I was running TomatoUSB to get this info I needed to to ask "how do I do this in TomatoUSB" my mistake(old and still learning).
    Thanks for all the help. Jethroww
     
  13. koitsu

    koitsu Network Guru Member

    I don't know how you add something to the Toolbars -> Links stuff in Windows (I'm sure it's easy), but Windows will let you make a URL a shortcut (much like a shortcut to a program). New -> Shortcut, and for the location of the item, just say http://192.168.1.1/whatever. You can get the URLs from the TomatoUSB GUI yourself, ex. http://192.168.1.1/bwm-realtime.asp , http://192.168.1.1/bwm-monthly.asp , etc... Name the shortcut whatever you want.

    But sorry man, I'm not going to sit around and teach Windows Usage 101, as it's outside of the scope of the forum. My point is that you don't need SNMP if you just want to see monthly bandwidth used by your Internet connection, as well as real-time or daily bandwidth for Wireless vs. Ethernet LAN vs. Internet (i.e. total). TomatoUSB does all that itself, no need for extra crap.
     
  14. Toastman

    Toastman Super Moderator Staff Member Member

    I was quite taken originally with the idea of using SNMP - but that interest quickly evaporated. In order to do anything useful, all incoming and outgoing connection data needs to be sent to the remote device - and the overhead is simply too much to bear. That is why there is a recommendation to turn this setting off, and is part of the reason we put the monitoring into the router itself.
     
  15. Jethroww

    Jethroww Networkin' Nut Member

    Hi Toastman, Great info. I will then pass on SNMP option and use the monitoring feature on the router.
    Thanks for the great support and excellent firmware.
    Jethroww
     
  16. crashnburn

    crashnburn LI Guru Member

    Hi Toastman - I was considering doing the same here so I was wondering about one thing.

    Do we now have the ability to monitoring abilities equivalent to Networx? It has some nice quick ways to split and graph data usage data.
    E.g.
    http://www.softperfect.com/products/networx/manual/totals.htm
    http://www.softperfect.com/products/networx/manual/graph.htm

    Or can the Networx related monitoring become a Bonus/ Add-on besides Tomato USB's monitoring capabilities.

    Apparently, someone got it work here - Not sure if that has some flaws.
    http://www.softperfect.com/board/read.php?8,13178,13178,quote=1
     

Share This Page