Ad Widget

Collapse

Unable to monitor switch with snmp

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mbobkiewicz
    Member
    • Aug 2005
    • 36

    #1

    Unable to monitor switch with snmp

    Hi,
    my setup:
    Centos 4.3, Kernel 2.6.9-34
    net-snmp 5.1.2
    zabbix 1.1b11
    Dell Switch 5324
    configure: --enable-server --enable-agent --with-mysql --with-net-snmp
    Compiles and installs without any errors.

    What I want to do is getting some values from the switch via snmp. My problem: everytime I enter a key to zabbix it changes it´s state to "not supported". I´ve tried different values: Switch name, link state error count etc. to see if it is related to the value type but no change. What makes me wander is that I have to give additional parameter to snmpwalk and snmpget than descriped in the manual.
    While the manual says:
    snmpwalk <host or host IP> public
    to get the list I have to type:
    snmpwalk <host or host IP> -v2c -c public
    to get a result. Same with snmpget. The line from the manual only leads into error messages. Could this be the problem? Any advice would be welcome.

    Mike
    Last edited by mbobkiewicz; 30-05-2006, 12:32.
  • erisan500
    Senior Member
    Zabbix Certified Specialist
    • Aug 2005
    • 285

    #2
    Please post your item definition (what did you filled in into all the item fields).

    Greetings
    EriSan
    Zabbix Certified Specialist

    Comment

    • krusty
      Senior Member
      • Oct 2005
      • 222

      #3
      Have you started your snmp Server?

      Perhaps this could be a problem.


      What said the zabbix server if you send the following command from consol:

      snmpwalk -v1 -c<community-name> <IP-Adress>

      Please post what your result is.

      Comment

      • mbobkiewicz
        Member
        • Aug 2005
        • 36

        #4
        Sorry, here are my settings:
        Name of the system:
        snmpget -On ip-of-switch -v2c -c public sysName.0
        result: .1.3.6.1.2.1.1.5.0 = STRING: Dell1
        In Zabbix:
        Type: SNMPv2 Agent (also tested v1 and v3)
        OID: 1.3.6.1.2.1.1.5.0 (also tested with leading dot and with key name)
        Key: sysName.0
        Type: Character

        Portstatus:
        snmpget -On ip-of-switch -v2c -c public ifAdminStatus.1
        result: .1.3.6.1.2.1.2.2.1.7.1 = INTEGER: up(1)
        In Zabbix:
        Type: SNMPv2 Agent
        OID: 1.3.6.1.2.1.2.2.1.7.1
        Key: ifAdminStatus.1
        Type: Numeric (Integer 64 bit) (also tried the float type)

        All the rest of fields are at their default values.

        Comment

        • krusty
          Senior Member
          • Oct 2005
          • 222

          #5
          Could you please try this command from command line.

          snmpwalk -v1 -c public <IP-Adress> 1.3.6.1.2.1.1.5.0

          What is the result?

          Comment

          • mbobkiewicz
            Member
            • Aug 2005
            • 36

            #6
            >Have you started your snmp Server?
            >Perhaps this could be a problem.
            >What said the zabbix server if you send the following command from consol:
            >snmpwalk -v1 -c<community-name> <IP-Adress>
            >Please post what your result is.

            Hi Krusty,
            while getting a total of nearly 9000 values I´ll just post the first lines:

            SNMPv2-MIB::sysDescr.0 = STRING: Ethernet Switch
            SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.674.10895.3004
            SNMPv2-MIB::sysUpTime.0 = Timeticks: (226119986) 26 days, 4:06:39.86
            SNMPv2-MIB::sysContact.0 = STRING: Serverraum
            SNMPv2-MIB::sysName.0 = STRING: Dell1
            SNMPv2-MIB::sysLocation.0 = STRING:
            SNMPv2-MIB::sysServices.0 = INTEGER: 3
            SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
            SNMPv2-MIB::sysORID.1 = OID: SNMPv2-SMI::enterprises.89.73
            SNMPv2-MIB::sysORDescr.1 = STRING: RS capabilities
            SNMPv2-MIB::sysORUpTime.1 = Timeticks: (0) 0:00:00.00
            IF-MIB::ifNumber.0 = INTEGER: 33
            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

            Comment

            • krusty
              Senior Member
              • Oct 2005
              • 222

              #7
              Okay, the snmp works fine.

              Please try this to check if you get values from the switch.

              snmpwalk -v1 -c public <IP-Adress> 1.3.6.1.2.1.1.5.0

              Comment

              • mbobkiewicz
                Member
                • Aug 2005
                • 36

                #8
                >Please try this to check if you get values from the switch.
                >snmpwalk -v1 -c public <IP-Adress> 1.3.6.1.2.1.1.5.0
                Returns SNMPv2-MIB::sysName.0 = STRING: Dell1

                Comment

                • mbobkiewicz
                  Member
                  • Aug 2005
                  • 36

                  #9
                  Thanks for all your help folks, Beta 12 fixes the problem.

                  Comment

                  • tekknokrat
                    Senior Member
                    • Sep 2008
                    • 140

                    #10
                    Originally posted by smartvm
                    i will suggest you go for Best Monitor Switch
                    threads 2 years old, thx für adding useless ads in this forum

                    Comment

                    Working...