197 lines
8.1 KiB
XML
197 lines
8.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<zabbix_export>
|
|
<version>3.0</version>
|
|
<date>2017-04-26T12:20:58Z</date>
|
|
<groups>
|
|
<group>
|
|
<name>Templates znil.net</name>
|
|
</group>
|
|
</groups>
|
|
<templates>
|
|
<template>
|
|
<template>znil Template native Windows Service Discovery Zabbix 3.x</template>
|
|
<name>znil Template native Windows Service Discovery Zabbix 3.x</name>
|
|
<description/>
|
|
<groups>
|
|
<group>
|
|
<name>Templates znil.net</name>
|
|
</group>
|
|
</groups>
|
|
<applications>
|
|
<application>
|
|
<name>Windows Services</name>
|
|
</application>
|
|
</applications>
|
|
<items/>
|
|
<discovery_rules>
|
|
<discovery_rule>
|
|
<name>Discover Windows Service</name>
|
|
<type>7</type>
|
|
<snmp_community/>
|
|
<snmp_oid/>
|
|
<key>service.discovery</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>
|
|
<condition>
|
|
<macro>{#SERVICE.STARTUP}</macro>
|
|
<value>1</value>
|
|
<operator>8</operator>
|
|
<formulaid>D</formulaid>
|
|
</condition>
|
|
<condition>
|
|
<macro>{#SERVICE.STARTUP}</macro>
|
|
<value>0</value>
|
|
<operator>8</operator>
|
|
<formulaid>C</formulaid>
|
|
</condition>
|
|
<condition>
|
|
<macro>{#SERVICE.NAME}</macro>
|
|
<value>@Windows_Services_to_ignore</value>
|
|
<operator>8</operator>
|
|
<formulaid>B</formulaid>
|
|
</condition>
|
|
<condition>
|
|
<macro>{#SERVICE.DISPLAYNAME}</macro>
|
|
<value>@Windows_Services_to_ignore</value>
|
|
<operator>8</operator>
|
|
<formulaid>A</formulaid>
|
|
</condition>
|
|
</conditions>
|
|
</filter>
|
|
<lifetime>1</lifetime>
|
|
<description/>
|
|
<item_prototypes>
|
|
<item_prototype>
|
|
<name>Service - {#SERVICE.DISPLAYNAME} - State</name>
|
|
<type>7</type>
|
|
<snmp_community/>
|
|
<multiplier>0</multiplier>
|
|
<snmp_oid/>
|
|
<key>service.info[{#SERVICE.NAME}]</key>
|
|
<delay>120</delay>
|
|
<history>30</history>
|
|
<trends>90</trends>
|
|
<status>0</status>
|
|
<value_type>3</value_type>
|
|
<allowed_hosts/>
|
|
<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/>
|
|
<inventory_link>0</inventory_link>
|
|
<applications>
|
|
<application>
|
|
<name>Windows Services</name>
|
|
</application>
|
|
</applications>
|
|
<valuemap>
|
|
<name>Windows service state</name>
|
|
</valuemap>
|
|
<logtimefmt/>
|
|
<application_prototypes/>
|
|
</item_prototype>
|
|
</item_prototypes>
|
|
<trigger_prototypes>
|
|
<trigger_prototype>
|
|
<expression>{znil Template native Windows Service Discovery Zabbix 3.x:service.info[{#SERVICE.NAME}].last()}<>0 and {znil Template native Windows Service Discovery Zabbix 3.x:service.info[{#SERVICE.NAME}].last()}<>255</expression>
|
|
<name>Service {#SERVICE.DISPLAYNAME} is not running</name>
|
|
<url/>
|
|
<status>0</status>
|
|
<priority>2</priority>
|
|
<description/>
|
|
<type>0</type>
|
|
<dependencies/>
|
|
</trigger_prototype>
|
|
</trigger_prototypes>
|
|
<graph_prototypes/>
|
|
<host_prototypes/>
|
|
</discovery_rule>
|
|
</discovery_rules>
|
|
<macros/>
|
|
<templates/>
|
|
<screens/>
|
|
</template>
|
|
</templates>
|
|
<value_maps>
|
|
<value_map>
|
|
<name>Windows service state</name>
|
|
<mappings>
|
|
<mapping>
|
|
<value>0</value>
|
|
<newvalue>Running</newvalue>
|
|
</mapping>
|
|
<mapping>
|
|
<value>1</value>
|
|
<newvalue>Paused</newvalue>
|
|
</mapping>
|
|
<mapping>
|
|
<value>2</value>
|
|
<newvalue>Start pending</newvalue>
|
|
</mapping>
|
|
<mapping>
|
|
<value>3</value>
|
|
<newvalue>Pause pending</newvalue>
|
|
</mapping>
|
|
<mapping>
|
|
<value>4</value>
|
|
<newvalue>Continue pending</newvalue>
|
|
</mapping>
|
|
<mapping>
|
|
<value>5</value>
|
|
<newvalue>Stop pending</newvalue>
|
|
</mapping>
|
|
<mapping>
|
|
<value>6</value>
|
|
<newvalue>Stopped</newvalue>
|
|
</mapping>
|
|
<mapping>
|
|
<value>7</value>
|
|
<newvalue>Unknown</newvalue>
|
|
</mapping>
|
|
<mapping>
|
|
<value>255</value>
|
|
<newvalue>No such service</newvalue>
|
|
</mapping>
|
|
</mappings>
|
|
</value_map>
|
|
</value_maps>
|
|
</zabbix_export>
|