chore: Inital Code commit
This commit is contained in:
267
template_mailcert_check.xml
Normal file
267
template_mailcert_check.xml
Normal file
@@ -0,0 +1,267 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<zabbix_export>
|
||||
<version>6.4</version>
|
||||
<template_groups>
|
||||
<template_group>
|
||||
<uuid>a571c0d144b14fd4a87a9d9b2aa9fcd6</uuid>
|
||||
<name>Templates/Applications</name>
|
||||
</template_group>
|
||||
</template_groups>
|
||||
<templates>
|
||||
<template>
|
||||
<uuid>c2b74f8e940244aea1c469c8a63e3a3a</uuid>
|
||||
<template>Template Mail Certificate Monitoring</template>
|
||||
<name>Template Mail Certificate Monitoring</name>
|
||||
<groups>
|
||||
<group>
|
||||
<name>Templates/Applications</name>
|
||||
</group>
|
||||
</groups>
|
||||
<items>
|
||||
<item>
|
||||
<uuid>161cd7c9ab6f4a15bd740ca33ab32c10</uuid>
|
||||
<name>TLS: Days until WEB certificate expires</name>
|
||||
<key>mailcert_check_expire[{$TLS_WEB_DOMAIN},{$TLS_WEB_PORT}/{$TLS_WEB_STARTTLS},{$TLS_WEB_SNI},{$TLS_WEB_TIMEOUT}]</key>
|
||||
<delay>{$TLS_WEB_UPDATEINTERVAL}</delay>
|
||||
<history>7d</history>
|
||||
<trends>14d</trends>
|
||||
<units>d</units>
|
||||
<tags>
|
||||
<tag>
|
||||
<tag>Application</tag>
|
||||
<value>Mail Certificates</value>
|
||||
</tag>
|
||||
</tags>
|
||||
<triggers>
|
||||
<trigger>
|
||||
<uuid>dd76bdafc530428a99443a4e6211af38</uuid>
|
||||
<expression>last(/Template Mail Certificate Monitoring/mailcert_check_expire[{$TLS_WEB_DOMAIN},{$TLS_WEB_PORT}/{$TLS_WEB_STARTTLS},{$TLS_WEB_SNI},{$TLS_WEB_TIMEOUT}])<{$TLS_WEB_EXPIRESWITHIN}</expression>
|
||||
<name>WEB Certificate for {HOST.NAME} expires soon ({ITEM.VALUE} days left)</name>
|
||||
<priority>AVERAGE</priority>
|
||||
</trigger>
|
||||
</triggers>
|
||||
</item>
|
||||
<item>
|
||||
<uuid>9e32e8f9af2740ea89437634e443c26e</uuid>
|
||||
<name>TLS: WEB Certificate validity</name>
|
||||
<key>mailcert_check_valid[{$TLS_WEB_DOMAIN},{$TLS_WEB_PORT}/{$TLS_WEB_STARTTLS},{$TLS_WEB_SNI},{$TLS_WEB_TIMEOUT}]</key>
|
||||
<delay>{$TLS_WEB_UPDATEINTERVAL}</delay>
|
||||
<history>7d</history>
|
||||
<trends>14d</trends>
|
||||
<tags>
|
||||
<tag>
|
||||
<tag>Application</tag>
|
||||
<value>Mail Certificates</value>
|
||||
</tag>
|
||||
</tags>
|
||||
<triggers>
|
||||
<trigger>
|
||||
<uuid>81cd1ee8eda946ebb216e90c1bffbcd1</uuid>
|
||||
<expression>last(/Template Mail Certificate Monitoring/mailcert_check_valid[{$TLS_WEB_DOMAIN},{$TLS_WEB_PORT}/{$TLS_WEB_STARTTLS},{$TLS_WEB_SNI},{$TLS_WEB_TIMEOUT}])<>1</expression>
|
||||
<name>SSL certificate invalid</name>
|
||||
<priority>DISASTER</priority>
|
||||
</trigger>
|
||||
</triggers>
|
||||
</item>
|
||||
<item>
|
||||
<uuid>f2ab69c1fbb2436ca59b90cfe0efdd9b</uuid>
|
||||
<name>TLS: Days until SMTP certificate expires</name>
|
||||
<key>mailcert_check_expire[{$TLS_SMTP_DOMAIN},{$TLS_SMTP_PORT}/{$TLS_SMTP_STARTTLS},{$TLS_SMTP_SNI},{$TLS_SMTP_TIMEOUT}]</key>
|
||||
<delay>{$TLS_SMTP_UPDATEINTERVAL}</delay>
|
||||
<history>7d</history>
|
||||
<trends>14d</trends>
|
||||
<units>d</units>
|
||||
<tags>
|
||||
<tag>
|
||||
<tag>Application</tag>
|
||||
<value>Mail Certificates</value>
|
||||
</tag>
|
||||
</tags>
|
||||
<triggers>
|
||||
<trigger>
|
||||
<uuid>3baec6e0f5a04a43b3cc9a0729a97106</uuid>
|
||||
<expression>last(/Template Mail Certificate Monitoring/mailcert_check_expire[{$TLS_SMTP_DOMAIN},{$TLS_SMTP_PORT}/{$TLS_SMTP_STARTTLS},{$TLS_SMTP_SNI},{$TLS_SMTP_TIMEOUT}])<{$TLS_SMTP_EXPIRESWITHIN}</expression>
|
||||
<name>SMTP Certificate for {HOST.NAME} expires soon ({ITEM.VALUE} days left)</name>
|
||||
<priority>AVERAGE</priority>
|
||||
</trigger>
|
||||
</triggers>
|
||||
</item>
|
||||
<item>
|
||||
<uuid>22b9d1c4f7bb4418be3adbdac6c3ecef</uuid>
|
||||
<name>TLS: SMTP Certificate validity</name>
|
||||
<key>mailcert_check_valid[{$TLS_SMTP_DOMAIN},{$TLS_SMTP_PORT}/{$TLS_SMTP_STARTTLS},{$TLS_SMTP_SNI},{$TLS_SMTP_TIMEOUT}]</key>
|
||||
<delay>{$TLS_SMTP_UPDATEINTERVAL}</delay>
|
||||
<history>7d</history>
|
||||
<trends>14d</trends>
|
||||
<tags>
|
||||
<tag>
|
||||
<tag>Application</tag>
|
||||
<value>Mail Certificates</value>
|
||||
</tag>
|
||||
</tags>
|
||||
<triggers>
|
||||
<trigger>
|
||||
<uuid>18d377fe3b1c481f974fba1c18231804</uuid>
|
||||
<expression>last(/Template Mail Certificate Monitoring/mailcert_check_valid[{$TLS_SMTP_DOMAIN},{$TLS_SMTP_PORT}/{$TLS_SMTP_STARTTLS},{$TLS_SMTP_SNI},{$TLS_SMTP_TIMEOUT}])<>1</expression>
|
||||
<name>SSL certificate invalid</name>
|
||||
<priority>DISASTER</priority>
|
||||
</trigger>
|
||||
</triggers>
|
||||
</item>
|
||||
<item>
|
||||
<uuid>e39f1312f1ab4287afb41694f3504c76</uuid>
|
||||
<name>TLS: Days until IMAP certificate expires</name>
|
||||
<key>mailcert_check_expire[{$TLS_IMAP_DOMAIN},{$TLS_IMAP_PORT}/{$TLS_IMAP_STARTTLS},{$TLS_IMAP_SNI},{$TLS_IMAP_TIMEOUT}]</key>
|
||||
<delay>{$TLS_IMAP_UPDATEINTERVAL}</delay>
|
||||
<history>7d</history>
|
||||
<trends>14d</trends>
|
||||
<units>d</units>
|
||||
<tags>
|
||||
<tag>
|
||||
<tag>Application</tag>
|
||||
<value>Mail Certificates</value>
|
||||
</tag>
|
||||
</tags>
|
||||
<triggers>
|
||||
<trigger>
|
||||
<uuid>57517245a0c742559e36655cd85dd66d</uuid>
|
||||
<expression>last(/Template Mail Certificate Monitoring/mailcert_check_expire[{$TLS_IMAP_DOMAIN},{$TLS_IMAP_PORT}/{$TLS_IMAP_STARTTLS},{$TLS_IMAP_SNI},{$TLS_IMAP_TIMEOUT}])<{$TLS_IMAP_EXPIRESWITHIN}</expression>
|
||||
<name>IMAP Certificate for {HOST.NAME} expires soon ({ITEM.VALUE} days left)</name>
|
||||
<priority>AVERAGE</priority>
|
||||
</trigger>
|
||||
</triggers>
|
||||
</item>
|
||||
<item>
|
||||
<uuid>78026be8b8ec4e009063c129c92493a1</uuid>
|
||||
<name>TLS: IMAP Certificate validity</name>
|
||||
<key>mailcert_check_valid[{$TLS_IMAP_DOMAIN},{$TLS_IMAP_PORT}/{$TLS_IMAP_STARTTLS},{$TLS_IMAP_SNI},{$TLS_IMAP_TIMEOUT}]</key>
|
||||
<delay>{$TLS_IMAP_UPDATEINTERVAL}</delay>
|
||||
<history>7d</history>
|
||||
<trends>14d</trends>
|
||||
<tags>
|
||||
<tag>
|
||||
<tag>Application</tag>
|
||||
<value>Mail Certificates</value>
|
||||
</tag>
|
||||
</tags>
|
||||
<triggers>
|
||||
<trigger>
|
||||
<uuid>1f94230b59824b5f83277204b2acb484</uuid>
|
||||
<expression>last(/Template Mail Certificate Monitoring/mailcert_check_valid[{$TLS_IMAP_DOMAIN},{$TLS_IMAP_PORT}/{$TLS_IMAP_STARTTLS},{$TLS_IMAP_SNI},{$TLS_IMAP_TIMEOUT}])<>1</expression>
|
||||
<name>SSL certificate invalid</name>
|
||||
<priority>DISASTER</priority>
|
||||
</trigger>
|
||||
</triggers>
|
||||
</item>
|
||||
</items>
|
||||
<macros>
|
||||
<macro>
|
||||
<macro>{$TLS_WEB_EXPIRESWITHIN}</macro>
|
||||
<value>14</value>
|
||||
<description>Number of days before the expiration of the certificate.</description>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$TLS_WEB_DOMAIN}</macro>
|
||||
<value></value>
|
||||
<description>WEB Domainname or IP to check</description>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$TLS_WEB_SNI}</macro>
|
||||
<value></value>
|
||||
<description>SNI value</description>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$TLS_WEB_PORT}</macro>
|
||||
<value>443</value>
|
||||
<description>Target port (usually 443)</description>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$TLS_WEB_STARTTLS}</macro>
|
||||
<value>tls</value>
|
||||
<description>SSL Options (usually tls)</description>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$TLS_WEB_TIMEOUT}</macro>
|
||||
<value>10</value>
|
||||
<description>Timeout in seconds</description>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$TLS_WEB_UPDATEINTERVAL}</macro>
|
||||
<value>3600</value>
|
||||
<description>How often to update certificate information in seconds</description>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$TLS_SMTP_EXPIRESWITHIN}</macro>
|
||||
<value>14</value>
|
||||
<description>Number of days before the expiration of the certificate.</description>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$TLS_SMTP_DOMAIN}</macro>
|
||||
<value></value>
|
||||
<description>SMTP Domainname or IP to check</description>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$TLS_SMTP_SNI}</macro>
|
||||
<value></value>
|
||||
<description>SNI value</description>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$TLS_SMTP_PORT}</macro>
|
||||
<value>587</value>
|
||||
<description>Target port (usually 587)</description>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$TLS_SMTP_STARTTLS}</macro>
|
||||
<value>smtp</value>
|
||||
<description>SSL Options (usually smtp)</description>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$TLS_SMTP_TIMEOUT}</macro>
|
||||
<value>10</value>
|
||||
<description>Timeout in seconds</description>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$TLS_SMTP_UPDATEINTERVAL}</macro>
|
||||
<value>3600</value>
|
||||
<description>How often to update certificate information in seconds</description>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$TLS_IMAP_EXPIRESWITHIN}</macro>
|
||||
<value>14</value>
|
||||
<description>Number of days before the expiration of the certificate.</description>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$TLS_IMAP_DOMAIN}</macro>
|
||||
<value></value>
|
||||
<description>IMAP Domainname or IP to check</description>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$TLS_IMAP_SNI}</macro>
|
||||
<value></value>
|
||||
<description>SNI value</description>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$TLS_IMAP_PORT}</macro>
|
||||
<value>993</value>
|
||||
<description>Target port (usually 993)</description>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$TLS_IMAP_STARTTLS}</macro>
|
||||
<value>tls</value>
|
||||
<description>SSL Options (usually tls)</description>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$TLS_IMAP_TIMEOUT}</macro>
|
||||
<value>10</value>
|
||||
<description>Timeout in seconds</description>
|
||||
</macro>
|
||||
<macro>
|
||||
<macro>{$TLS_IMAP_UPDATEINTERVAL}</macro>
|
||||
<value>3600</value>
|
||||
<description>How often to update certificate information in seconds</description>
|
||||
</macro>
|
||||
</macros>
|
||||
</template>
|
||||
</templates>
|
||||
</zabbix_export>
|
||||
|
||||
Reference in New Issue
Block a user