SNMPGraph

SNMP Graphing tool

Current version: 0.01 (9. May 2004)

Links: [Download] [Sourceforge project page]

SNMPGraph is a simple graphing tool for SNMP. It is meant to be simple, not powerfull.

It requires:

You should know basics about SNMP and RRDTool in order to use this tool. A good articel that I read before writing this program is here: http://silverwraith.com/papers/freebsd-snmp.php

The webinterface uses Walt A. Boring IV's great phphtmllib class library for PHP. (but you dont need to download it)

SNMPGraph is not finished yet, but works quit fine for me. Thats why I declare it to "alpha" status. As it does not perform critical operations it should be save to use it.
I will add more features soon and make the installation more userfriendly.



OKAY, THATS HOW IT WORKS:

There is a global configuration file (/etc/snmpgraph.conf). It contains the basic configuration parameters and some defaults.
Then in addition for each graph you like to display you need to define a "sensor"-configfile. Each of these files go to one directory.
In such file you can specify for example:

Here is an example sensor for monitoring incoming and outgoing traffic on a network interface: eth0.txt

The update.pl script looks for all sensor files, fetches new values from SNMP and updates the rrd database. Then it terminates. So you should call this script periodically (by cron?).

The webinterface will also look for the the sensor files and display each of them in the main menu. So if you click on one, you will get the graph. Then you can also change the resolution of the graph and scroll back and forwards in time.

Thats it... basically.

Everybody likes screenshots

screenshot
The webinterface; monitoring my little gateway at home: In the menu on the left all "sensors" are listed. In the tabs you can select your timeframe you like to see. With the "back", "forward" links you can scroll in time.

Feel free to contact me for comments and suggestions!
Martin Boese
boesemar (at) users (dot) sourceforge (dot) net