Ad Widget

Collapse

Monitoring SNMP Devices

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bubune
    Junior Member
    • Jul 2010
    • 10

    #1

    Monitoring SNMP Devices

    Hi All,

    I'm here again but this time my problem is how to add snmp host for monitoring by my Zabbix server.

    I followed all that in the documentations and even added SNMP Builder but has not been successful.

    I just want to monitor and graph SNMP devices such as routers, akcp sensorprobes, etc.

    Any help for me? or any other documentation to be followed?

    Thanks

    Bubu
    Accra - Ghana
  • Axilla
    Senior Member
    • Aug 2010
    • 130

    #2
    what are you using for your OID? the actual OID or the group it belongs to?

    if I do..

    snmpwalk -c public -v2c ipaddress 1.3.6.1.4.1.318.1.1.12.2.2.1.1.3

    it returns for an APC rPDU

    SNMPv2-SMI::enterprises.318.1.1.12.2.2.1.1.3.1 = INTEGER: 8

    under host once you select SNMP version you want to use it asks for an OID. instead of using the actual OID of 1.3.6.1.4.1.318.1.1.12.2.2.1.1.3

    You want to use enterprises.318.1.1.12.2.2.1.1.3.1 for the OID.

    Also do some reading on your multipliers to turn that data into a correct value.

    .1 will divide by 10 - .01 divides by 1 - 8 multiplies by 8 - 10 multiplies by 10.

    I haven't had any luck with SNMP Builder... I tried doing the fixes for 1.8.2 and I couldn't get it to read the MIB files correctly. I got blank data. So, I'm still doing everything manually...
    Last edited by Axilla; 23-08-2010, 20:25.

    Comment

    • bubune
      Junior Member
      • Jul 2010
      • 10

      #3
      Re:Monitoring SNMP Devices

      Thanks Axilla, but i dont know much about OIDs since am a new entrant into the field. I was using .1.3.6.1.2.1.2.2.1.1 as the OID. (.1.3.6.1.2.1.2.2.1.1 --> this i get through Cacti)

      when i do snmpwalk -c community -v2c ip .1.3.6.1.2.1.2.2.1.1 i get
      IF-MIB::ifIndex.1 = INTEGER: 1
      IF-MIB::ifIndex.2 = INTEGER: 2
      IF-MIB::ifIndex.3 = INTEGER: 3
      IF-MIB::ifIndex.4 = INTEGER: 4
      IF-MIB::ifIndex.5 = INTEGER: 5
      IF-MIB::ifIndex.6 = INTEGER: 6
      IF-MIB::ifIndex.7 = INTEGER: 7
      IF-MIB::ifIndex.8 = INTEGER: 8
      IF-MIB::ifIndex.9 = INTEGER: 9

      and also snmpwalk -c community -v2c ip system i get
      SNMPv2-MIB::sysDescr.0 = STRING: Cisco IOS Software, 2800 Software (C2800NM-ADVENTERPRISEK9-M), Version 12.4(6)T, RELEASE SOFTWARE (fc1)
      Technical Support: http://www.cisco.com/techsupport
      Copyright (c) 1986-2006 by Cisco Systems, Inc.
      Compiled Wed 22-Feb-06 22:54 by ccai
      SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.577
      DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (693829612) 80 days, 7:18:16.12
      SNMPv2-MIB::sysContact.0 = STRING:
      SNMPv2-MIB::sysName.0 = STRING: xxxxxxx.com
      SNMPv2-MIB::sysLocation.0 = STRING:
      SNMPv2-MIB::sysServices.0 = INTEGER: 78
      SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
      SNMPv2-MIB::sysORID.1 = OID: SNMPv2-SMI::enterprises.9.7.129
      SNMPv2-MIB::sysORID.2 = OID: SNMPv2-SMI::enterprises.9.7.115
      SNMPv2-MIB::sysORID.3 = OID: SNMPv2-SMI::enterprises.9.7.265
      SNMPv2-MIB::sysORID.4 = OID: SNMPv2-SMI::enterprises.9.7.112
      SNMPv2-MIB::sysORID.5 = OID: SNMPv2-SMI::enterprises.9.7.106
      SNMPv2-MIB::sysORID.6 = OID: SNMPv2-SMI::enterprises.9.7.47
      SNMPv2-MIB::sysORID.7 = OID: SNMPv2-SMI::enterprises.9.7.122
      (a very lengthy output in the above format).

      So out of this what do I use as the OID for the router and which one is the Key. and How to I retrieve the OID for say any SNMP device, since on the network I want to monitor using Zabbix, there are a lot of SNMP devices deployed miles away.

      And I always kept the multiplier on "Do not use".

      I just want to be successful in monitoring a cisco 2800 series router. I have been successful in implementing an agent based monitoring.

      Comment

      • Axilla
        Senior Member
        • Aug 2010
        • 130

        #4
        You can get the OID's from the Devices MIB file. Check the suppliers website or search on google for it.

        You would use ifIndex.1 or something like sysName.0

        The bottom just returns system information. Best way to find what you want is to locate the MIB file. It will have descriptions of what each OID is so you can find exactly what you want.

        You want to use the multiplier when for example.. I'll use my APC rPDU's again - since thats what I'm working on.. If I SNMPWalk for LoadStatus it returns INTERGER = 55 - But I know that its not pushing 55 Amps and that its actually pushing 5.5 Amps. So that tells me I need to Divide by 10 to get it to output the correct data on the graphs and things in Zabbix. So I would set my multiplier to .1 and that tells Zabbix to divide by 10 against the incoming SNMP data.

        Setting it to Do Not Use all the time will not work correctly.

        I suggest doing some reading on SNMP and how snmpwalk and snmpget work so you can learn to read the data better. Hope this helps. If you have anymore questions just ask.

        Comment

        • bubune
          Junior Member
          • Jul 2010
          • 10

          #5
          Graphing SNMP DEVICES

          Hi All,

          I did some reading and made use of the Zabbix 1.8 Networking Monitoring book and I have made some strides in identifying the OID to use. I have been able to graph traffic passing on my router interfaces.

          But i still have some issues. For example I have 45MB internet link that i want to monitor to graph its traffic pulling on the Cisco router. But Zabbix gives me a graphing more than 45MB. It some times gives me more than 48MB!

          I tried to use the 'Custom multiplier' but i dont get what I want since i have being comparing what I am getting on the Zabbix graph to Cacti graph and Cacti never goes beyond 45MB since my network can not pull more than 45MB i subscribe from the ISP.

          What should I do then to make use the traffic on my routers interface does not exceed 45MB.

          this is what I use for my OID: IF-MIB::ifOutOctets["index","ifDescr","GigabitEthernet0/0"]


          Regards
          Bubune
          Last edited by bubune; 02-09-2010, 18:11.

          Comment

          • jesmit
            Junior Member
            • Feb 2008
            • 20

            #6
            Make sure you are storing the value as a delta (ie. Store value: delta (speed per second) )

            That should fix it..

            -j

            Comment

            • bubune
              Junior Member
              • Jul 2010
              • 10

              #7
              Originally posted by jesmit
              Make sure you are storing the value as a delta (ie. Store value: delta (speed per second) )

              That should fix it..

              -j
              I already had that in place; Store value: delta (speed per second).

              What else could have been wrong? What is the use of the: "Use multiplier" in the create item form?

              Thanks

              Bubune

              Comment

              • jesmit
                Junior Member
                • Feb 2008
                • 20

                #8
                For OutOctet OIDs I use a custom multiplier of 8 and a Units value of bps

                Comment

                • bubune
                  Junior Member
                  • Jul 2010
                  • 10

                  #9
                  Originally posted by jesmit
                  For OutOctet OIDs I use a custom multiplier of 8 and a Units value of bps
                  I did try using a custom multiplier of 8, 9 and 10. With 10 the Graph showed the traffic more than 45MB (what i was to get from the ISP) at some time though not a constant occurrence. 9 and 8 gives me different values but not more than 45MB; with the custom multiplier 9 having traffic values greater than that of 8.

                  With all these multipliers the wavy pattern of each graph looks the same.

                  So then which of the custom multiplier values is appropriate or represents the actual traffic on the router's interface that is being monitored?

                  That is my headache and frustration. What is the use of the custom multiplier and is it supposed to be used?

                  Am using the same unit value of Bps.

                  Thanks

                  Comment

                  • alixen
                    Senior Member
                    • Apr 2006
                    • 474

                    #10
                    Hi,

                    Originally posted by bubune
                    That is my headache and frustration. What is the use of the custom multiplier and is it supposed to be used?

                    Am using the same unit value of Bps.
                    The multiplier depends on the units you want.
                    • with Bps (bytes per second), you don't need a multiplier since you are already getting bytes from ifOutOctets (1 octet = 1 byte).
                    • with bps (bits per second), you need to multiply by 8 since 1 byte = 8 bits.


                    Hope this helps
                    Alixen
                    http://www.alixen.fr/zabbix.html

                    Comment

                    • subba5678
                      Senior Member
                      • May 2010
                      • 132

                      #11
                      Hi alixen,
                      I want to monitor one of my linux Server through SNMP . Please help me out .


                      Thanks,
                      Subbu

                      Comment

                      Working...