Details
-
Type:
Enhancement
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.8.3
-
Fix Version/s: 1.11.91
-
Component/s: Provisioning/Discovery/Capsd/Provisiond
-
Security Level: Default (Default Security Scheme)
-
Labels:
-
Environment:Operating System: All
Platform: All
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.
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.
Created an attachment (id=1085)
Capsd plugin for SSL Certification