Bandwidth usage monitoring per subnet

Posted on 2009-12-25
Last Modified: 2013-11-22

I have a FreeBSD 7.2 box as the boarder router/firewall with ipfw compiled into kernel. Also I have a server in my network which collects and graphs various monitoring information from network with MySQL, PHP and Apache installed. I would like to know if there is a tool to collect Bandwidth usage information from FreeBSD box per subnet, NOT per port, NOT per IP, just per subnet, I mean it can monitor per IP but it should graph bandwidth usage per subnet. The desirable way is to keep statistic collector on FreeBSD box send this info to MySQL and graph with PHP. But all other options can be acceptable.

Thank you in advance
Question by:synisys
    LVL 13

    Expert Comment

    Try PRTG or RRD Tool.
    LVL 32

    Expert Comment

    by:Kamran Arshad

    I know solarwinds Orion. You can tryout ObserverNMS;
    LVL 1

    Expert Comment

    I agree with GuruChiu on the use of RRDTool. I'm a big fan of RRD. If you want an easy way to implement RRD take a look at Cricket.
    LVL 1

    Expert Comment

    Also take a look at pfSense.. It's a modified version of BSD made for firewall and or routing applications and will support what you are looking for.
    LVL 25

    Accepted Solution

    i use cacti and MRTG to monitor my environment ..... so install and run MRTG
    Install SNMP using Ports

    # cd /usr/ports/net-mgmt/net-snmp
    # make && make install && make clean
    Add Two Lines into /etc/rc.conf
    snmpd_flags="-a -Lsd -p /var/run/"
    # chmod 444 /usr/local/etc/rc.d/
    Configure snmpd.conf      

          # snmpconf -i
          a. Edit snmpd.conf
          b. Choose : System Information Setup
          c. You will get
                         1:  The [typically physical] location of the system.
                      2:  The contact information for the administrator
                       3:  The proper value for the sysServices object.
          d. Fill up 1 and 2. Please pay attention to option 3
          e. When finish, back to main menu and choose 2.
          f. Choose 3, a SNMPv1/SNMPv2c read-only access community name
          h. Put in community name such as, foo
          i. In hostname and network mask we enter
          j. Setup OID , leave blank
          k. Back to menu
          l. The IP address and port number that the agent will listen on.
    Finish generate configuration file.
    # /usr/local/etc/rc.d/ start
    Install MRTG using ports
    # cd /usr/ports/net-mgmt/mrtg
    # make && make install && make clean
    configure file for MRTG
    # cfgmaker foo@ > /usr/local/etc/mrtg/mrtg.cfg
    Edit /usr/local/etc/mrtg/mrtg.cfg , put in Apache Directory
    Adding Cron Jon
    # crontab -e
    */5 * * * * /usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg
    Launch Brower and view the file.

    check also

    LVL 10

    Expert Comment

    Please go through below articles which explain how you can use MRTG for IPFW.


    Author Comment

    Thank you very much, I will try suggested solutions and come back with comments

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
    Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now