Ad Widget

Collapse

SNMP_Community and OIDs in zabbix 3.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yngvith
    Member
    • Nov 2015
    • 34

    #1

    SNMP_Community and OIDs in zabbix 3.0

    Hi I've just installed zabbix 3.0.
    it as worked very well I think.
    I've notices some problems though regarding SNMP devices.
    I did create a discovery rule as in zabbix 2.4 and a particular test device was consequently discovered as aspected. Very good :-)
    But when linking templates and gathering data, I get no data.
    I did this as in zabbix 2.4 but now it does'nt work. I'm trying to find what has changed regarding i.e. SNMP_Commnunity string etc between those versions 2.4 and 3.0 .
    Any good input from you, that could explain my troubles now?
    this is from the log file,
    /var/log/zabbix/zabbix_server.log


    1375:20160226:101508.650 item "lab-7201:ciscoFlashDeviceDescr" became not supported: Invalid SNMP OID: pairs of macro and OID are expected.
    1375:20160226:101508.650 item "lab-7201:ciscoMemoryPoolName" became not supported: Invalid SNMP OID: pairs of macro and OID are expected.
    1375:20160226:101508.650 item "lab-7201:cpmCPUTotalPhysicalIndex" became not supported: Invalid SNMP OID: pairs of macro and OID are expected.
    1375:20160226:101508.650 item "lab-7201spfNbrIpAddr" became not supported: Invalid SNMP OID: pairs of macro and OID are expected.
    1374:20160226:101508.658 item "lab-7201:bgpPeerIdentifier" became not supported: Invalid SNMP OID: pairs of macro and OID are expected.
    1374:20160226:101508.658 item "lab-7201:ciscoEnvMonFanStatusDescr" became not supported: Invalid SNMP OID: pairs of macro and OID are expected.
    1374:20160226:101508.658 item "lab-7201:ciscoEnvMonSupplyStatusDescr" became not supported: Invalid SNMP OID: pairs of macro and OID are expected.
    1374:20160226:101508.658 item "lab-7201:ciscoEnvMonTemperatureStatusDescr" became not supported: Invalid SNMP OID: pairs of macro and OID are expected.
    1374:20160226:101508.658 item "lab-7201:ciscoEnvMonVoltageStatusDescr" became not supported: Invalid SNMP OID: pairs of macro and OID are expected.
    1374:20160226:101508.658 item "lab-7201spfIfIpAddress" became not supported: Invalid SNMP OID: pairs of macro and OID are expected.

    best regards
    Yngvi
  • aldevar
    Junior Member
    • Jan 2016
    • 18

    #2
    Hi,

    Do you have the MIB on your Zabbix 3.0 server?
    Can you show us your template?

    Comment

    • yngvith
      Member
      • Nov 2015
      • 34

      #3
      SNMP_Community and OIDs in zabbix 3.0

      hi
      I used download-mibs to get them.
      and you can see here the number of mib files downloaded:

      root@zabbix1:/# ls -ltr /var/lib/mibs/ietf/ | wc -l
      301
      root@zabbix1:/#
      root@zabbix1:/# ls -ltr /var/lib/mibs/iana/ | wc -l
      16

      Templates for this device are:
      Tempate SNMP Device
      Template Cisco 7200

      best regards
      Yngvi

      Comment

      • Hernandes Martins
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Apr 2011
        • 900

        #4
        Send commands snmpwalk for oids Invalid SNMP
        __

        Att.
        Hernandes Martins - Zabbix Trainer

        Zabbix Brazil Partner - www.luniobr.com

        Zabbix Brazil Community - www.zabbixbrasil.org

        Blog: hernandesmartins.blogspot.com.br

        Skype: hernandss
        Telegram: @MrHernandes

        Español
        Facebook: facebook.com/groups/zabbixlatam
        Telegram: https://t.me/ZabbixEspañol

        Português
        Facebook: facebook.com/groups/zabbixbrasil/
        Telegram: https://t.me/ZabbixBrasil

        Comment

        • yngvith
          Member
          • Nov 2015
          • 34

          #5
          SNMP_Community and OIDs in zabbix 3.0'

          hi, I can easily snmpwalk this device.
          In fact I get no errors when doing snmpwalk with cmd on the zabbix server:


          root@zabbix1:/# snmpwalk -v2c -c XXXX lab-7201 SNMPv2-MIB::sysName.0
          SNMPv2-MIB::sysName.0 = STRING: lab-7201.ipnet.siminn.is
          root@zabbix1:/#
          root@zabbix1:/# snmpwalk -v2c -c XXXX lab-7201 | head -5
          SNMPv2-MIB::sysDescr.0 = STRING: Cisco IOS Software, 7200 Software (C7200P-ADVIPSERVICESK9-M), Version 12.2(33)SRE13, RELEASE SOFTWARE (fc1)
          Technical Support: http://www.cisco.com/techsupport
          Copyright (c) 1986-2015 by Cisco Systems, Inc.
          Compiled Tue 01-Sep-15 13:33 by prod_rel_team
          SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.222
          root@zabbix1:/#

          and here is an example of the Temperature and Voltage parameters:


          SNMPv2-SMI::mib-2.47.1.1.1.1.7.33 = STRING: "NPE Inlet Temperature 0"
          SNMPv2-SMI::mib-2.47.1.1.1.1.7.34 = STRING: "NPE Outlet Temperature 0"
          SNMPv2-SMI::mib-2.47.1.1.1.1.7.35 = STRING: "CPU Die Temperature 0"
          SNMPv2-SMI::mib-2.47.1.1.1.1.7.36 = STRING: "+3.30 V Voltage 0"
          SNMPv2-SMI::mib-2.47.1.1.1.1.7.37 = STRING: "+1.50 V Voltage 0"
          SNMPv2-SMI::mib-2.47.1.1.1.1.7.38 = STRING: "+2.50 V Voltage 0"
          SNMPv2-SMI::mib-2.47.1.1.1.1.7.39 = STRING: "+1.80 V Voltage 0"
          SNMPv2-SMI::mib-2.47.1.1.1.1.7.40 = STRING: "+1.20 V Voltage 0"
          SNMPv2-SMI::mib-2.47.1.1.1.1.7.41 = STRING: "VDD_CPU Voltage 0"
          SNMPv2-SMI::mib-2.47.1.1.1.1.7.42 = STRING: "VDD_MEM Voltage 0"
          SNMPv2-SMI::mib-2.47.1.1.1.1.7.43 = STRING: "VTT Voltage 0"
          SNMPv2-SMI::mib-2.47.1.1.1.1.7.44 = STRING: "+3.45 V Voltage 0"
          SNMPv2-SMI::mib-2.47.1.1.1.1.7.45 = STRING: "-11.95 Voltage 0"
          SNMPv2-SMI::mib-2.47.1.1.1.1.7.46 = STRING: "+5.15 V Voltage 0"
          SNMPv2-SMI::mib-2.47.1.1.1.1.7.47 = STRING: "+12.15 V Voltage 0"


          I did put the correct community string in the zabbix configuration.

          best regards
          Yngvi

          Comment

          • yngvith
            Member
            • Nov 2015
            • 34

            #6
            SNMP_Community and OIDs in zabbix 3.0'

            But I get errors in the zabbix server log file
            /var/log/zabbix/zabbix_server.log

            Errors like this one:

            ciscoMemoryPoolName" became not supported: Invalid SNMP OID: pairs of macro and OID are expected

            Comment

            • yngvith
              Member
              • Nov 2015
              • 34

              #7
              SNMP_Community and OIDs in zabbix 3.0'

              Also, when I do this in zabbix GUI :

              Configuration->Hosts->Discovery ( i.e. for this device lab-7201)

              There are 11 discovery rules in this category, with the 'key' for each one like this:
              ospfNbrIpAddr
              ospfIfIpAddress
              ifDescr
              cpmCPUTotalPhysicalIndex
              ciscoMemoryPoolName
              ciscoFlashDeviceDescr
              ciscoEnvMonVoltageStatusDescr
              ciscoEnvMonTemperatureStatusDescr
              ciscoEnvMonSupplyStatusDescr
              ciscoEnvMonFanStatusDescr
              bgpPeerIdentifier

              the 'type' parameter for every trigger is SNMPv2 agent
              The 'status' of every trigger is 'not supported' except for the 'ifDescr'

              best regards
              Yngvi

              Comment

              • buzzerbeater
                Junior Member
                • Nov 2015
                • 8

                #8
                hi, Yngvi,

                Zabbix has changed SNMP OID discovery in 3.0. You can refer to https://www.zabbix.com/documentation...y_of_snmp_oids for reference.

                For example, if you want to discover fans, you need to set SNMP OID to "discovery[{#SNMPVALUE},1.3.6.1.4.1.9.9.13.1.4.1.3]" in your discovery rules instead of "1.3.6.1.4.1.9.9.13.1.4.1.3".

                Hope it helps.

                Comment

                • yngvith
                  Member
                  • Nov 2015
                  • 34

                  #9
                  SNMP_Community and OIDs in zabbix 3.0

                  Well, yes this is exactly correct!
                  So I've gone through the Discovery Configuration for severarl SNMP templates and done this change. Aftewards it works very well.
                  Thanks a lot for your help :-) You have just saved the day!!!

                  best regards
                  Yngvi

                  Comment

                  • yngvith
                    Member
                    • Nov 2015
                    • 34

                    #10
                    SNMP_Community and OIDs in zabbix 3.0

                    BTW do you know if there are more changes which have to be done for SNMP monitoring i.e. graphs or triggers?
                    best regards
                    Yngvi

                    Comment

                    • buzzerbeater
                      Junior Member
                      • Nov 2015
                      • 8

                      #11
                      As far as I have tested, the graphs and triggers work well.

                      Comment

                      • yngvith
                        Member
                        • Nov 2015
                        • 34

                        #12
                        SNMP_Community and OIDs in zabbix 3.0

                        OK, great ;-)
                        best regards
                        Yngvi

                        Comment

                        Working...