[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opennms-buglist
Subject:    [Buglist] [JIRA] Commented: (NMS-4047) Win32ServiceDetector fails to detect services
From:       jira () opennms ! org (Jeff Gehlbach (JIRA))
Date:       2011-01-25 0:54:50
Message-ID: 1306427473.1483.1295916890548.JavaMail.jira () mail1 ! opennms ! com
[Download RAW message or body]


    [ http://issues.opennms.org/browse/NMS-4047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=23096#comment-23096 \
] 

Jeff Gehlbach commented on NMS-4047:
------------------------------------

Confirmed against Windows 2003R2, this detector works only to detect a Windows \
service whose display name is "Service" (which would be a pretty silly service \
indeed).  There does exist a unit test for this detector, but it's rigged so that the \
objects available from the MockSnmpAgent simulate the presence of a "Service" \
service.

If I understand correctly how these detectors are meant to work, we should be \
grabbing the value of the "serviceName" parameter.  This is different from \
getServiceName() from AbstractDetector.  The value for that parameter should be \
something like "Task Scheduler" or "Logical Disk Manager".  Then I think we'll be \
doing the right thing.

> Win32ServiceDetector fails to detect services
> ---------------------------------------------
> 
> Key: NMS-4047
> URL: http://issues.opennms.org/browse/NMS-4047
> Project: OpenNMS
> Issue Type: Bug
> Components: Provisioning/Discovery/Capsd/Provisiond
> Affects Versions: 1.8.1
> Environment: Operating System: Windows Vista / 2008
> Platform: PC
> Reporter: Preston Gallwas
> Assignee: OpenNMS Bug Mailing List
> Fix For: Future 1.8
> 
> 
> 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 at 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

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic