From ef708655dc3a69afdfbb47b38980f3106060bf24 Mon Sep 17 00:00:00 2001 From: Kamil Porembinski <kamil@thecamels.org> Date: Mon, 1 Aug 2016 21:29:02 +0200 Subject: [PATCH] Added: - Number of master processes + trigger - Number of qmgr processes + trigger - Number of tlsmgr processes + trigger --- templates/Template App Postfix.xml | 175 ++++++++++++++++++++++++++++- 1 file changed, 172 insertions(+), 3 deletions(-) diff --git a/templates/Template App Postfix.xml b/templates/Template App Postfix.xml index 659583e..86cfaea 100644 --- a/templates/Template App Postfix.xml +++ b/templates/Template App Postfix.xml @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <zabbix_export> <version>3.0</version> - <date>2016-05-02T12:00:46Z</date> + <date>2016-08-01T19:28:00Z</date> <groups> <group> - <name>Zabbix Templates</name> + <name>Templates</name> </group> </groups> <templates> @@ -14,7 +14,7 @@ <description/> <groups> <group> - <name>Zabbix Templates</name> + <name>Templates</name> </group> </groups> <applications> @@ -240,6 +240,135 @@ <valuemap/> <logtimefmt/> </item> + <item> + <name>Number of $1 processes</name> + <type>0</type> + <snmp_community/> + <multiplier>0</multiplier> + <snmp_oid/> + <key>proc.num[master]</key> + <delay>60</delay> + <history>7</history> + <trends>365</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>Postfix</name> + </application> + </applications> + <valuemap/> + <logtimefmt/> + </item> + <item> + <name>Number of $1 processes</name> + <type>0</type> + <snmp_community/> + <multiplier>0</multiplier> + <snmp_oid/> + <key>proc.num[qmgr]</key> + <delay>60</delay> + <history>7</history> + <trends>365</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>Postfix</name> + </application> + </applications> + <valuemap/> + <logtimefmt/> + </item> + <item> + <name>Number of $1 processes</name> + <type>0</type> + <snmp_community/> + <multiplier>0</multiplier> + <snmp_oid/> + <key>proc.num[tlsmgr]</key> + <delay>60</delay> + <history>7</history> + <trends>365</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>Postfix</name> + </application> + </applications> + <valuemap/> + <logtimefmt/> + </item> </items> <discovery_rules/> <macros/> @@ -278,6 +407,46 @@ <type>0</type> <dependencies/> </trigger> + <trigger> + <expression>{Template App Postfix:proc.num[master].last(0)}=0</expression> + <name>No master process running</name> + <url/> + <status>0</status> + <priority>3</priority> + <description/> + <type>0</type> + <dependencies/> + </trigger> + <trigger> + <expression>{Template App Postfix:proc.num[qmgr].last(0)}=0</expression> + <name>No qmgr process running</name> + <url/> + <status>0</status> + <priority>3</priority> + <description/> + <type>0</type> + <dependencies> + <dependency> + <name>No master process running</name> + <expression>{Template App Postfix:proc.num[master].last(0)}=0</expression> + </dependency> + </dependencies> + </trigger> + <trigger> + <expression>{Template App Postfix:proc.num[tlsmgr].last(0)}=0</expression> + <name>No tlsmgr process running</name> + <url/> + <status>0</status> + <priority>3</priority> + <description/> + <type>0</type> + <dependencies> + <dependency> + <name>No master process running</name> + <expression>{Template App Postfix:proc.num[master].last(0)}=0</expression> + </dependency> + </dependencies> + </trigger> <trigger> <expression>{Template App Postfix:chkconfig[postfix].last(0)}=0</expression> <name>Postfix is not enabled in autostart</name> -- GitLab