Ad Widget

Collapse

Dude Duplex Switch

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anunez
    Member
    • Aug 2013
    • 43

    #1

    Dude Duplex Switch

    Estimated, it is possible in zabbix monitorar duplex ?:

    Values ​​

    1: half
    2: full
    3: disagree
    4: Self

    I have made a: sudo snmpwalk -c public -v2c 192.168.0.4 > /home/XXX/Escritorio/cisco.txt

    and does not show me anything about duplex. The switch is a Cisco 2960


    OID Cisco
  • Pada
    Senior Member
    • Apr 2012
    • 236

    #2
    If 'sudo snmpwalk -c public -v2c 192.168.0.4 1.3.6.1.4.1.9.5.1.4.1.1.10' returns an integer value in the range 1 - 4, then you can most definitely monitor the duplex in Zabbix.

    Comment

    • anunez
      Member
      • Aug 2013
      • 43

      #3
      Originally posted by Pada
      If 'sudo snmpwalk -c public -v2c 192.168.0.4 1.3.6.1.4.1.9.5.1.4.1.1.10' returns an integer value in the range 1 - 4, then you can most definitely monitor the duplex in Zabbix.
      Thank you very much

      What would be the ID and ID to enter the xml?

      <item type="4" key="memoryUsage" value_type="3">
      <description>Memory usage</description>
      <ipmi_sensor></ipmi_sensor>
      <delay>60</delay>
      <history>7</history>
      <trends>365</trends>
      <status>0</status>
      <data_type>0</data_type>
      <units>b</units>
      <multiplier>0</multiplier>
      <delta>0</delta>
      <formula>0</formula>
      <lastlogsize>0</lastlogsize>
      <logtimefmt></logtimefmt>
      <delay_flex></delay_flex>
      <authtype>0</authtype>
      <username></username>
      <password></password>
      <publickey></publickey>
      <privatekey></privatekey>
      <params></params>
      <trapper_hosts></trapper_hosts>
      <snmp_community>public</snmp_community>
      <snmp_oid>xxxxxxxx</snmp_oid>
      <snmp_port>161</snmp_port>
      <snmpv3_securityname></snmpv3_securityname>
      <snmpv3_securitylevel>0</snmpv3_securitylevel>
      <snmpv3_authpassphrase></snmpv3_authpassphrase>
      <snmpv3_privpassphrase></snmpv3_privpassphrase>
      <valuemapid>0</valuemapid>
      <applications/>
      </item>
      SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.10.1.1 = INTEGER: 2
      SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.10.1.2 = INTEGER: 2
      SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.10.1.3 = INTEGER: 2
      SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.10.1.4 = INTEGER: 4
      SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.10.1.5 = INTEGER: 4
      SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.10.1.6 = INTEGER: 4
      SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.10.1.7 = INTEGER: 4
      SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.10.1.8 = INTEGER: 4
      SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.10.1.9 = INTEGER: 4

      Comment

      • Pada
        Senior Member
        • Apr 2012
        • 236

        #4
        Sorry, I meant to say 'snmpget' and not 'snmpwalk'.

        I'm really not sure as to why that value had a tree structure, because according to Cisco SNMP Object Navigator it's supposed to be a value.
        If it does not return a value for that particular OID, then you cannot monitor it OR at the very least you'll first need to find the OID that does return a value. My guess is that the last number in the OID represents the port number.

        The key="memoryUsage" could be changed to like key="portDuplexPort1" and the <snmp_oid>xxxxxxxx</snmp_oid> should be changed to <snmp_oid>1.3.6.1.4.1.9.5.1.4.1.1.10.1.1</snmp_oid>
        Last edited by Pada; 22-10-2013, 14:01. Reason: Fixed OID details

        Comment

        • anunez
          Member
          • Aug 2013
          • 43

          #5
          Originally posted by Pada
          Sorry, I meant to say 'snmpget' and not 'snmpwalk'.

          I'm really not sure as to why that value had a tree structure, because according to Cisco SNMP Object Navigator it's supposed to be a value.
          If it does not return a value for that particular OID, then you cannot monitor it OR at the very least you'll first need to find the OID that does return a value. My guess is that the last number in the OID represents the port number.

          The key="memoryUsage" could be changed to like key="portDuplexPort1" and the <snmp_oid>xxxxxxxx</snmp_oid> should be changed to <snmp_oid>1.3.6.1.4.1.9.5.1.4.1.1.10.1.1</snmp_oid>
          administrator@ubuntu:~/Escritorio$ sudo snmpwalk -c public -v2c 192.168.0.2 1.3.6.1.4.1.9.5.1.4.1.1.10
          SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.10.1.1 = INTEGER: 2
          SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.10.1.2 = INTEGER: 2
          SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.10.1.3 = INTEGER: 2
          SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.10.1.4 = INTEGER: 4
          SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.10.1.5 = INTEGER: 4
          SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.10.1.6 = INTEGER: 4
          SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.10.1.7 = INTEGER: 4
          SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.10.1.8 = INTEGER: 4
          SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.10.1.9 = INTEGER: 4

          administrator@ubuntu:~/Escritorio$ sudo snmpget -c public -v2c 192.168.0.2 1.3.6.1.4.1.9.5.1.4.1.1.10
          SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.10 = No Such Instance currently exists at this OID

          I miss a cisco 2960 does not show that information.

          Comment

          • Pada
            Senior Member
            • Apr 2012
            • 236

            #6
            I've updated my previous post...

            If you run snmpwalk, and it returns from .1.1 to .1.24 (or how many ports you have), then you can be assured that the last digits references the port number.

            Like to get port 24's duplex setting, use the OID 1.3.6.1.4.1.9.5.1.4.1.1.10.1.24

            Ideally you should be using discovery rules to detect the amount of ports and to duplicate the monitoring items according to the amount of ports on your switch.

            Comment

            • anunez
              Member
              • Aug 2013
              • 43

              #7
              Originally posted by Pada
              I've updated my previous post...

              If you run snmpwalk, and it returns from .1.1 to .1.24 (or how many ports you have), then you can be assured that the last digits references the port number.

              Like to get port 24's duplex setting, use the OID 1.3.6.1.4.1.9.5.1.4.1.1.10.1.24

              Ideally you should be using discovery rules to detect the amount of ports and to duplicate the monitoring items according to the amount of ports on your switch.
              thank you very much, the figures are correct.

              it is normal to only return the number? (not half, dull, disagree and car)

              Comment

              • anunez
                Member
                • Aug 2013
                • 43

                #8
                thank you very much

                Comment

                • Pada
                  Senior Member
                  • Apr 2012
                  • 236

                  #9
                  Yes. It's best practice to return integers (or enumerations), because it takes up less space in your monitoring system.

                  In Zabbix you can add a value mapping, by going to Administration > General and then selecting "Value mapping" from the dropdown list.
                  Once you've added the value mapping, you can change your SNMP item's "Show value" setting to make use of the value mapping, so that when you're in Latest Data view, that it will show you the understandable/text representation

                  Comment

                  • anunez
                    Member
                    • Aug 2013
                    • 43

                    #10
                    Originally posted by Pada
                    I've updated my previous post...

                    If you run snmpwalk, and it returns from .1.1 to .1.24 (or how many ports you have), then you can be assured that the last digits references the port number.

                    Like to get port 24's duplex setting, use the OID 1.3.6.1.4.1.9.5.1.4.1.1.10.1.24

                    Ideally you should be using discovery rules to detect the amount of ports and to duplicate the monitoring items according to the amount of ports on your switch.
                    Thank you very much for your help

                    You are well

                    Comment

                    • anunez
                      Member
                      • Aug 2013
                      • 43

                      #11


                      I have a doubt with the port speed 10/100 values ​​do not match.



                      Know any oid.

                      Comment

                      • Pada
                        Senior Member
                        • Apr 2012
                        • 236

                        #12
                        Please post your snmpwalk results for that portAdminSpeed OID: 1.3.6.1.4.1.9.5.1.4.1.1.9

                        If it returns INTEGER = 100000000, then Zabbix would interpret it as 100 Mbps if you specify the unit as "bps"

                        Comment

                        • anunez
                          Member
                          • Aug 2013
                          • 43

                          #13
                          Originally posted by Pada
                          Please post your snmpwalk results for that portAdminSpeed OID: 1.3.6.1.4.1.9.5.1.4.1.1.9

                          If it returns INTEGER = 100000000, then Zabbix would interpret it as 100 Mbps if you specify the unit as "bps"
                          administrator@ubuntu:~/Escritorio$ sudo snmpwalk -c public -v2c 192.168.0.2 1.3.6.1.4.1.9.5.1.4.1.1.9

                          SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.9.1.1 = INTEGER: 1
                          SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.9.1.2 = INTEGER: 100000000
                          SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.9.1.3 = INTEGER: 100000000
                          SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.9.1.4 = INTEGER: 1
                          SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.9.1.5 = INTEGER: 1
                          SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.9.1.6 = INTEGER: 1
                          SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.9.1.7 = INTEGER: 1
                          SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.9.1.8 = INTEGER: 1
                          SNMPv2-SMI-v1::enterprises.9.5.1.4.1.1.9.1.9 = INTEGER: 1

                          Comment

                          • Pada
                            Senior Member
                            • Apr 2012
                            • 236

                            #14
                            I forgot to tell you, but Zabbix already has a bunch of templates, including one for your CISCO switch here: https://www.zabbix.com/wiki/templates/start

                            Please just take note that their SNMP OID suffixes may be slightly different.

                            Unfortunately that template is just for the CPU, Memory and Bytes In+Out and not for the Duplex/Port Speed.

                            Comment

                            Working...