Hi again!

If that's all you need, you do a walk with PHP (or faster alternative) 
and push the data into a database with a timestamp. From there you can 
monitor the links as often as you like, just as long as you remember 
that the data you read is as old as the pollings feeding the dB with data.


$ifInOctArray=snmp2_real_walk($RouterIP, $community, 
"IF-MIB::ifHCInOctets") or die("$argv[0]: unable to walk OID 
IF-MIB::ifHCInOctets");
$ifOutOctArray=snmp2_real_walk($RouterIP, $community, 
"IF-MIB::ifHCOutOctets") or die("$argv[0]: unable to walk OID 
IF-MIB::ifHCOutOctets");

Stuff it into your dB of choise and start reading the data! Use 
ifHCOutOctets instead of ifOutOctets since the 32-bit counters in the 
latter will top out at ~500 Mbps if polling every minute.

Use this to graph the data directly from the dB (if you need to create 
graphs, if not, just read the data from the dB):

https://oss.oetiker.ch/rrdtool/doc/rrdgraph_libdbi.en.html

/Fredrik

Den 2016-05-09 kl. 15:16, skrev Richard Mayers:
> I don't really know what to do, I need to know the load per link as
> fast as possible so I can improve the load balancing decisions.


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to