From 94ca1f79e1404f9ac598d1c7af5291e38ce8e75d Mon Sep 17 00:00:00 2001 From: Tomas Hermanek Date: Wed, 10 Jul 2019 14:37:00 +0200 Subject: [PATCH] Update README.md --- README.md | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/README.md b/README.md index 2818528..d2e1e7f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,49 @@ # Zabbix-ssl-certificate-check-with-grade This is template and howto for SSL expiration check and grading SSL certificate deployment. + +## Install instruction ## + +All operations is needed in zabbix-server or proxy servers. + +**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 + +** Create dummy host and set template** +Dummy host with hostname is URL name for example https://www.google.com/ hostname is: www.google.com