OpenNMS ignoring service/protocol definitions
"Sommerville, Malcolm" <[email protected]>
| Newsgroups | gmane.network.opennms.install |
|---|---|
| Message-ID | <CB7E9C35.7B15%[email protected]> |
Hi all, I'm setting up OpenNMS (1.10.0 on debian squeeze) to monitor some systems via SSH. I have the agent stuff all setup and working and have added two tests to capsd-configuration.xml and poller-configuration.xml. My problem is this – the first test (SSH-CHECK_BOXES) doesn't work – it doesn't appear to be being discovered on the server; but the second one (SSH-CHECK_HTTP) does. The SSH-CHECK_BOXES test behaves exactly as expected if I run it from the command line. Here are the file excerpts. From cpasd-configuration.xml: <protocol-plugin protocol="SSH-CHECK_BOXES" class-name="org.opennms.netmgt.capsd.plugins.GpPlugin" scan = "on"> <property key="script" value="/usr/local/bin/opennms_ssh_wrapper /usr/local/nagios/libexec/check_boxes 0" /> <property key="timeout" value="3000" /> <property key="retry" value="1" /> <property key="banner" value="OK" /> </protocol-plugin> <protocol-plugin protocol="SSH-CHECK_HTTP" class-name="org.opennms.netmgt.capsd.plugins.GpPlugin" scan = "on"> <property key="script" value="/usr/local/bin/opennms_ssh_wrapper /usr/lib/nagios/plugins/check_http 2 -H localhost"/> <property key="banner" value="HTTP OK" /> <property key="timeout" value="3000" /> <property key="retry" value="1" /> </protocol-plugin> And from poller-configuration.xml: <service name="SSH-CHECK_BOXES" interval="300000" user-defined="false" status = "on"> <parameter key="retry" value="2"/> <parameter key="timeout" value="5000"/> <parameter key="banner" value="OK" /> <parameter key="script" value="/usr/local/bin/opennms_ssh_wrapper /usr/local/nagios/libexec/check_boxes 0"/> </service> <service name="SSH-CHECK_HTTP" interval="300000" user-defined="false" status = "on"> <parameter key="retry" value="2"/> <parameter key="timeout" value="5000"/> <parameter key="banner" value="HTTP OK"/> <parameter key="script" value="/usr/local/bin/opennms_ssh_wrapper /usr/lib/nagios/plugins/check_http 2 -H localhost"/> </service> And for the monitors: <monitor service="SSH-CHECK_BOXES" class-name="org.opennms.netmgt.poller.monitors.GpMonitor" /> <monitor service="SSH-CHECK_HTTP" class-name="org.opennms.netmgt.poller.monitors.GpMonitor" /> Any ideas or help you can give, even if it's a steer to the correct documentation would be greatly appreciated. Thanks, Malcolm ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-install mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-install