See for the official Zabbix site.

Docs/howto/ssl certificate check

Jump to: navigation, search

This is originally based on with modifications to the script and template by

Switches have been added to the script to check both days until expiration and the certificate issuing authority.

File:Zext ssl

usage: [-i|-d] hostname port sni"
       -i Show Issuer"
       -d Show valid days remaining"

The exported template below includes triggers for 90, 60, 30, 15, 7 days, and Expired certificate. Macros are defined in the template for SSL_PORT and SNI. There is also basic HTTPS down check and trigger. There are no triggers for the issuer check.

The basic HTTPS check fires every 90 seconds. Issuer and validity check every 6 hours (21600 seconds).

File:Zbx export templates.xml

You can also find an alternative in Python here:

 - Configure ExternalScripts variable in zabbix_server.conf,
 - Drop the script in the "external script" folder (usually /etc/zabbix/externalscripts/)
 - Import the template & assign it to your host.
 - Watch the incoming data !

The script can also be used outside Zabbix:

usage: [-h] [-p PORT] host

positional arguments:
  host                  specify an host to connect to

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  specify a port to connect to


# ./