Skip to content

Zabbix bash script + template for SSL check with Webcheck scenario

Notifications You must be signed in to change notification settings

nuheluxulu/ssl-cert-checker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

zabbix-ssl-cert-statistic

A shell script to grab statistic of SSL Certificates

How to Use:

  1. Place script wherever in accessible directory for Zabbix user(i.e. '/etc/zabbix/scripts') on the local Zabbix server with working zabbix agent

  2. NOTE -> Ensure that interface for monitored host set to zabbix agent on the localhost(127.0.0.1:10050). Port could be different depending on your configuration.

  3. Grant access for Zabbix user to script directory and script itself

    chown root:zabbix /etc/zabbix/scripts

    chmod 550 -R /etc/zqbbix/scripts

  4. Add UserParameter in zabbix_agent.conf (you can place it as well after "UnsafeUserParameters")

    UserParameter=ssl-check[*],/etc/zabbix/scripts/ssl_cert_check.sh $1 $2 $3

  5. Restart the Zabbix agent (according to your installation)

    systemctl restart zabbix-agent

  6. Import template-ssl-cert-check.xml

  7. Fill the inherited macros field {$WEBHOST} in attached template to the host and change {$PORT} if necessary (by default scripts uses 443 port)

  8. Enjoy!

About

Zabbix bash script + template for SSL check with Webcheck scenario

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%