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

Win32ServiceDetector fails to detect services

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.1
    • Fix Version/s: 1.8.13, 1.9.90
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Environment:
      Operating System: Windows Vista / 2008
      Platform: PC
    • Bugzilla Id:
      4009

      Description

      Created foreign source with one detector:
      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <foreign-source date-stamp="2010-08-03T11:22:58.327-07:00" name="GWCluster" xmlns="http://xmlns.opennms.org/xsd/config/foreign-source">
      <scan-interval>1d</scan-interval>
      <detectors>
      <detector class="org.opennms.netmgt.provision.detector.snmp.Win32ServiceDetector" name="PSDPOPPO POA">
      <parameter value="PSDPOPPO POA" key="serviceName"/>
      </detector>
      </detectors>
      <policies/>
      </foreign-source>

      But receive error when provisiond imports

      2010-08-03 11:04:29,238 DEBUG [scanExecutor-8] DefaultPluginRegistry: Found bean org.opennms.netmgt.provision.detector.snmp.Win32ServiceDetector@11ab1a7 with name org.opennms.netmgt.provision.detector.snmp.Win32ServiceDetector of type interface org.opennms.netmgt.provision.ServiceDetector
      2010-08-03 11:04:29,238 DEBUG [scanExecutor-8] IpInterfaceScan: detectServices for 478 : 10.1.1.2: found 1 detectors
      2010-08-03 11:04:29,239 INFO [scanExecutor-8] IpInterfaceScan$2: Attemping to detect service PSDPOPPO POA on address 10.1.1.2
      2010-08-03 11:04:29,239 DEBUG [scanExecutor-8] Snmp4JStrategy: get: OID: .1.3.6.1.4.1.77.1.2.3.1.3.7.83.101.114.118.105.99.101 for Agent:AgentConfig[Address: gwclrlc1.contoso.local/10.1.1.2, ProxyForAddress: null, Port: 161, Community: PSDSNMPRO, Timeout: 1800, Retries: 1, MaxVarsPerPdu: 10, MaxRepetitions: 2, Max request size: 65535, Version: v2c]
      2010-08-03 11:04:29,239 DEBUG [scanExecutor-8] Snmp4JStrategy: get: OID: [.1.3.6.1.4.1.77.1.2.3.1.3.7.83.101.114.118.105.99.101] for Agent:AgentConfig[Address: gwclrlc1.contoso.local/10.1.1.2, ProxyForAddress: null, Port: 161, Community: PSDSNMPRO, Timeout: 1800, Retries: 1, MaxVarsPerPdu: 10, MaxRepetitions: 2, Max request size: 65535, Version: v2c]
      2010-08-03 11:04:29,256 INFO [scanExecutor-8] Snmp4JStrategy: send: Null value returned in varbind: 1.3.6.1.4.1.77.1.2.3.1.3.7.83.101.114.118.105.99.101 = Null
      2010-08-03 11:04:29,256 INFO [scanExecutor-8] IpInterfaceScan$1: Attempted to detect service PSDPOPPO POA on address 10.1.1.2: false

      The OID specified ( 1.3.6.1.4.1.77.1.2.3.1.3.7.83.101.114.118.105.99.101) = Length + "Service", which matches the default constructor in Win32ServiceDetector.java

      private static final String SV_SVC_OPERATING_STATE_OID = ".1.3.6.1.4.1.77.1.2.3.1.3";
      private static final String DEFAULT_SERVICE_NAME = "Service";

      public Win32ServiceDetector()

      { setServiceName(DEFAULT_SERVICE_NAME); setOid(generateOid()); setVbvalue("1"); }

      Changing the service name does not change the output in provisiond.log

      Fresh installation using
      Server 2008 R2 (x64)
      jdk1.6.0_16
      standalone-opennms-installer-1.8.0-2.jar
      PostgreSQL 8.4.4, compiled by Visual C++ build 1400, 32-bit

      Here is the import:
      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
      <model-import last-import="2010-08-03T11:22:59.593-07:00" foreign-source="GWCluster" date-stamp="2010-08-03T11:22:59.406-07:00" xmlns="http://xmlns.opennms.org/xsd/config/model-import">
      <node node-label="gwcl.contoso.local" foreign-id="1280851036096" building="GWCluster">
      <interface status="1" snmp-primary="P" ip-addr="10.1.1.2" descr=""/>
      </node>
      </model-import>

      SNMP is configured on the device with proper community names

        Attachments

          Activity

            People

            • Assignee:
              agalue Alejandro Galue
              Reporter:
              gallwapa@gmail.com Preston Gallwas
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: