Transport Layer Security, the successor of the now-deprecated Secure Sockets Layer, is a cryptographic protocol designed to provide communications security over a computer network.

Available solutions

This template is for Zabbix version: 6.2
Also available for: 6.0 5.4 5.0


Website certificate by Zabbix agent 2


For Zabbix version: 6.2 and higher
The template to monitor TLS/SSL certificate on the website by Zabbix agent 2 that works without any external scripts. Zabbix agent 2 with the WebCertificate plugin requests certificate using the web.certificate.get key and returns JSON with certificate attributes.


See Zabbix template operation for basic instructions.

1. Setup and configure zabbix-agent2 with the WebCertificate plugin.

2. Test availability: zabbix_get -s <zabbix_agent_addr> -k web.certificate.get[<website_DNS_name>]

3. Create a host for the TLS/SSL certificate with Zabbix agent interface.

4. Link the template to the host.

5. Customize the value of {$CERT.WEBSITE.HOSTNAME} macro.

Zabbix configuration

No specific Zabbix configuration is required.

Macros used

Name Description Default

Number of days until the certificate expires.


The website DNS name for the connection.

<Put DNS name>

The website IP address for the connection.


The TLS/SSL port number of the website.


Template links

There are no template links in this template.

Discovery rules

Items collected

Group Name Description Type Key and additional info
General Cert: Validation result

The certificate validation result. Possible values: valid/invalid/valid-but-self-signed

DEPENDENT cert.validation


- JSONPATH: $.result.value

General Cert: Last validation status

Last check result message.

DEPENDENT cert.message


- JSONPATH: $.result.message

General Cert: Version

The version of the encoded certificate.

DEPENDENT cert.version


- JSONPATH: $.x509.version

General Cert: Serial number

The serial number is a positive integer assigned by the CA to each certificate. It is unique for each certificate issued by a given CA. Non-conforming CAs may issue certificates with serial numbers that are negative or zero.

DEPENDENT cert.serial_number


- JSONPATH: $.x509.serial_number

General Cert: Signature algorithm

The algorithm identifier for the algorithm used by the CA to sign the certificate.

DEPENDENT cert.signature_algorithm


- JSONPATH: $.x509.signature_algorithm

General Cert: Issuer

The field identifies the entity that has signed and issued the certificate.

DEPENDENT cert.issuer


- JSONPATH: $.x509.issuer

General Cert: Valid from

The date on which the certificate validity period begins.

DEPENDENT cert.not_before


- JSONPATH: $.x509.not_before.timestamp

General Cert: Expires on

The date on which the certificate validity period ends.

DEPENDENT cert.not_after


- JSONPATH: $.x509.not_after.timestamp

General Cert: Subject

The field identifies the entity associated with the public key stored in the subject public key field.

DEPENDENT cert.subject


- JSONPATH: $.x509.subject

General Cert: Subject alternative name

The subject alternative name extension allows identities to be bound to the subject of the certificate. These identities may be included in addition to or in place of the identity in the subject field of the certificate. Defined options include an Internet electronic mail address, a DNS name, an IP address, and a Uniform Resource Identifier (URI).

DEPENDENT cert.alternative_names


- JSONPATH: $.x509.alternative_names

General Cert: Public key algorithm

The digital signature algorithm is used to verify the signature of a certificate.

DEPENDENT cert.public_key_algorithm


- JSONPATH: $.x509.public_key_algorithm

General Cert: Fingerprint

The Certificate Signature (SHA1 Fingerprint or Thumbprint) is the hash of the entire certificate in DER form.

DEPENDENT cert.sha1_fingerprint


- JSONPATH: $.sha1_fingerprint

Zabbix raw items Cert: Get

Returns the JSON with attributes of a certificate of the requested site.





Name Description Expression Severity Dependencies and additional info
Cert: SSL certificate is invalid

SSL certificate has expired or it is issued for another domain.

find(/Website certificate by Zabbix agent 2/cert.validation,,"like","invalid")=1 HIGH
Cert: SSL certificate expires soon

The SSL certificate should be updated or it will become untrusted.

(last(/Website certificate by Zabbix agent 2/cert.not_after) - now()) / 86400 < {$CERT.EXPIRY.WARN} WARNING

Depends on:

- Cert: SSL certificate is invalid

Cert: Fingerprint has changed

The SSL certificate fingerprint has changed. If you did not update the certificate, it may mean your certificate has been hacked. Ack to close.

There could be multiple valid certificates on some installations. In this case, the trigger will have a false positive. You can ignore it or disable the trigger.

last(/Website certificate by Zabbix agent 2/cert.sha1_fingerprint) <> last(/Website certificate by Zabbix agent 2/cert.sha1_fingerprint,#2) INFO

Manual close: YES


Please report any issues with the template at

You can also provide feedback, discuss the template or ask for help with it at ZABBIX forums.

Articles and documentation

+ Propose new article

Didn't find integration you need?