Skip to content

Commit

Permalink
updated templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Schoechlin committed Dec 18, 2018
1 parent 5568c56 commit 2a76d43
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 62 deletions.
80 changes: 34 additions & 46 deletions zabbix_templates/3.4/custom-os-linux.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>3.4</version>
<date>2018-10-31T10:25:12Z</date>
<date>2018-12-18T12:28:20Z</date>
<groups>
<group>
<name>Templates</name>
Expand Down Expand Up @@ -3753,6 +3753,10 @@ Filesystem greater that 1TB are alarmed if the free space of the partion is lowe
<macro>{$DISK_USAGE_PERCENT_WARN}</macro>
<value>95</value>
</macro>
<macro>
<macro>{$IOWAIT_ALERT_LIMIT}</macro>
<value>20</value>
</macro>
<macro>
<macro>{$MAXIMUM_NUMBER_RETRANSMISSIONS}</macro>
<value>1</value>
Expand All @@ -3767,11 +3771,11 @@ Filesystem greater that 1TB are alarmed if the free space of the partion is lowe
</macro>
<macro>
<macro>{$MEMORY_USERSPACE_USAGE_LIMIT}</macro>
<value>96</value>
<value>98</value>
</macro>
<macro>
<macro>{$MIN_NTP_SERVER_COUNT}</macro>
<value>1</value>
<value>3</value>
</macro>
<macro>
<macro>{$MONITOR_LOAD_WARNING_MULT}</macro>
Expand Down Expand Up @@ -3913,28 +3917,6 @@ Filesystem greater that 1TB are alarmed if the free space of the partion is lowe
<hsize>1</hsize>
<vsize>15</vsize>
<screen_items>
<screen_item>
<resourcetype>0</resourcetype>
<width>900</width>
<height>300</height>
<x>0</x>
<y>0</y>
<colspan>1</colspan>
<rowspan>1</rowspan>
<elements>0</elements>
<valign>0</valign>
<halign>0</halign>
<style>0</style>
<url/>
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>CPU Times</name>
<host>Custom - OS - Linux</host>
</resource>
<max_columns>3</max_columns>
<application/>
</screen_item>
<screen_item>
<resourcetype>0</resourcetype>
<width>900</width>
Expand All @@ -3951,14 +3933,14 @@ Filesystem greater that 1TB are alarmed if the free space of the partion is lowe
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>CPU Times AVG</name>
<name>System Load</name>
<host>Custom - OS - Linux</host>
</resource>
<max_columns>3</max_columns>
<application/>
</screen_item>
<screen_item>
<resourcetype>1</resourcetype>
<resourcetype>0</resourcetype>
<width>900</width>
<height>300</height>
<x>0</x>
Expand All @@ -3973,14 +3955,14 @@ Filesystem greater that 1TB are alarmed if the free space of the partion is lowe
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<key>system.cpu.intr</key>
<name>CPU Times</name>
<host>Custom - OS - Linux</host>
</resource>
<max_columns>3</max_columns>
<application/>
</screen_item>
<screen_item>
<resourcetype>0</resourcetype>
<resourcetype>1</resourcetype>
<width>900</width>
<height>300</height>
<x>0</x>
Expand All @@ -3995,7 +3977,7 @@ Filesystem greater that 1TB are alarmed if the free space of the partion is lowe
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>CPU Context Switches</name>
<key>system.cpu.intr</key>
<host>Custom - OS - Linux</host>
</resource>
<max_columns>3</max_columns>
Expand All @@ -4017,7 +3999,7 @@ Filesystem greater that 1TB are alarmed if the free space of the partion is lowe
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>Memory Usage by Userspace</name>
<name>CPU Context Switches</name>
<host>Custom - OS - Linux</host>
</resource>
<max_columns>3</max_columns>
Expand All @@ -4039,7 +4021,7 @@ Filesystem greater that 1TB are alarmed if the free space of the partion is lowe
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>Memory Usage</name>
<name>Memory Usage by Userspace</name>
<host>Custom - OS - Linux</host>
</resource>
<max_columns>3</max_columns>
Expand All @@ -4061,7 +4043,7 @@ Filesystem greater that 1TB are alarmed if the free space of the partion is lowe
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>Swap Usage</name>
<name>Memory Usage</name>
<host>Custom - OS - Linux</host>
</resource>
<max_columns>3</max_columns>
Expand All @@ -4083,7 +4065,7 @@ Filesystem greater that 1TB are alarmed if the free space of the partion is lowe
<dynamic>0</dynamic>
<sort_triggers>0</sort_triggers>
<resource>
<name>System Load</name>
<name>Swap Usage</name>
<host>Custom - OS - Linux</host>
</resource>
<max_columns>3</max_columns>
Expand Down Expand Up @@ -4380,16 +4362,16 @@ Filesystem greater that 1TB are alarmed if the free space of the partion is lowe
<tags/>
</trigger>
<trigger>
<expression>({Custom - OS - Linux:system.cpu.util[,user,avg1].avg(1h)}+{Custom - OS - Linux:system.cpu.util[,system,avg1].avg(1h)}+{Custom - OS - Linux:system.cpu.util[,iowait,avg1].avg(1h)})&gt;90</expression>
<expression>({Custom - OS - Linux:system.cpu.util[,iowait,avg1].avg(1h)})&gt;{$IOWAIT_ALERT_LIMIT}</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>CPU Usage &gt; 90%</name>
<name>CPU Usage IO Wait &gt; {$IOWAIT_ALERT_LIMIT}% = {ITEM.VALUE1}</name>
<correlation_mode>0</correlation_mode>
<correlation_tag/>
<url/>
<status>0</status>
<priority>2</priority>
<description>The average of system + user + iowait cpu time is higher than 90%</description>
<description>The average of a one hour iowait cpu time is higher than 20%</description>
<type>0</type>
<manual_close>0</manual_close>
<dependencies/>
Expand All @@ -4415,7 +4397,7 @@ Filesystem greater that 1TB are alarmed if the free space of the partion is lowe
<expression>{Custom - OS - Linux:icmpping[,1,,,].count(#3,0,&quot;eq&quot;)}=3</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>ICMP Ping</name>
<name>ICMP Ping failed 3 times</name>
<correlation_mode>0</correlation_mode>
<correlation_tag/>
<url/>
Expand Down Expand Up @@ -4489,8 +4471,8 @@ Filesystem greater that 1TB are alarmed if the free space of the partion is lowe
</trigger>
<trigger>
<expression>{Custom - OS - Linux:os.linux.memory.userspace.percent.last()}&gt;{$MEMORY_USERSPACE_USAGE_LIMIT}</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<recovery_mode>1</recovery_mode>
<recovery_expression>{Custom - OS - Linux:os.linux.memory.userspace.percent.last()} &lt; ({$MEMORY_USERSPACE_USAGE_LIMIT} - 0.5)</recovery_expression>
<name>Memory consumption {ITEM.VALUE1} &gt; {$MEMORY_USERSPACE_USAGE_LIMIT} %</name>
<correlation_mode>0</correlation_mode>
<correlation_tag/>
Expand Down Expand Up @@ -4573,18 +4555,18 @@ If memory usage of userspace processes is too high, this typically leads to bad
<manual_close>0</manual_close>
<dependencies>
<dependency>
<name>ICMP Ping</name>
<name>ICMP Ping failed 3 times</name>
<expression>{Custom - OS - Linux:icmpping[,1,,,].count(#3,0,&quot;eq&quot;)}=3</expression>
<recovery_expression/>
</dependency>
</dependencies>
<tags/>
</trigger>
<trigger>
<expression>{Custom - OS - Linux:ntpd.peers.goodcount.last()}&lt;= {$MIN_NTP_SERVER_COUNT}</expression>
<expression>{Custom - OS - Linux:ntpd.peers.goodcount.last()} &lt; {$MIN_NTP_SERVER_COUNT}</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>Number of good NTP peers &lt;= {$MIN_NTP_SERVER_COUNT}</name>
<name>Number of good NTP peers &lt; {$MIN_NTP_SERVER_COUNT}</name>
<correlation_mode>0</correlation_mode>
<correlation_tag/>
<url/>
Expand All @@ -4593,7 +4575,13 @@ If memory usage of userspace processes is too high, this typically leads to bad
<description/>
<type>0</type>
<manual_close>0</manual_close>
<dependencies/>
<dependencies>
<dependency>
<name>NTP Absolute Time RMS Offset no data</name>
<expression>{Custom - OS - Linux:ntpd.primarypeer.stats[offset].nodata(3600)}=1</expression>
<recovery_expression/>
</dependency>
</dependencies>
<tags/>
</trigger>
<trigger>
Expand Down Expand Up @@ -4755,7 +4743,7 @@ Remove the flagfile if you decide that no reboot is required (/var/run/reboot-re
<manual_close>0</manual_close>
<dependencies>
<dependency>
<name>ICMP Ping</name>
<name>ICMP Ping failed 3 times</name>
<expression>{Custom - OS - Linux:icmpping[,1,,,].count(#3,0,&quot;eq&quot;)}=3</expression>
<recovery_expression/>
</dependency>
Expand All @@ -4777,7 +4765,7 @@ Remove the flagfile if you decide that no reboot is required (/var/run/reboot-re
<manual_close>0</manual_close>
<dependencies>
<dependency>
<name>ICMP Ping</name>
<name>ICMP Ping failed 3 times</name>
<expression>{Custom - OS - Linux:icmpping[,1,,,].count(#3,0,&quot;eq&quot;)}=3</expression>
<recovery_expression/>
</dependency>
Expand Down
Loading

0 comments on commit 2a76d43

Please sign in to comment.