Ad Widget

Collapse

data usage per month

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • woger
    Member
    • Sep 2005
    • 56

    #1

    data usage per month

    Hi there,

    I've set up snmp monitoring of a cisco switch, but now I want to know what each port uses per month on traffic. I thought that the monthly read of the ifInOctets and ifOutOctets and take their delta should do the trick, but will this give problems when the Octets counter is reset by the switch?
    Is there a more logical way to do this?

    Thanks,

    Roger
  • Tenzer
    Senior Member
    • Nov 2007
    • 316

    #2
    You will have to check each entry in the database read from the switch, in order to find out how many times the counter has reset, and then calculate the data amount from that.

    Comment

    • nelsonab
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2006
      • 1233

      #3
      I've written a couple of scripts to perform this function on my own system. Right now I use it to generate weekly bandwidth reports for every port on one of our switches. If you would like a copy let me know and I'll clean it up a little bit for you and send it to you.
      RHCE, author of zbxapi
      Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
      Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

      Comment

      • woger
        Member
        • Sep 2005
        • 56

        #4
        That would be great!

        Thanks,

        Roger

        Comment

        • troffasky
          Senior Member
          • Jul 2008
          • 565

          #5
          Yes please.

          Comment

          • cosmobot
            Junior Member
            • Aug 2009
            • 14

            #6
            Originally posted by nelsonab
            I've written a couple of scripts to perform this function on my own system. Right now I use it to generate weekly bandwidth reports for every port on one of our switches. If you would like a copy let me know and I'll clean it up a little bit for you and send it to you.
            Can you publish its anythere ?
            Perhaps in wiki?

            Thank

            Comment

            • rekeds
              Junior Member
              • Feb 2014
              • 21

              #7
              yeah, that would be great

              Comment

              Working...