Tomas Hermanek e1686f3898 Update README.md
2019-07-10 15:42:45 +02:00
2019-07-10 15:24:42 +02:00
2019-07-10 15:42:45 +02:00
2019-07-04 17:00:49 +02:00
2019-07-04 17:00:49 +02:00
2019-07-04 17:00:49 +02:00
2019-07-04 17:00:49 +02:00
2019-07-04 17:00:49 +02:00
2019-07-04 17:00:49 +02:00

Zabbix SSL Certificate template

This is template and howto for SSL expiration check and grading SSL certificate deployment.

Monitoring:

  1. Certificate issuer

  2. Certificate expiration

  3. Certificate installation grade with SSL Labs API.

Latest data alt SSL latest data

Items alt SSL items

Triggers alt SSL triggers

Macros alt SSL macros

Install instruction

All operations is needed to do at zabbix or proxy servers.

CentOS,RHEL

yum install zabbix-sender

Debian, Ubuntu

apt-get install zabbix-sender

Clone repository

cd /tmp
git clone git@github.com:hermanekt/Zabbix-ssl-certificate-check-with-grade.git

Copy scripts

cp /tmp/Zabbix-ssl-certificate-check-with-grade/ssllabs_checker.sh /usr/lib/zabbix/externalscripts
cp /tmp/Zabbix-ssl-certificate-check-with-grade/ssllabs_checker_at.sh /usr/lib/zabbix/externalscripts
cp /tmp/Zabbix-ssl-certificate-check-with-grade/zext_ssl_expiry.sh /usr/lib/zabbix/externalscripts
cp /tmp/Zabbix-ssl-certificate-check-with-grade/zext_ssl_issuer.sh /usr/lib/zabbix/externalscripts

Enable executing

chmod +x zext_ssl_*
chmod +x ssllabs_checker*

Install GO or copy my compiled package ssllabs-scan (version v1.35.1)

1) Copy

cp /tmp/Zabbix-ssl-certificate-check-with-grade/ssllabs-scan /usr/lib/zabbix/externalscripts
chmod +x /usr/lib/zabbix/externalscripts/ssllabs-scan

OR

1) Install golang CentOS,RHEL

yum install golang

Debian, Ubuntu

apt-get install golang

2) Compile sslabs-scan package

cd /tmp
git clone https://github.com/ssllabs/ssllabs-scan/
cd ssllabs-scan/
go build
mv /tmp/ssllabs-scan/ssllabs-scan /usr/lib/zabbix/externalscripts/
cd && rm -rf /tmp/ssllabs-scan/

Clean server

rm -rf /tmp/Zabbix-ssl-certificate-check-with-grade

Import template in zabbix frontend

File: Template_SSL_Certificates.xml

Create dummy host and set template

Dummy host with hostname is URL name for example https://www.google.com/ hostname is: www.google.com

Host connection: alt SSL Host Connection

Host template: alt SSL Host template

Description
This is template and howto for SSL expiration check and grading SSL certificate deployment.
Readme 6 MiB
Languages
Shell 100%