• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 905
  • Last Modified:

Bandwidth usage monitoring per subnet

Hello,

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
0
synisys
Asked:
synisys
1 Solution
 
GuruChiuCommented:
Try PRTG or RRD Tool.
0
 
Kamran ArshadIT AssociateCommented:
Hi,

I know solarwinds Orion. You can tryout ObserverNMS;

http://www.observernms.org/
0
 
tkuennenCommented:
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. http://cricket.sourceforge.net/
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
tkuennenCommented:
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.
0
 
madunixCommented:
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_enable="YES"
snmpd_flags="-a -Lsd -p /var/run/snmpd.pid"
# chmod 444 /usr/local/etc/rc.d/snmptrapd.sh
   
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 127.0.0.1
      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/snmpd.sh start
Install MRTG using ports
# cd /usr/ports/net-mgmt/mrtg
# make && make install && make clean
     
configure file for MRTG
# cfgmaker foo@127.0.0.1 > /usr/local/etc/mrtg/mrtg.cfg
Edit /usr/local/etc/mrtg/mrtg.cfg , put in Apache Directory
Adding Cron Jon
# crontab -e
Insert
*/5 * * * * /usr/local/bin/mrtg /usr/local/etc/mrtg/mrtg.cfg
Launch Brower and view the file.

check also
http://oss.oetiker.ch/mrtg/
http://www.section6.net/wiki/index.php/Setting_up_MRTG_in_FreeBSD
http://forums.freebsd.org/showthread.php?t=248
http://www.cacti.net/

madunix
0
 
srgilaniCommented:
Please go through below articles which explain how you can use MRTG for IPFW.

http://alex.kruijff.org/FreeBSD/Traffic_Report.html

http://howto.aphroland.org/HOWTO/MRTG/IPFWCountersWithMRTG

0
 
synisysAuthor Commented:
Thank you very much, I will try suggested solutions and come back with comments
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now