https://bugs.contribs.org/show_bug.cgi?id=10802

            Bug ID: 10802
           Summary: check cert
    Classification: Contribs
           Product: SME Contribs
           Version: 9.2
          Hardware: ---
                OS: ---
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: smeserver-zabbix-server
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
  Target Milestone: ---

Created attachment 6204
  --> https://bugs.contribs.org/attachment.cgi?id=6204&action=edit
check_cert.pl

would be great to be able to monitor lets encrypt cert:

add the script in 
cd /var/lib/zabbix/bin/check_cert.pl
make it executable and accesible by user zabbix


yum install perl-DateTime-Format-ISO8601 --enablerepo=epel -y


add an item to All templates/Template_OS_SME
check certificate
external check
check_cert.pl["--url=","{HOST.CONN}"]
Update interval 10m
Trend storage period 1095d

preprocessing
regex capture  "days_left" : ([0-9]+), 
output \1
custom on fail set value 0

add trigger:

certificate days left
high
{Template_OS_iPasserelle:check_cert.pl["--url=","https://{HOST.CONN}"].last()}<15

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to