Ad Widget

Collapse

Calculate total internet data usage using SNMP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Midhun
    Junior Member
    • Jan 2016
    • 1

    #1

    Calculate total internet data usage using SNMP

    Hi,

    I have a zabbix installation, collecting data from a Juniper SSG320M using SNMP v1.

    I am getting my internet upload and download speeds properly (using IF-MIB::ifInOctets and IF-MIB::ifOutOctets)

    But I dont know how to get total data usage over a period of time. (For example some thing like"From March 1 to March 10, used 300GB for download and 50GB for Upload")

    I tried hard but could not get any relevent information about this. Can this be accomplished with zabbix? (PRTG has this feature)If so kindly let me know how.
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    If this information is exposed via SNMP (what is very likely the case) then this is possible with Zabbix as well. All you have to do is to figure out which SNMP OID represents this metric and create the corresponding SNMP agent item in Zabbix.

    Personally, as I'm always interested in what a SNMP enabled device may expose at all, I prefer to do a snmpwalk on such a device and to investigate the result. Needless to say that it helps a lot to have all related MIB files in place, so that one already gets in the result an indication what a returned value is referring to.

    Comment

    • wamsterdam
      Member
      • Apr 2013
      • 34

      #3
      You would probably need to use the API to get this sort of info. Use the history.get class to retrieve data as far back as the 'history' period defined in your items. For older values you would need a trend.get class, but that is not yet available (due in zabbix 3.x if I'm correct).

      Using the API looks very difficult for the first time, as you will need some programming skills and understanding of PHP and HTML. But it gives you the freedom to retrieve all kinds of data from Zabbix and present them in your own way with a custom graph in Zabbix.

      HTH,
      Wouter

      Comment

      Working...