Skip to content

Commit

Permalink
update template
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Schoechlin committed Sep 9, 2019
1 parent 00029b3 commit f0e1449
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 24 deletions.
125 changes: 101 additions & 24 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-12-18T12:28:20Z</date>
<date>2019-09-09T11:12:05Z</date>
<groups>
<group>
<name>Templates</name>
Expand Down Expand Up @@ -138,6 +138,47 @@
<jmx_endpoint/>
<master_item/>
</item>
<item>
<name>Number of process threads</name>
<type>7</type>
<snmp_community/>
<snmp_oid/>
<key>custom.process_threads[]</key>
<delay>1m</delay>
<history>1w</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>Total number of processes in any state.</description>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>OS - Processes</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<preprocessing/>
<jmx_endpoint/>
<master_item/>
</item>
<item>
<name>ICMP Ping</name>
<type>3</type>
Expand Down Expand Up @@ -789,7 +830,7 @@ A man with one watch knows what time it is. A man with two watches is never sure
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<params>last(&quot;vm.memory.size[total]&quot;) - last(&quot;vm.memory.size[available]&quot;)</params>
<params>last(&quot;vm.memory.size[total]&quot;) - last(&quot;vm.memory.size[free]&quot;) - last(&quot;vm.memory.size[buffers]&quot;) - last(&quot;vm.memory.size[cached]&quot;)</params>
<ipmi_sensor/>
<authtype>0</authtype>
<username/>
Expand Down Expand Up @@ -818,7 +859,7 @@ A man with one watch knows what time it is. A man with two watches is never sure
<key>os.linux.memory.userspace.percent</key>
<delay>2m</delay>
<history>2w</history>
<trends>365d</trends>
<trends>120d</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
Expand All @@ -830,7 +871,7 @@ A man with one watch knows what time it is. A man with two watches is never sure
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<params>(last(&quot;vm.memory.size[total]&quot;) - last(&quot;vm.memory.size[available]&quot;)) / last(&quot;vm.memory.size[total]&quot;)</params>
<params>(last(&quot;vm.memory.size[total]&quot;) - last(&quot;vm.memory.size[free]&quot;) - last(&quot;vm.memory.size[buffers]&quot;) - last(&quot;vm.memory.size[cached]&quot;)) / last(&quot;vm.memory.size[total]&quot;)</params>
<ipmi_sensor/>
<authtype>0</authtype>
<username/>
Expand Down Expand Up @@ -2956,7 +2997,7 @@ md1 : active raid1 sdb2[2] sda2[0]&#13;
<trigger_prototype>
<expression>{Custom - OS - Linux:vfs.dev.read[{#BLOCKDEVICE},ops,avg1].avg({$DISK_IOPS_LIMIT_MEASURES})}&gt; {$DISK_HIGH_READ_IOPS_LIMIT}</expression>
<recovery_mode>1</recovery_mode>
<recovery_expression>{Custom - OS - Linux:vfs.dev.write[{#BLOCKDEVICE},ops,avg1].avg({$DISK_IOPS_LIMIT_MEASURES})}&lt;(0.25* {$DISK_HIGH_READ_IOPS_LIMIT})</recovery_expression>
<recovery_expression>{Custom - OS - Linux:vfs.dev.write[{#BLOCKDEVICE},ops,avg1].avg({$DISK_IOPS_LIMIT_MEASURES})}&lt;(0.75* {$DISK_HIGH_READ_IOPS_LIMIT})</recovery_expression>
<name>Blockdevice {#BLOCKDEVICE} read limit {$DISK_HIGH_READ_IOPS_LIMIT}/sec reached, currently {ITEM.LASTVALUE1}/sec</name>
<correlation_mode>0</correlation_mode>
<correlation_tag/>
Expand All @@ -2972,7 +3013,7 @@ md1 : active raid1 sdb2[2] sda2[0]&#13;
<trigger_prototype>
<expression>{Custom - OS - Linux:vfs.dev.write[{#BLOCKDEVICE},ops,avg1].avg({$DISK_IOPS_LIMIT_MEASURES})}&gt; {$DISK_HIGH_WRITE_IOPS_LIMIT}</expression>
<recovery_mode>1</recovery_mode>
<recovery_expression>{Custom - OS - Linux:vfs.dev.write[{#BLOCKDEVICE},ops,avg1].avg({$DISK_IOPS_LIMIT_MEASURES})}&lt;(0.25* {$DISK_HIGH_WRITE_IOPS_LIMIT})</recovery_expression>
<recovery_expression>{Custom - OS - Linux:vfs.dev.write[{#BLOCKDEVICE},ops,avg1].avg({$DISK_IOPS_LIMIT_MEASURES})}&lt;(0.75* {$DISK_HIGH_WRITE_IOPS_LIMIT})</recovery_expression>
<name>Blockdevice {#BLOCKDEVICE} write limit {$DISK_HIGH_WRITE_IOPS_LIMIT}/sec reached, currently {ITEM.LASTVALUE1}/sec</name>
<correlation_mode>0</correlation_mode>
<correlation_tag/>
Expand Down Expand Up @@ -3581,7 +3622,7 @@ Filesystem greater that 1TB are alarmed if the free space of the partion is lowe
<graph_prototype>
<name>Filesystem {#FSNAME} inode usage</name>
<width>900</width>
<height>200</height>
<height>300</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
Expand Down Expand Up @@ -3625,7 +3666,7 @@ Filesystem greater that 1TB are alarmed if the free space of the partion is lowe
<graph_prototype>
<name>Filesystem {#FSNAME} prediction</name>
<width>900</width>
<height>200</height>
<height>300</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
Expand Down Expand Up @@ -3681,7 +3722,7 @@ Filesystem greater that 1TB are alarmed if the free space of the partion is lowe
<graph_prototype>
<name>Filesystem {#FSNAME} space usage</name>
<width>900</width>
<height>200</height>
<height>300</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
Expand Down Expand Up @@ -3731,15 +3772,15 @@ Filesystem greater that 1TB are alarmed if the free space of the partion is lowe
<macros>
<macro>
<macro>{$DISK_HIGH_READ_IOPS_LIMIT}</macro>
<value>10000</value>
<value>2000</value>
</macro>
<macro>
<macro>{$DISK_HIGH_WRITE_IOPS_LIMIT}</macro>
<value>10000</value>
<value>2000</value>
</macro>
<macro>
<macro>{$DISK_IOPS_LIMIT_MEASURES}</macro>
<value>5</value>
<value>600</value>
</macro>
<macro>
<macro>{$DISK_USAGE_ABOVE_1TB_MINFREE_GBYTES}</macro>
Expand Down Expand Up @@ -3785,6 +3826,14 @@ Filesystem greater that 1TB are alarmed if the free space of the partion is lowe
<macro>{$MONITOR_TIMEOUT}</macro>
<value>900</value>
</macro>
<macro>
<macro>{$REBOOT_INFORMATION}</macro>
<value>24h</value>
</macro>
<macro>
<macro>{$STEAL_TIME_ALERT_LIMIT}</macro>
<value>5</value>
</macro>
</macros>
<templates/>
<screens>
Expand Down Expand Up @@ -4361,6 +4410,22 @@ Filesystem greater that 1TB are alarmed if the free space of the partion is lowe
<dependencies/>
<tags/>
</trigger>
<trigger>
<expression>({Custom - OS - Linux:system.cpu.util[,steal,avg1].avg(10m)})&gt;{$STEAL_TIME_ALERT_LIMIT}</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>CPU Steal Time &gt; {$STEAL_TIME_ALERT_LIMIT}% = {ITEM.VALUE1}</name>
<correlation_mode>0</correlation_mode>
<correlation_tag/>
<url/>
<status>0</status>
<priority>2</priority>
<description>The average of a one hour iowait cpu time is higher than 20%</description>
<type>0</type>
<manual_close>0</manual_close>
<dependencies/>
<tags/>
</trigger>
<trigger>
<expression>({Custom - OS - Linux:system.cpu.util[,iowait,avg1].avg(1h)})&gt;{$IOWAIT_ALERT_LIMIT}</expression>
<recovery_mode>0</recovery_mode>
Expand Down Expand Up @@ -4534,14 +4599,14 @@ If memory usage of userspace processes is too high, this typically leads to bad
<dependencies>
<dependency>
<name>NTP Absolute Time RMS Offset no data</name>
<expression>{Custom - OS - Linux:ntpd.primarypeer.stats[offset].nodata(3600)}=1</expression>
<expression>{Custom - OS - Linux:ntpd.primarypeer.stats[offset].nodata(3600)}=1 and {Custom - OS - Linux:system.uptime.last()}&gt;900</expression>
<recovery_expression/>
</dependency>
</dependencies>
<tags/>
</trigger>
<trigger>
<expression>{Custom - OS - Linux:ntpd.primarypeer.stats[offset].nodata(3600)}=1</expression>
<expression>{Custom - OS - Linux:ntpd.primarypeer.stats[offset].nodata(3600)}=1 and {Custom - OS - Linux:system.uptime.last()}&gt;900</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>NTP Absolute Time RMS Offset no data</name>
Expand All @@ -4555,15 +4620,15 @@ If memory usage of userspace processes is too high, this typically leads to bad
<manual_close>0</manual_close>
<dependencies>
<dependency>
<name>ICMP Ping failed 3 times</name>
<expression>{Custom - OS - Linux:icmpping[,1,,,].count(#3,0,&quot;eq&quot;)}=3</expression>
<name>Zabbix Agent Ping no data for {$MONITOR_TIMEOUT} seconds</name>
<expression>{Custom - OS - Linux:agent.ping.nodata({$MONITOR_TIMEOUT})}=1</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} and {Custom - OS - Linux:system.uptime.last()}&gt;900</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>Number of good NTP peers &lt; {$MIN_NTP_SERVER_COUNT}</name>
Expand All @@ -4578,7 +4643,7 @@ If memory usage of userspace processes is too high, this typically leads to bad
<dependencies>
<dependency>
<name>NTP Absolute Time RMS Offset no data</name>
<expression>{Custom - OS - Linux:ntpd.primarypeer.stats[offset].nodata(3600)}=1</expression>
<expression>{Custom - OS - Linux:ntpd.primarypeer.stats[offset].nodata(3600)}=1 and {Custom - OS - Linux:system.uptime.last()}&gt;900</expression>
<recovery_expression/>
</dependency>
</dependencies>
Expand All @@ -4604,7 +4669,7 @@ This trigger does not recover automatically, to get rid of this trigger, you hav
<tags/>
</trigger>
<trigger>
<expression>{Custom - OS - Linux:vfs.file.exists[/var/run/reboot-required].last()}=1</expression>
<expression>{Custom - OS - Linux:vfs.file.exists[/var/run/reboot-required].min({$REBOOT_INFORMATION})}=1</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>Reboot required</name>
Expand Down Expand Up @@ -5081,7 +5146,7 @@ Remove the flagfile if you decide that no reboot is required (/var/run/reboot-re
<drawtype>1</drawtype>
<color>BB0000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<calc_fnc>4</calc_fnc>
<type>0</type>
<item>
<host>Custom - OS - Linux</host>
Expand All @@ -5093,7 +5158,7 @@ Remove the flagfile if you decide that no reboot is required (/var/run/reboot-re
<drawtype>1</drawtype>
<color>0000EE</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<calc_fnc>4</calc_fnc>
<type>0</type>
<item>
<host>Custom - OS - Linux</host>
Expand All @@ -5105,7 +5170,7 @@ Remove the flagfile if you decide that no reboot is required (/var/run/reboot-re
<drawtype>1</drawtype>
<color>CC00CC</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<calc_fnc>4</calc_fnc>
<type>0</type>
<item>
<host>Custom - OS - Linux</host>
Expand All @@ -5117,7 +5182,7 @@ Remove the flagfile if you decide that no reboot is required (/var/run/reboot-re
<drawtype>1</drawtype>
<color>00BB00</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<calc_fnc>4</calc_fnc>
<type>0</type>
<item>
<host>Custom - OS - Linux</host>
Expand Down Expand Up @@ -5149,7 +5214,7 @@ Remove the flagfile if you decide that no reboot is required (/var/run/reboot-re
<drawtype>0</drawtype>
<color>BB00BB</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<calc_fnc>7</calc_fnc>
<type>0</type>
<item>
<host>Custom - OS - Linux</host>
Expand Down Expand Up @@ -5356,6 +5421,18 @@ Remove the flagfile if you decide that no reboot is required (/var/run/reboot-re
<key>proc.num[,,zomb]</key>
</item>
</graph_item>
<graph_item>
<sortorder>3</sortorder>
<drawtype>0</drawtype>
<color>DDDD00</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Custom - OS - Linux</host>
<key>custom.process_threads[]</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
Expand Down
1 change: 1 addition & 0 deletions zabbix_templates/3.4/documentation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<option value="custom-service-nginx-logstats.html"> custom-service-nginx-logstats</option>
<option value="custom-service-nginx.html"> custom-service-nginx</option>
<option value="custom-service-redis.html"> custom-service-redis</option>
<option value="custom-service-springboot.html"> custom-service-springboot</option>
<option value="custom-service-varnish.html"> custom-service-varnish</option>
</select>

Expand Down

0 comments on commit f0e1449

Please sign in to comment.