Ad Widget

Collapse

Template - Website certificate by Zabbix agent 2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • grefabu
    Member
    • Jul 2019
    • 33

    #1

    Template - Website certificate by Zabbix agent 2

    Hi,

    I've the problem, that the trigger Cert: SSL certificate expires soon show me an problem that the certificate will expire soon.

    What I've done:

    I create a dummy host fqnd.domain.tld
    As agent I use localhost, so I think the local zabbix server is used for.
    For {$CERT.WEBSITE.HOSTNAME} I used the specified fqnd.domain.tld

    As Item cert.validation I got valid so I think it is OK
    When I test the certificate with openssl s_client -connect fqnd.domain.tld:443 all is OK, in the Browser too.

    For cert.not_after I got: 2025-02-05 12:59:59 AM

    But the Trigger (last(/tnaadmin.meddv.de/cert.not_after) - now()) / 1209600 < {$CERT.EXPIRY.WARN} go to warning.
    I let the {$CERT.EXPIRY.WARN} at 7

    What's wrong?

    Thank you for help!

    Gregor
  • grefabu
    Member
    • Jul 2019
    • 33

    #2
    I think I found the mistacke myself:

    (last(/tnaadmin.meddv.de/cert.not_after) - now()) / 1209600 < {$CERT.EXPIRY.WARN}

    1209600 ​is wrong, it should be 86400. But I think I didn't change it from original,...
    Strange.

    Bye

    Gregor

    Comment

    Working...