Skip to content

Commit

Permalink
Changing Total cases method of gathering [Zabbix 4.0] compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobarbosa-nubeliu committed Mar 13, 2020
1 parent 9866270 commit 3895048
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions zabbix/zabbix_template.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>4.0</version>
<date>2020-03-11T18:57:59Z</date>
<date>2020-03-13T17:44:27Z</date>
<groups>
<group>
<name>Templates</name>
Expand Down Expand Up @@ -120,7 +120,7 @@
<description/>
<item_prototypes>
<item_prototype>
<name>[ {#COUNTRY_NAME} ] - ActiveCases</name>
<name>[ {#COUNTRY_NAME} ] - ActiveCases</name>
<type>18</type>
<snmp_community/>
<snmp_oid/>
Expand Down Expand Up @@ -476,11 +476,11 @@
</item_prototype>
<item_prototype>
<name>[ {#COUNTRY_NAME} ] - TotalCases</name>
<type>18</type>
<type>15</type>
<snmp_community/>
<snmp_oid/>
<key>covid19.data[TotalCases, &quot;{#COUNTRY_NAME}&quot;]</key>
<delay>0</delay>
<delay>30m</delay>
<history>90d</history>
<trends>365d</trends>
<status>0</status>
Expand All @@ -494,7 +494,7 @@
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<params/>
<params>last(&quot;covid19.data[ActiveCases, \&quot;{#COUNTRY_NAME}\&quot;]&quot;) + last(&quot;covid19.data[TotalDeaths, \&quot;{#COUNTRY_NAME}\&quot;]&quot;) + last(&quot;covid19.data[TotalRecovered, \&quot;{#COUNTRY_NAME}\&quot;]&quot;)</params>
<ipmi_sensor/>
<authtype>0</authtype>
<username/>
Expand All @@ -511,12 +511,7 @@
</applications>
<valuemap/>
<logtimefmt/>
<preprocessing>
<step>
<type>12</type>
<params>$['{#COUNTRY_NAME}'].TotalCases</params>
</step>
</preprocessing>
<preprocessing/>
<jmx_endpoint/>
<timeout>3s</timeout>
<url/>
Expand All @@ -541,9 +536,7 @@
<name>Country Data: {#COUNTRY_NAME}</name>
</application_prototype>
</application_prototypes>
<master_item>
<key>covid19_status.py</key>
</master_item>
<master_item/>
</item_prototype>
<item_prototype>
<name>[ {#COUNTRY_NAME} ] - TotalDeaths</name>
Expand Down Expand Up @@ -689,8 +682,7 @@
</item_prototype>
</item_prototypes>
<trigger_prototypes/>
<graph_prototypes>
</graph_prototypes>
<graph_prototypes/>
<host_prototypes/>
<jmx_endpoint/>
<timeout>3s</timeout>
Expand Down

0 comments on commit 3895048

Please sign in to comment.