add a new capsd plugin and poller plugin to monitor the SSL Certification Expiration

Description

I created a capsd plugin and a poller plugin to monitor the SSL Certification Expiration.
Configuration example:
capsd-configuration.xml:

<protocol-plugin protocol="SSLCert" class-name="org.opennms.netmgt.capsd.plugins.SSLCertPlugin" scan="on">
<property key="port" value="443" />
<property key="timeout" value="5000" />
<property key="retry" value="1" />
</protocol-plugin>

The capsd plugin will check whether the node has a SSL Certification.

<service name="SSLCert" interval="300000"
user-defined="false" status="on">
<parameter key="retry" value="2"/>
<parameter key="timeout" value="3000"/>
<parameter key="port" value="443"/>
<parameter key="expired" value="15"/>
</service>

<monitor service="SSLCert" class-name="org.opennms.netmgt.poller.monitors.SSLCertMonitor"/>

This poller monitor has a parameter "expired". When the SSL certification will expire in the number of days of "expired" parameter. The service will be down.

Environment

Operating System: All Platform: All

Acceptance / Success Criteria

None

Attachments

3

Lucidchart Diagrams

Activity

Benjamin Reed April 2, 2013 at 11:30 AM

oh, and thanks for the updated patch

Benjamin Reed April 2, 2013 at 11:28 AM

I've already allowed too much churn in 1.11.90 trying to get it out, but I've gone ahead and merged this so it's available in the next beta/RC, 1.11.91.

Tim Miller Dyck March 30, 2013 at 1:34 AM

Ron, thank you for creating the feature from scratch! This would be great to include in the upcoming 1.12 release.

Ron Roskens December 29, 2012 at 2:09 PM

The patch file was created using 'git format-patch -M -C HEAD~1', so you could either:

cd $OPENNMS_SRC
git am < 0001-NMS-4142-Add-SSLCert-capsd-plugin-and-poller-monitor.patch

or

patch -p1 < 0001-NMS-4142-Add-SSLCert-capsd-plugin-and-poller-monitor.patch

then build like normal, using the instructions at http://www.opennms.org/wiki/Installation:Source

UxBoD December 27, 2012 at 8:34 AM

@Ron: how would one go about applying your implementation please ?

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

PagerDuty

Created September 15, 2010 at 4:04 AM
Updated January 27, 2017 at 4:25 PM
Resolved April 2, 2013 at 11:28 AM