Problem Detecting Outages of Custom HTTP Service Monitor
Stefan Warman <[email protected]>
| Newsgroups | gmane.network.opennms.install |
|---|---|
| Message-ID | <[email protected]> |
Hello, I'm having trouble getting a custom poller to log outages to the events list. I've set up a new service in capsd: <protocol-plugin protocol="MyCustomTest" class-name="org.opennms.netmgt.capsd.plugins.HttpPlugin" scan="on"> <property key="port" value="80" /> <property key="timeout" value="30000" /> <property key="retry" value="1" /> <property key="url" value="/testpage.php"/> </protocol-plugin> This appears to work fine. The service shows up in my node's service list. Once I'd done that I noticed it was set to "Not Monitored" so after some reading I realised I needed a poller service for the monitoring to work. As such I added the following to my poller-configuration: <service name="MyCustomTest" interval="300000" user-defined="false" status="on"> <parameter key="retry" value="1" /> <parameter key="timeout" value="30000" /> <parameter key="port" value="80" /> <parameter key="url" value="/testpage.php" /> <parameter key="response-text" value="~.*THE PAGE CONTENT.*"/> <parameter key="rrd-repository" value="/opt/opennms/share/rrd/response" /> <parameter key="rrd-base-name" value="switch-customtest" /> <parameter key="ds-name" value="switch-customtest" /> </service> Once I'd restarted opennms my service showed up as 100% available. So next I tried stopping the webserver on the node. This caused the default HTTP and HTTPS services to show up in the Recent Outage list but my custom service did nothing. I've been fiddling about with it for a long time and whatever I do I can't get the custom service to show as offline in the openNMS UI. Is there something obvious I'm missing here? If not how can I debug this issue? Thanks, Stefan ------------------------------------------------------------------------------ Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with <2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 _______________________________________________ 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