NPE in Start() -- making RHQ-1182 untestable for the moment. Probably triggered by the latest SNMP-session closing code.
After the initial NPE has been eliminated: Apache.Apache HTTP Server: Process scan detected a server - scan=[ProcessScan: query=[process|basename|match=httpd,process|basename|nomatch|parent=httpd], name=[HttpdOnUnix]], process=[process: pid=[3287], name=[httpd], ppid=[1]] An error occurred running the discovery. Cause: java.lang.reflect.UndeclaredThrowableException:null -> org.rhq.plugins.www.snmp.SNMPException:java.lang.IllegalStateException: Timer already cancelled. (while invoking: ping()) > This comes from the fact that closing the session does not clean up the SessionCache map, which in turn returns an outdated Proxy object.
How to test: - plugin should not throw errors in inventory when configuring plugin config - 'discovery' command on agent command line should not abort (due to this plugin) - 'Time to ping metric' (see RHQ-1182) should show values after the plugin is correctly configured.
Tested all the test steps specified above. RHEL5.3, x86_64, PostgreSQL8.2.4, java 1.6.0_11, httpd 2.2.3, JON RHQ SVN rev# 3238
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1594