Advertisement
Journeym

template

Jan 15th, 2020
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.19 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <zabbix_export>
  3.     <version>4.4</version>
  4.     <date>2020-01-15T09:22:37Z</date>
  5.     <groups>
  6.         <group>
  7.             <name>Templates</name>
  8.         </group>
  9.     </groups>
  10.     <templates>
  11.         <template>
  12.             <template>SSL Certificates Discovery And Monitoring</template>
  13.             <name>SSL Certificates Discovery And Monitoring</name>
  14.             <groups>
  15.                 <group>
  16.                     <name>Templates</name>
  17.                 </group>
  18.             </groups>
  19.             <applications>
  20.                 <application>
  21.                     <name>SSL Sectificate Discovery</name>
  22.                 </application>
  23.             </applications>
  24.             <discovery_rules>
  25.                 <discovery_rule>
  26.                     <name>SSL Ports</name>
  27.                     <type>EXTERNAL</type>
  28.                     <key>ssl-discovery.sh[{HOST.CONN}]</key>
  29.                     <delay>1d</delay>
  30.                     <lifetime>7d</lifetime>
  31.                     <item_prototypes>
  32.                         <item_prototype>
  33.                             <name>Certificate SAN on Port {#PORT}</name>
  34.                             <type>EXTERNAL</type>
  35.                             <key>ssl-cert-info.sh[&quot;--host&quot;,{HOST.CONN},&quot;--port&quot;,{#PORT},&quot;--alt&quot;]</key>
  36.                             <delay>1h</delay>
  37.                             <trends>0</trends>
  38.                             <value_type>TEXT</value_type>
  39.                             <applications>
  40.                                 <application>
  41.                                     <name>SSL Sectificate Discovery</name>
  42.                                 </application>
  43.                             </applications>
  44.                             <trigger_prototypes>
  45.                                 <trigger_prototype>
  46.                                     <expression>{change()}=1</expression>
  47.                                     <name>SSL-cert SAN changed on {HOST.CONN}:{#PORT}</name>
  48.                                     <priority>INFO</priority>
  49.                                     <manual_close>YES</manual_close>
  50.                                 </trigger_prototype>
  51.                             </trigger_prototypes>
  52.                         </item_prototype>
  53.                         <item_prototype>
  54.                             <name>Certificate CN on Port {#PORT}</name>
  55.                             <type>EXTERNAL</type>
  56.                             <key>ssl-cert-info.sh[&quot;--host&quot;,{HOST.CONN},&quot;--port&quot;,{#PORT},&quot;--cn&quot;]</key>
  57.                             <delay>1h</delay>
  58.                             <trends>0</trends>
  59.                             <value_type>TEXT</value_type>
  60.                             <applications>
  61.                                 <application>
  62.                                     <name>SSL Sectificate Discovery</name>
  63.                                 </application>
  64.                             </applications>
  65.                             <trigger_prototypes>
  66.                                 <trigger_prototype>
  67.                                     <expression>{change()}=1</expression>
  68.                                     <name>SSL-cert CN changed on {HOST.CONN}:{#PORT}</name>
  69.                                     <priority>INFO</priority>
  70.                                     <manual_close>YES</manual_close>
  71.                                 </trigger_prototype>
  72.                             </trigger_prototypes>
  73.                         </item_prototype>
  74.                         <item_prototype>
  75.                             <name>Certificate Validity Days Remaining on Port {#PORT}</name>
  76.                             <type>EXTERNAL</type>
  77.                             <key>ssl-cert-info.sh[&quot;--host&quot;,{HOST.CONN},&quot;--port&quot;,{#PORT},&quot;--end_days&quot;]</key>
  78.                             <delay>1h</delay>
  79.                             <applications>
  80.                                 <application>
  81.                                     <name>SSL Sectificate Discovery</name>
  82.                                 </application>
  83.                             </applications>
  84.                             <trigger_prototypes>
  85.                                 <trigger_prototype>
  86.                                     <expression>{last()}&lt;={$SSL_HIGH_DAYS}</expression>
  87.                                     <name>SSL-cert expiring in less than {$SSL_HIGH_DAYS} on {HOST.CONN}:{#PORT}</name>
  88.                                     <opdata>Days remaining {ITEM.LASTVALUE}</opdata>
  89.                                     <priority>HIGH</priority>
  90.                                 </trigger_prototype>
  91.                                 <trigger_prototype>
  92.                                     <expression>{last()}&lt;={$SSL_WARNING_DAYS}</expression>
  93.                                     <name>SSL-cert expiring in less than {$SSL_WARNING_DAYS} on {HOST.CONN}:{#PORT}</name>
  94.                                     <opdata>Days remaining {ITEM.LASTVALUE}</opdata>
  95.                                     <priority>WARNING</priority>
  96.                                 </trigger_prototype>
  97.                             </trigger_prototypes>
  98.                         </item_prototype>
  99.                         <item_prototype>
  100.                             <name>Certificate Issuer on Port {#PORT}</name>
  101.                             <type>EXTERNAL</type>
  102.                             <key>ssl-cert-info.sh[&quot;--host&quot;,{HOST.CONN},&quot;--port&quot;,{#PORT},&quot;--issuer&quot;]</key>
  103.                             <delay>1h</delay>
  104.                             <trends>0</trends>
  105.                             <value_type>TEXT</value_type>
  106.                             <applications>
  107.                                 <application>
  108.                                     <name>SSL Sectificate Discovery</name>
  109.                                 </application>
  110.                             </applications>
  111.                             <trigger_prototypes>
  112.                                 <trigger_prototype>
  113.                                     <expression>{change()}=1</expression>
  114.                                     <name>SSL-cert Issuer changed on {HOST.CONN}:{#PORT}</name>
  115.                                     <priority>INFO</priority>
  116.                                     <manual_close>YES</manual_close>
  117.                                 </trigger_prototype>
  118.                             </trigger_prototypes>
  119.                         </item_prototype>
  120.                         <item_prototype>
  121.                             <name>Certificate Thumbprint on Port {#PORT}</name>
  122.                             <type>EXTERNAL</type>
  123.                             <key>ssl-cert-info.sh[&quot;--host&quot;,{HOST.CONN},&quot;--port&quot;,{#PORT},&quot;--thumbprint&quot;]</key>
  124.                             <delay>1h</delay>
  125.                             <trends>0</trends>
  126.                             <value_type>TEXT</value_type>
  127.                             <applications>
  128.                                 <application>
  129.                                     <name>SSL Sectificate Discovery</name>
  130.                                 </application>
  131.                             </applications>
  132.                             <trigger_prototypes>
  133.                                 <trigger_prototype>
  134.                                     <expression>{change()}=1</expression>
  135.                                     <name>SSL-cert Thumbprint changed on {HOST.CONN}:{#PORT}</name>
  136.                                     <priority>WARNING</priority>
  137.                                     <manual_close>YES</manual_close>
  138.                                 </trigger_prototype>
  139.                             </trigger_prototypes>
  140.                         </item_prototype>
  141.                     </item_prototypes>
  142.                 </discovery_rule>
  143.             </discovery_rules>
  144.             <macros>
  145.                 <macro>
  146.                     <macro>{$SSL_HIGH_DAYS}</macro>
  147.                     <value>3</value>
  148.                 </macro>
  149.                 <macro>
  150.                     <macro>{$SSL_WARNING_DAYS}</macro>
  151.                     <value>30</value>
  152.                 </macro>
  153.             </macros>
  154.         </template>
  155.     </templates>
  156. </zabbix_export>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement