Simple PHP and Javascript page for drawing graphs based on interface usage from SNMP
- Install on a PHP server with php snmp enabled
- Configuring the $hosts array in snmpGet.php to include the hosts you want on your network to be able to monitor.
- If desiered you can change some variable in index.htm to change the graph length, type and interval
- Open your browser and point it index.htm
- Click on the host
- Clikc on the interface
- Watch your graph!
The script uses URL hashes to allow you to bookmark and frame in the pages for specific graphs. It works great with iFrames in a single pane of glass setup.
<iframe src="//server/index.htm#hostname,ifnum,ifname" width="400" height="200" frameborder="0"></iframe>
<iframe src="//server/index.htm?hostname=myhost&interface=ifnum&name=ifname" width="400" height="200" frameborder="0"></iframe>