mirror of
https://github.com/omni-lchen/zabbix-ssl
synced 2024-11-14 14:39:05 +01:00
190 lines
8.9 KiB
XML
190 lines
8.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<zabbix_export>
|
|
<version>3.2</version>
|
|
<date>2017-05-03T14:19:38Z</date>
|
|
<groups>
|
|
<group>
|
|
<name>Templates</name>
|
|
</group>
|
|
</groups>
|
|
<templates>
|
|
<template>
|
|
<template>SSL_Certificates</template>
|
|
<name>SSL_Certificates</name>
|
|
<description>Check ssl certificate expire date</description>
|
|
<groups>
|
|
<group>
|
|
<name>Templates</name>
|
|
</group>
|
|
</groups>
|
|
<applications>
|
|
<application>
|
|
<name>SSL Certificate</name>
|
|
</application>
|
|
</applications>
|
|
<items/>
|
|
<discovery_rules>
|
|
<discovery_rule>
|
|
<name>Domain discovery</name>
|
|
<type>10</type>
|
|
<snmp_community/>
|
|
<snmp_oid/>
|
|
<key>sslDomainsDiscovery.sh[{$DOMAIN_GROUP}]</key>
|
|
<delay>3600</delay>
|
|
<status>0</status>
|
|
<allowed_hosts/>
|
|
<snmpv3_contextname/>
|
|
<snmpv3_securityname/>
|
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
|
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
|
<snmpv3_authpassphrase/>
|
|
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
|
<snmpv3_privpassphrase/>
|
|
<delay_flex/>
|
|
<params/>
|
|
<ipmi_sensor/>
|
|
<authtype>0</authtype>
|
|
<username/>
|
|
<password/>
|
|
<publickey/>
|
|
<privatekey/>
|
|
<port/>
|
|
<filter>
|
|
<evaltype>0</evaltype>
|
|
<formula/>
|
|
<conditions/>
|
|
</filter>
|
|
<lifetime>1</lifetime>
|
|
<description/>
|
|
<item_prototypes>
|
|
<item_prototype>
|
|
<name>SSLCert::$1::expiry date</name>
|
|
<type>2</type>
|
|
<snmp_community/>
|
|
<multiplier>0</multiplier>
|
|
<snmp_oid/>
|
|
<key>ssl.cert.expirydate[{#DOMAIN}]</key>
|
|
<delay>0</delay>
|
|
<history>28</history>
|
|
<trends>365</trends>
|
|
<status>0</status>
|
|
<value_type>3</value_type>
|
|
<allowed_hosts/>
|
|
<units>unixtime</units>
|
|
<delta>0</delta>
|
|
<snmpv3_contextname/>
|
|
<snmpv3_securityname/>
|
|
<snmpv3_securitylevel>0</snmpv3_securitylevel>
|
|
<snmpv3_authprotocol>0</snmpv3_authprotocol>
|
|
<snmpv3_authpassphrase/>
|
|
<snmpv3_privprotocol>0</snmpv3_privprotocol>
|
|
<snmpv3_privpassphrase/>
|
|
<formula>1</formula>
|
|
<delay_flex/>
|
|
<params/>
|
|
<ipmi_sensor/>
|
|
<data_type>0</data_type>
|
|
<authtype>0</authtype>
|
|
<username/>
|
|
<password/>
|
|
<publickey/>
|
|
<privatekey/>
|
|
<port/>
|
|
<description>Check expiry date of SSL certificate for a domain.</description>
|
|
<inventory_link>0</inventory_link>
|
|
<applications>
|
|
<application>
|
|
<name>SSL Certificate</name>
|
|
</application>
|
|
</applications>
|
|
<valuemap/>
|
|
<logtimefmt/>
|
|
<application_prototypes/>
|
|
</item_prototype>
|
|
</item_prototypes>
|
|
<trigger_prototypes>
|
|
<trigger_prototype>
|
|
<expression>{SSL_Certificates:ssl.cert.expirydate[{#DOMAIN}].count(#3,0)} = 3</expression>
|
|
<recovery_mode>1</recovery_mode>
|
|
<recovery_expression>{SSL_Certificates:ssl.cert.expirydate[{#DOMAIN}].min(#3)} > 0</recovery_expression>
|
|
<name>Retrieve SSL certificate info from {#DOMAIN} failing</name>
|
|
<correlation_mode>0</correlation_mode>
|
|
<correlation_tag/>
|
|
<url/>
|
|
<status>0</status>
|
|
<priority>2</priority>
|
|
<description/>
|
|
<type>0</type>
|
|
<manual_close>0</manual_close>
|
|
<dependencies/>
|
|
<tags/>
|
|
</trigger_prototype>
|
|
<trigger_prototype>
|
|
<expression>{SSL_Certificates:ssl.cert.expirydate[{#DOMAIN}].max(#3)} > 0 and
|
|
{SSL_Certificates:ssl.cert.expirydate[{#DOMAIN}].max(#3)} - {SSL_Certificates:ssl.cert.expirydate[{#DOMAIN}].now()} < 0d</expression>
|
|
<recovery_mode>0</recovery_mode>
|
|
<recovery_expression/>
|
|
<name>SSL certificate of {#DOMAIN} has expired on {ITEM.LASTVALUE}</name>
|
|
<correlation_mode>0</correlation_mode>
|
|
<correlation_tag/>
|
|
<url/>
|
|
<status>0</status>
|
|
<priority>3</priority>
|
|
<description/>
|
|
<type>0</type>
|
|
<manual_close>0</manual_close>
|
|
<dependencies/>
|
|
<tags/>
|
|
</trigger_prototype>
|
|
<trigger_prototype>
|
|
<expression>{SSL_Certificates:ssl.cert.expirydate[{#DOMAIN}].max(#3)} - {SSL_Certificates:ssl.cert.expirydate[{#DOMAIN}].now()} > 0d and
|
|
{SSL_Certificates:ssl.cert.expirydate[{#DOMAIN}].max(#3)} - {SSL_Certificates:ssl.cert.expirydate[{#DOMAIN}].now()} < 7d</expression>
|
|
<recovery_mode>0</recovery_mode>
|
|
<recovery_expression/>
|
|
<name>SSL certificate of {#DOMAIN} is due to expire on {ITEM.LASTVALUE}</name>
|
|
<correlation_mode>0</correlation_mode>
|
|
<correlation_tag/>
|
|
<url/>
|
|
<status>0</status>
|
|
<priority>3</priority>
|
|
<description/>
|
|
<type>0</type>
|
|
<manual_close>0</manual_close>
|
|
<dependencies/>
|
|
<tags/>
|
|
</trigger_prototype>
|
|
<trigger_prototype>
|
|
<expression>{SSL_Certificates:ssl.cert.expirydate[{#DOMAIN}].max(#3)} - {SSL_Certificates:ssl.cert.expirydate[{#DOMAIN}].now()} > 7d and
|
|
{SSL_Certificates:ssl.cert.expirydate[{#DOMAIN}].max(#3)} - {SSL_Certificates:ssl.cert.expirydate[{#DOMAIN}].now()} < 31d</expression>
|
|
<recovery_mode>0</recovery_mode>
|
|
<recovery_expression/>
|
|
<name>SSL certificate of {#DOMAIN} is due to expire on {ITEM.LASTVALUE}</name>
|
|
<correlation_mode>0</correlation_mode>
|
|
<correlation_tag/>
|
|
<url/>
|
|
<status>0</status>
|
|
<priority>2</priority>
|
|
<description/>
|
|
<type>0</type>
|
|
<manual_close>0</manual_close>
|
|
<dependencies/>
|
|
<tags/>
|
|
</trigger_prototype>
|
|
</trigger_prototypes>
|
|
<graph_prototypes/>
|
|
<host_prototypes/>
|
|
</discovery_rule>
|
|
</discovery_rules>
|
|
<httptests/>
|
|
<macros>
|
|
<macro>
|
|
<macro>{$DOMAIN_GROUP}</macro>
|
|
<value>NOTSET</value>
|
|
</macro>
|
|
</macros>
|
|
<templates/>
|
|
<screens/>
|
|
</template>
|
|
</templates>
|
|
</zabbix_export>
|