Commit 9ed02960 authored by Ecklory's avatar Ecklory

Support zabbix 4.0, added value map, remove graph

parent bc13b7e0
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>3.4</version>
<date>2018-12-20T15:43:32Z</date>
<version>4.0</version>
<date>2020-03-24T19:36:51Z</date>
<groups>
<group>
<name>Templates</name>
......@@ -62,6 +62,24 @@
<logtimefmt/>
<preprocessing/>
<jmx_endpoint/>
<timeout>3s</timeout>
<url/>
<query_fields/>
<posts/>
<status_codes>200</status_codes>
<follow_redirects>1</follow_redirects>
<post_type>0</post_type>
<http_proxy/>
<headers/>
<retrieve_mode>0</retrieve_mode>
<request_method>0</request_method>
<output_format>0</output_format>
<allow_traps>0</allow_traps>
<ssl_cert_file/>
<ssl_key_file/>
<ssl_key_password/>
<verify_peer>0</verify_peer>
<verify_host>0</verify_host>
<master_item/>
</item>
<item>
......@@ -99,10 +117,30 @@
<name>Metricbeat</name>
</application>
</applications>
<valuemap/>
<valuemap>
<name>Service state</name>
</valuemap>
<logtimefmt/>
<preprocessing/>
<jmx_endpoint/>
<timeout>3s</timeout>
<url/>
<query_fields/>
<posts/>
<status_codes>200</status_codes>
<follow_redirects>1</follow_redirects>
<post_type>0</post_type>
<http_proxy/>
<headers/>
<retrieve_mode>0</retrieve_mode>
<request_method>0</request_method>
<output_format>0</output_format>
<allow_traps>0</allow_traps>
<ssl_cert_file/>
<ssl_key_file/>
<ssl_key_password/>
<verify_peer>0</verify_peer>
<verify_host>0</verify_host>
<master_item/>
</item>
</items>
......@@ -115,7 +153,7 @@
</macro>
<macro>
<macro>{$METRICBEAT_TIMEOUT}</macro>
<value>3*{$METRICBEAT_RENEW}</value>
<value>10m</value>
</macro>
</macros>
<templates/>
......@@ -140,7 +178,7 @@
<tags/>
</trigger>
<trigger>
<expression>{Template App Metricbeat:proc.num[metricbeat].last()} &lt;&gt; 1</expression>
<expression>{Template App Metricbeat:proc.num[metricbeat].last()} = 0</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>Metricbeat service is not active</name>
......@@ -156,7 +194,7 @@
<tags/>
</trigger>
<trigger>
<expression>{Template App Metricbeat:metricbeat.version.abschange()} &lt;&gt; 0</expression>
<expression>{Template App Metricbeat:metricbeat.version.abschange()} = 1</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>Metricbeat version was changed</name>
......@@ -172,38 +210,19 @@
<tags/>
</trigger>
</triggers>
<graphs>
<graph>
<name>Metricbeat service is running</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>0</drawtype>
<color>1A7C11</color>
<yaxisside>0</yaxisside>
<calc_fnc>7</calc_fnc>
<type>0</type>
<item>
<host>Template App Metricbeat</host>
<key>proc.num[metricbeat]</key>
</item>
</graph_item>
</graph_items>
</graph>
</graphs>
<value_maps>
<value_map>
<name>Service state</name>
<mappings>
<mapping>
<value>0</value>
<newvalue>Down</newvalue>
</mapping>
<mapping>
<value>1</value>
<newvalue>Up</newvalue>
</mapping>
</mappings>
</value_map>
</value_maps>
</zabbix_export>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment