Ad Widget

Collapse

SNMP in Zabbix 2.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sharafy
    Junior Member
    • May 2012
    • 15

    #1

    SNMP in Zabbix 2.0

    Hi,

    I have recently installed Zabbix 2.0 and everything is ok as far as monitoring Linux and Windows servers. Great software.

    My problem is with SNMP enabled devices such as Audiocodes VoIP Gateway.

    I have been searching and reading wikis for days and I cannot figure this out.

    Before moving to Zabbix I was using Zenoss and all I had to do was to enter the IP of the Zenoss in my Audiocodes gateway. Within few minutes the Interfaces status would show up just fine there.

    I know that Zabbix 2.0 has Auto Discovery and should be able to do the same but I just don't know how.

    I run the following command from my Zabbix server:

    HTML Code:
    snmpwalk -v 2c -c public 192.168.3.16 | head -n 40
    The above command return lots of stuff and I have attached few to this post. The one that I'm interested in is:
    HTML Code:
    IF-MIB::ifDescr.1141129729 = STRING: Digital DS1 interface 1/1
    IF-MIB::ifAdminStatus.1141129729 = INTEGER: up(1)
    IF-MIB::ifAdminStatus.1142698753 = INTEGER: up(1)
    IF-MIB::ifAdminStatus.1142698754 = INTEGER: up(1)
    IF-MIB::ifOperStatus.1141129729 = INTEGER: down(2)
    IF-MIB::ifOperStatus.1142698753 = INTEGER: up(1)
    IF-MIB::ifOperStatus.1142698754 = INTEGER: down(2)
    Of course I can add these manually to my Items and that works great but how can I just have Zabbix to automatically read all this and display it on gui?

    I have already added the host and assigned SNMP port to it. I also assigned the host the standard SNMP V2 template. But I can't get the info that I attached to this post.

    Can someone help me with this please?

    Thanks.
    Attached Files
  • marcherren
    Junior Member
    • Mar 2011
    • 28

    #2
    With Zabbix 2.0 you can use Low Level Discovery for this.
    There are some predefined templates for it and if you are intereted only in the interface status you can use the "Template SNMP Interfaces" and simply link it with your Audiocodes VoIP Gateway.


    If you need any specific value you want to monitor you need to study the MIB of your VoIP Gateway and create yourself approriate items and triggers.

    Comment

    • seunds
      Junior Member
      • May 2012
      • 12

      #3
      zabbix 2.0

      Hi sarafy,
      Sorry I dont have a solution for you, I need your help please.

      I am a newbie to linux and zabbix. Kindly help me with a step by step code i can use to install 2.0 version u had just installed.

      I have tried with some ways i have but I have got lots of error.

      Thanks in advance

      Comment

      • sharafy
        Junior Member
        • May 2012
        • 15

        #4
        Thanks for your reply.

        With Zabbix 2.0 you can use Low Level Discovery for this.
        There are some predefined templates for it and if you are intereted only in the interface status you can use the "Template SNMP Interfaces" and simply link it with your Audiocodes VoIP Gateway.
        I would like to use the Low Level Discovery (LLD) but the problem is that Zabbix is not detecting anything. Shouldn't the LLD detect the snmp OIDs and display it in Zabbix?


        Sorry I dont have a solution for you, I need your help please.

        I am a newbie to linux and zabbix. Kindly help me with a step by step code i can use to install 2.0 version u had just installed.
        I'm not a Zabbix expert but I will try to help you. Please send me a private message and include the error messages you are getting.

        Comment

        • sharafy
          Junior Member
          • May 2012
          • 15

          #5
          Can someone please help me with this?

          I cannot figure out away to have Zabbix automatically collect/query SNMP Devices. As I mentioned in my post, when I do:

          Code:
          snmpwalk -v 2c -c public 192.168.3.16 | head -n 40
          I get:

          Code:
          SNMPv2-MIB::sysDescr.0 = STRING: Product: MG 1K;SW Version: 6.20A.055.003
          SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.5003.8.1.1.47
          DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (2059530) 5:43:15.30
          SNMPv2-MIB::sysContact.0 = STRING: 
          SNMPv2-MIB::sysName.0 = STRING: 
          SNMPv2-MIB::sysLocation.0 = STRING: 
          SNMPv2-MIB::sysServices.0 = INTEGER: 72
          IF-MIB::ifNumber.0 = INTEGER: 3
          IF-MIB::ifIndex.1141129729 = INTEGER: 1141129729
          IF-MIB::ifIndex.1142698753 = INTEGER: 1142698753
          IF-MIB::ifIndex.1142698754 = INTEGER: 1142698754
          IF-MIB::ifDescr.1141129729 = STRING: Digital DS1 interface 1/1
          IF-MIB::ifDescr.1142698753 = STRING: Ethernet interface 7/1
          IF-MIB::ifDescr.1142698754 = STRING: Ethernet interface 7/2
          IF-MIB::ifType.1141129729 = INTEGER: ds1(18)
          IF-MIB::ifType.1142698753 = INTEGER: ethernetCsmacd(6)
          IF-MIB::ifType.1142698754 = INTEGER: ethernetCsmacd(6)
          IF-MIB::ifMtu.1141129729 = INTEGER: 0
          IF-MIB::ifMtu.1142698753 = INTEGER: 1500
          IF-MIB::ifMtu.1142698754 = INTEGER: 1500
          IF-MIB::ifSpeed.1141129729 = Gauge32: 1544000
          IF-MIB::ifSpeed.1142698753 = Gauge32: 100000000
          IF-MIB::ifSpeed.1142698754 = Gauge32: 0
          IF-MIB::ifPhysAddress.1141129729 = STRING: 
          IF-MIB::ifPhysAddress.1142698753 = STRING: 0:90:8f:14:5f:11
          IF-MIB::ifPhysAddress.1142698754 = STRING: 0:90:8f:14:5f:11
          IF-MIB::ifAdminStatus.1141129729 = INTEGER: up(1)
          IF-MIB::ifAdminStatus.1142698753 = INTEGER: up(1)
          IF-MIB::ifAdminStatus.1142698754 = INTEGER: up(1)
          IF-MIB::ifOperStatus.1141129729 = INTEGER: down(2)
          IF-MIB::ifOperStatus.1142698753 = INTEGER: up(1)
          IF-MIB::ifOperStatus.1142698754 = INTEGER: down(2)
          How can zabbix just detects all this and display it? I don't want to add these manually.

          Thanks.

          Comment

          • MrKen
            Senior Member
            • Oct 2008
            • 652

            #6
            Did you read/try this:http://www.zabbix.com/documentation/..._of_snmp_oid_s

            Looks pretty straight forward.

            MrKen
            Disclaimer: All of the above is pure speculation.

            Comment

            • netopier
              Junior Member
              • Mar 2012
              • 16

              #7
              SNMP low level discovery is nice feature, but in this implementation is unusable.

              Is anyone able to get interface names to item/trigger/graph name instead of snmp index number?

              Comment

              • sharafy
                Junior Member
                • May 2012
                • 15

                #8
                Did you read/try this:http://www.zabbix.com/documentation/..._of_snmp_oid_s

                Looks pretty straight forward.
                As netopier mentioned, this is unusable here. I have tried this but I still have to add Interfaces status manually.

                Going back to the attached txt file, when I use ifDescr in low level discovery, Zabbix detects the following:

                Code:
                 ifDescr.1141129729
                 ifDescr.1142698753
                 ifDescr.1142698754
                With its value which are

                Digital DS1 interface 1/1
                Ethernet interface 7/1
                Ethernet interface 7/2
                And I have to add ifInOctets and ifOperStatus manually for each interface.

                Can this be done some other way? Can Zabbix just detects each interface name and its status automatically?

                Thanks.

                Comment

                • JBo
                  Senior Member
                  • Jan 2011
                  • 310

                  #9
                  Hi,

                  Originally posted by sharafy
                  And I have to add ifInOctets and ifOperStatus manually for each interface.

                  Can this be done some other way? Can Zabbix just detects each interface name and its status automatically?
                  Have you looked at Template_SNMP_Interfaces included in Zabbix 2.0 ?
                  It does all you are asking for.

                  Regards,
                  JBo

                  Comment

                  • sharafy
                    Junior Member
                    • May 2012
                    • 15

                    #10
                    Have you looked at Template_SNMP_Interfaces included in Zabbix 2.0 ?
                    It does all you are asking for.
                    Thanks. That template never got installed when I upgraded from 1.8.12 to 2.0. I just downloaded the template and give that a try in a bit.

                    Thanks again.

                    Comment

                    • sharafy
                      Junior Member
                      • May 2012
                      • 15

                      #11
                      Have you looked at Template_SNMP_Interfaces included in Zabbix 2.0 ?
                      This actually worked but I get duplicate "Name".

                      Interface Status Configured (Ethernet interface 7/1)
                      Interface Status Configured (Ethernet interface 7/1)
                      Interface Status Configured (Ethernet interface 7/2)
                      Interface Status Configured (Ethernet interface 7/2)

                      I downloaded the template from:

                      Template_SNMP_Interfaces

                      is the duplicate being caused by Interface.Index.Discovery.64 and Interface.Index.Discovery.32? the fact that there are two different discovery going on?

                      Comment

                      • JBo
                        Senior Member
                        • Jan 2011
                        • 310

                        #12
                        Originally posted by sharafy
                        is the duplicate being caused by Interface.Index.Discovery.64 and Interface.Index.Discovery.32? the fact that there are two different discovery going on?
                        Yes probably, you should turn off one of these discoveries.
                        The template you have got is not the one provided with Zabbix 2.0.
                        Since it is not available online, I have attached it to this post.

                        Regards,
                        JBo
                        Attached Files

                        Comment

                        • jix
                          Member
                          • Feb 2011
                          • 73

                          #13
                          !

                          Originally posted by netopier
                          SNMP low level discovery is nice feature, but in this implementation is unusable.

                          Is anyone able to get interface names to item/trigger/graph name instead of snmp index number?
                          yes i did !
                          you should use {SNMPVALUE}

                          Comment

                          • sharafy
                            Junior Member
                            • May 2012
                            • 15

                            #14
                            Originally posted by JBo
                            Yes probably, you should turn off one of these discoveries.
                            The template you have got is not the one provided with Zabbix 2.0.
                            Since it is not available online, I have attached it to this post.

                            Regards,
                            JBo
                            Thanks. The template you attached is not working for some reason. I'm getting:

                            Timeout while connecting to [[hostIP]:161

                            But when I assign Template_SNMPv2_Device or the attached template it works.

                            In any case, thanks a lot for bringing this to my attention. Template_SNMP_Interface worked for me.

                            Thanks.
                            Attached Files
                            Last edited by sharafy; 30-05-2012, 21:14.

                            Comment

                            • sharafy
                              Junior Member
                              • May 2012
                              • 15

                              #15
                              Originally posted by JBo
                              Yes probably, you should turn off one of these discoveries.
                              The template you have got is not the one provided with Zabbix 2.0.
                              Since it is not available online, I have attached it to this post.

                              Regards,
                              JBo
                              JBo, the template you had attached was missing a global macro {$SNMP_COMMUNITY}

                              Once I added that it started to work just fine.

                              Thanks.

                              Comment

                              Working...