123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- <?xml version="1.0" encoding="UTF-8"?>
- <zabbix_export>
- <version>3.4</version>
- <date>2018-07-20T14:31:02Z</date>
- <groups>
- <group>
- <name>Templates/Applications</name>
- </group>
- </groups>
- <templates>
- <template>
- <template>Template App systemd Services</template>
- <name>Template App systemd Services</name>
- <description>Discovery enabled systemd services, checks status every 1m, and checks PID every 10m to determine if service has rebooted.</description>
- <groups>
- <group>
- <name>Templates/Applications</name>
- </group>
- </groups>
- <applications>
- <application>
- <name>systemd</name>
- </application>
- </applications>
- <items>
- <item>
- <name>System uptime</name>
- <type>0</type>
- <snmp_community/>
- <snmp_oid/>
- <key>systemd.uptime</key>
- <delay>10m</delay>
- <history>1d</history>
- <trends>1w</trends>
- <status>0</status>
- <value_type>3</value_type>
- <allowed_hosts/>
- <units>uptime</units>
- <snmpv3_contextname/>
- <snmpv3_securityname/>
- <snmpv3_securitylevel>0</snmpv3_securitylevel>
- <snmpv3_authprotocol>0</snmpv3_authprotocol>
- <snmpv3_authpassphrase/>
- <snmpv3_privprotocol>0</snmpv3_privprotocol>
- <snmpv3_privpassphrase/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <description/>
- <inventory_link>0</inventory_link>
- <applications/>
- <valuemap/>
- <logtimefmt/>
- <preprocessing/>
- <jmx_endpoint/>
- <master_item/>
- </item>
- </items>
- <discovery_rules>
- <discovery_rule>
- <name>Service Discovery</name>
- <type>0</type>
- <snmp_community/>
- <snmp_oid/>
- <key>systemd.service.discovery</key>
- <delay>24h</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/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <filter>
- <evaltype>0</evaltype>
- <formula/>
- <conditions/>
- </filter>
- <lifetime>1d</lifetime>
- <description/>
- <item_prototypes>
- <item_prototype>
- <name>{#SERVICE} PID</name>
- <type>0</type>
- <snmp_community/>
- <snmp_oid/>
- <key>systemd.service.PID[{#SERVICE}]</key>
- <delay>10m</delay>
- <history>30d</history>
- <trends>365d</trends>
- <status>0</status>
- <value_type>3</value_type>
- <allowed_hosts/>
- <units/>
- <snmpv3_contextname/>
- <snmpv3_securityname/>
- <snmpv3_securitylevel>0</snmpv3_securitylevel>
- <snmpv3_authprotocol>0</snmpv3_authprotocol>
- <snmpv3_authpassphrase/>
- <snmpv3_privprotocol>0</snmpv3_privprotocol>
- <snmpv3_privpassphrase/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <description/>
- <inventory_link>0</inventory_link>
- <applications/>
- <valuemap/>
- <logtimefmt/>
- <preprocessing/>
- <jmx_endpoint/>
- <application_prototypes/>
- <master_item_prototype/>
- </item_prototype>
- <item_prototype>
- <name>{#SERVICE} Status</name>
- <type>0</type>
- <snmp_community/>
- <snmp_oid/>
- <key>systemd.service.status[{#SERVICE}]</key>
- <delay>1m</delay>
- <history>30d</history>
- <trends>365d</trends>
- <status>0</status>
- <value_type>3</value_type>
- <allowed_hosts/>
- <units/>
- <snmpv3_contextname/>
- <snmpv3_securityname/>
- <snmpv3_securitylevel>0</snmpv3_securitylevel>
- <snmpv3_authprotocol>0</snmpv3_authprotocol>
- <snmpv3_authpassphrase/>
- <snmpv3_privprotocol>0</snmpv3_privprotocol>
- <snmpv3_privpassphrase/>
- <params/>
- <ipmi_sensor/>
- <authtype>0</authtype>
- <username/>
- <password/>
- <publickey/>
- <privatekey/>
- <port/>
- <description>Returns the status of the</description>
- <inventory_link>0</inventory_link>
- <applications/>
- <valuemap/>
- <logtimefmt/>
- <preprocessing/>
- <jmx_endpoint/>
- <application_prototypes/>
- <master_item_prototype/>
- </item_prototype>
- </item_prototypes>
- <trigger_prototypes>
- <trigger_prototype>
- <expression>{Template App systemd Services:systemd.service.PID[{#SERVICE}].diff(0)}<>0 and {Template App systemd Services:systemd.uptime.last()}>180</expression>
- <recovery_mode>0</recovery_mode>
- <recovery_expression/>
- <name>{#SERVICE} has restarted</name>
- <correlation_mode>0</correlation_mode>
- <correlation_tag/>
- <url/>
- <status>0</status>
- <priority>2</priority>
- <description>The Service has been restarted and is using a new PID</description>
- <type>0</type>
- <manual_close>1</manual_close>
- <dependencies/>
- <tags/>
- </trigger_prototype>
- <trigger_prototype>
- <expression>{Template App systemd Services:systemd.service.status[{#SERVICE}].last()}<>0</expression>
- <recovery_mode>0</recovery_mode>
- <recovery_expression/>
- <name>{#SERVICE} not running</name>
- <correlation_mode>0</correlation_mode>
- <correlation_tag/>
- <url/>
- <status>0</status>
- <priority>4</priority>
- <description/>
- <type>0</type>
- <manual_close>1</manual_close>
- <dependencies/>
- <tags/>
- </trigger_prototype>
- </trigger_prototypes>
- <graph_prototypes/>
- <host_prototypes/>
- <jmx_endpoint/>
- </discovery_rule>
- </discovery_rules>
- <httptests/>
- <macros/>
- <templates/>
- <screens/>
- </template>
- </templates>
- </zabbix_export>
|