Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-10308

SNMP monitor doesn't take service down

    XMLWordPrintable

    Details

      Description

      It's a Synology with 5 drives in a RAID. Drive 5 has an outage (see snmpwalk). The poller should walk the OID tree and if one entry doesn't match "1" it should go offline. But it didn't.

      Poller configuration:

      <service name="Synology-Drive-Physical" interval="60000" user-defined="false" status="on">
       <parameter key="oid" value=".1.3.6.1.4.1.6574.2.1.1.5"/>
       <parameter key="match-all" value="false"/>
       <parameter key="walk" value="true"/>
       <parameter key="operator" value="="/>
       <parameter key="operand" value="1"/>
       <parameter key="reason-template" value="One or more disks have problems. The state should be ok(${operand}) the observed value is ${observedValue}. Please check DSM for more details: https://${ipaddr}:5251. Normal(1): The hard disk functions normally. Initialized(2): The hard disk has system partition but no data. NotInitialized(3): The hard disk does not have system in system partition. SystemPartitionFailed(4): The system partitions on the hard disks are damaged. Crashed(5): The hard disk has damaged. ${walk}"/>
       </service>

       

      Snmpwalk on .1.3.6.1.4.1.6574.2.1.1.5:

       SNMPv2-SMI::enterprises.6574.2.1.1.5.0 = INTEGER: 1
       SNMPv2-SMI::enterprises.6574.2.1.1.5.1 = INTEGER: 1
       SNMPv2-SMI::enterprises.6574.2.1.1.5.2 = INTEGER: 1
       SNMPv2-SMI::enterprises.6574.2.1.1.5.3 = INTEGER: 1
       SNMPv2-SMI::enterprises.6574.2.1.1.5.4 = INTEGER: 2
      

      Karaf Shell polling while drive 5 down:

      admin@opennms> poller:test -i 10.40.11.4 -s Synology-Drive-Physical -P proemion
       Checking service Synology-Drive-Physical on IP 10.40.11.4
       Package: proemion
       Monitor: org.opennms.netmgt.poller.monitors.SnmpMonitor
       Parameter reason-template : One or more disks have problems. The state should be ok(${operand}) the observed value is ${observedValue}. Please check DSM for more details: https://${ipaddr}:5251. Normal(1): The hard disk functions normally. Initialized(2): The hard disk has system partition but no data. NotInitialized(3): The hard disk does not have system in system partition. SystemPartitionFailed(4): The system partitions on the hard disks are damaged. Crashed(5): The hard disk has damaged. ${walk}
       Parameter oid : .1.3.6.1.4.1.6574.2.1.1.5
       Parameter match-all : false
       Parameter walk : true
       Parameter operator : =
       Parameter operand : 1
       Available ? false (status Down[2])

      Debug log:

      2018-07-26 08:34:21,890 DEBUG [DefaultUDPTransportMapping_0.0.0.0/0] o.o.n.s.ColumnTracker: Processing varBind: .1.3.6.1.4.1.6574.2.1.1.5.4 = 2 but also 2018-07-26 08:42:26,554 DEBUG [Poller-Thread-4-of-50] o.o.n.p.p.PollableServiceConfig: Finish polling PollableService[location=Default, interface=PollableInterface [PollableNode [413]:10.40.11.4], svcName=Synology-Drive-Physical] using pkg proemion result = Up

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              fuhrmann Marcel Fuhrmann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: