This plugin checks the TLS/SSL certificates expiration date of URLs entered using the GUI and creates a problem if the certificate expiration days meet the threshold. Also, ingest the metric of the days remaining to be able to create custom charts and custom alerts if it's required.
This plugin requires the following:
- Dynatrace Environment ActiveGate v1.199.101 or newer.
- Sudo access to Dynatrace Environment ActiveGate Server.
- Access to settings in Dynatrace Tenant.
ActiveGate Plugins need to get installed on the Environment ActiveGate Server that will execute it and in the Dynatrace Tenant using the UI.
Upload the plugin's zip file to your Dynatrace tenant using the following path: Settings --> Monitoring --> Monitored technologies --> Custom extensions --> Upload extension
The Dynatrace tenant will check the plugin's zip content (it must contain the JSON and python files).
- Copy the plugin's zip file in the Environment ActiveGate Server.
- Unzip the plugin's zip file in /opt/dynatrace/remotepluginmodule/plugin_deployment/ directory.
- Restart the remote plugin service using service remotepluginmodule restart
To start the plugin configuration go to Settings --> Monitoring --> Monitored technologies --> Custom extensions and click in the plugin
- Click in Add new endpoint to configure a endpoint.
- Complete the property fields:
- Endpoint name: The name of the endpoint.
- Frecuency: How often a certificate should be checked in minutes.
- Problem Alert Threshold: Threshold to raise a Problem before expiration in Days.
- Hosts: Comma seperated list of the Hosts certificates to monitor eg. www.dynatrace.com:443,www.google.com
- Choose ActiveGate: Windows or Linux Environment ActiveGate that the plugin is running on.
You can check the metrics sent by the plugin.
You can use this metrics to create Custom Charts and Custom Alerts if it's required.
Version history for the plugin.
Check the Remote plugin logs in : /var/lib/dynatrace/remotepluginmodule/log/remoteplugin.
Also you will find a folder with the name of your extension eg. custom.remote.python.ssl_cert_expiration_check, inside you will find the log with the name of your main class CertificatesCheckPlugin.log that contains all the info that you are logging from python.