Update Template_App_MySQL

tags/zabbix-agent-addons-0.2.135-1
Daniel Berteaud 4 years ago
parent 8d8c90e31a
commit ebfff4b43d
  1. 155
      zabbix_templates/Template_App_MySQL.xml

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<zabbix_export> <zabbix_export>
<version>5.0</version> <version>5.0</version>
<date>2020-08-31T15:37:35Z</date> <date>2020-12-17T15:29:59Z</date>
<groups> <groups>
<group> <group>
<name>Templates</name> <name>Templates</name>
@ -56,7 +56,7 @@
<delay>0</delay> <delay>0</delay>
<history>30d</history> <history>30d</history>
<trends>1825d</trends> <trends>1825d</trends>
<units>!connections</units> <units>!conn</units>
<applications> <applications>
<application> <application>
<name>mysql</name> <name>mysql</name>
@ -91,8 +91,9 @@
</applications> </applications>
<preprocessing> <preprocessing>
<step> <step>
<type>JSONPATH</type> <type>JAVASCRIPT</type>
<params>$.Access_denied_errors</params> <params>json = JSON.parse(value);
return json.Access_denied_errors || 0;</params>
</step> </step>
<step> <step>
<type>SIMPLE_CHANGE</type> <type>SIMPLE_CHANGE</type>
@ -118,36 +119,9 @@
</applications> </applications>
<preprocessing> <preprocessing>
<step> <step>
<type>JSONPATH</type> <type>JAVASCRIPT</type>
<params>$.Acl_users</params> <params>json = JSON.parse(value);
</step> return json.Acl_users || 0;</params>
</preprocessing>
<master_item>
<key>db.mysql[{$MYSQL_HOST},{$MYSQL_PORT},{$MYSQL_USER},{$MYSQL_PASSWORD},{$MYSQL_DEFAULTS},all]</key>
</master_item>
</item>
<item>
<name>MySQL: $1</name>
<type>DEPENDENT</type>
<key>db.mysql[Busy_time]</key>
<delay>0</delay>
<history>30d</history>
<trends>1825d</trends>
<value_type>FLOAT</value_type>
<units>s</units>
<applications>
<application>
<name>mysql</name>
</application>
</applications>
<preprocessing>
<step>
<type>JSONPATH</type>
<params>$.Busy_time</params>
</step>
<step>
<type>CHANGE_PER_SECOND</type>
<params/>
</step> </step>
</preprocessing> </preprocessing>
<master_item> <master_item>
@ -250,8 +224,9 @@
</applications> </applications>
<preprocessing> <preprocessing>
<step> <step>
<type>JSONPATH</type> <type>JAVASCRIPT</type>
<params>$.Com_alter_user</params> <params>json = JSON.parse(value);
return json.Com_alter_user || 0;</params>
</step> </step>
<step> <step>
<type>CHANGE_PER_SECOND</type> <type>CHANGE_PER_SECOND</type>
@ -512,7 +487,7 @@
<delay>0</delay> <delay>0</delay>
<history>30d</history> <history>30d</history>
<trends>1825d</trends> <trends>1825d</trends>
<units>!connections</units> <units>!conn</units>
<applications> <applications>
<application> <application>
<name>mysql</name> <name>mysql</name>
@ -533,61 +508,6 @@
</master_item> </master_item>
</item> </item>
<item> <item>
<name>MySQL: CPU Time</name>
<type>DEPENDENT</type>
<key>db.mysql[Cpu_time]</key>
<delay>0</delay>
<history>30d</history>
<trends>1825d</trends>
<value_type>FLOAT</value_type>
<units>s</units>
<applications>
<application>
<name>mysql</name>
</application>
</applications>
<preprocessing>
<step>
<type>JSONPATH</type>
<params>$.Cpu_time</params>
</step>
<step>
<type>SIMPLE_CHANGE</type>
<params/>
</step>
</preprocessing>
<master_item>
<key>db.mysql[{$MYSQL_HOST},{$MYSQL_PORT},{$MYSQL_USER},{$MYSQL_PASSWORD},{$MYSQL_DEFAULTS},all]</key>
</master_item>
</item>
<item>
<name>MySQL: Number of queries returning no results</name>
<type>DEPENDENT</type>
<key>db.mysql[Empty_queries]</key>
<delay>0</delay>
<history>30d</history>
<trends>1825d</trends>
<units>!qps</units>
<applications>
<application>
<name>mysql</name>
</application>
</applications>
<preprocessing>
<step>
<type>JSONPATH</type>
<params>$.Empty_queries</params>
</step>
<step>
<type>CHANGE_PER_SECOND</type>
<params/>
</step>
</preprocessing>
<master_item>
<key>db.mysql[{$MYSQL_HOST},{$MYSQL_PORT},{$MYSQL_USER},{$MYSQL_PASSWORD},{$MYSQL_DEFAULTS},all]</key>
</master_item>
</item>
<item>
<name>MySQL: InnoDB buffer pool size</name> <name>MySQL: InnoDB buffer pool size</name>
<type>DEPENDENT</type> <type>DEPENDENT</type>
<key>db.mysql[Innodb_buffer_pool_bytes_data]</key> <key>db.mysql[Innodb_buffer_pool_bytes_data]</key>
@ -648,8 +568,13 @@
</applications> </applications>
<preprocessing> <preprocessing>
<step> <step>
<type>JSONPATH</type> <type>JAVASCRIPT</type>
<params>$.Innodb_buffer_pool_load_status</params> <params>json = JSON.parse(value);
return json.Innodb_buffer_pool_load_status || 'Buffer pool(s) load completed at';</params>
</step>
<step>
<type>DISCARD_UNCHANGED_HEARTBEAT</type>
<params>6h</params>
</step> </step>
</preprocessing> </preprocessing>
<master_item> <master_item>
@ -657,7 +582,7 @@
</master_item> </master_item>
<triggers> <triggers>
<trigger> <trigger>
<expression>{str(&quot;Buffer pool(s) load completed at&quot;)}=0</expression> <expression>{str(&quot;Buffer pool(s) load completed at&quot;)}=0 and {str(&quot;not started&quot;)}=0</expression>
<name>MySQL InnoDB buffer pool is not ready</name> <name>MySQL InnoDB buffer pool is not ready</name>
<priority>WARNING</priority> <priority>WARNING</priority>
</trigger> </trigger>
@ -681,6 +606,10 @@
<type>JSONPATH</type> <type>JSONPATH</type>
<params>$.Innodb_buffer_pool_reads</params> <params>$.Innodb_buffer_pool_reads</params>
</step> </step>
<step>
<type>CHANGE_PER_SECOND</type>
<params/>
</step>
</preprocessing> </preprocessing>
<master_item> <master_item>
<key>db.mysql[{$MYSQL_HOST},{$MYSQL_PORT},{$MYSQL_USER},{$MYSQL_PASSWORD},{$MYSQL_DEFAULTS},all]</key> <key>db.mysql[{$MYSQL_HOST},{$MYSQL_PORT},{$MYSQL_USER},{$MYSQL_PASSWORD},{$MYSQL_DEFAULTS},all]</key>
@ -755,8 +684,9 @@
</applications> </applications>
<preprocessing> <preprocessing>
<step> <step>
<type>JSONPATH</type> <type>JAVASCRIPT</type>
<params>$.Max_statement_time_exceeded</params> <params>json = JSON.parse(value);
return json.Max_statement_time_exceeded || 0;</params>
</step> </step>
<step> <step>
<type>CHANGE_PER_SECOND</type> <type>CHANGE_PER_SECOND</type>
@ -782,8 +712,9 @@
</applications> </applications>
<preprocessing> <preprocessing>
<step> <step>
<type>JSONPATH</type> <type>JAVASCRIPT</type>
<params>$.Memory_used</params> <params>json = JSON.parse(value);
return json.Memory_used || 0;</params>
</step> </step>
</preprocessing> </preprocessing>
<master_item> <master_item>
@ -891,7 +822,7 @@
</master_item> </master_item>
<triggers> <triggers>
<trigger> <trigger>
<expression>{avg(900)}&gt;4*{avg(24h)}</expression> <expression>{avg(1h)}&gt;10*{avg(24h)}</expression>
<name>More MySQL queries than usual</name> <name>More MySQL queries than usual</name>
<priority>INFO</priority> <priority>INFO</priority>
</trigger> </trigger>
@ -938,7 +869,7 @@
<delay>0</delay> <delay>0</delay>
<history>30d</history> <history>30d</history>
<trends>1825d</trends> <trends>1825d</trends>
<units>!thread</units> <units>!conn</units>
<applications> <applications>
<application> <application>
<name>mysql</name> <name>mysql</name>
@ -1097,6 +1028,28 @@
</graph_items> </graph_items>
</graph> </graph>
<graph> <graph>
<name>MySQL : InnoDB fsyncs</name>
<type>STACKED</type>
<graph_items>
<graph_item>
<sortorder>1</sortorder>
<color>7E57C2</color>
<item>
<host>Template_App_MySQL</host>
<key>db.mysql[Innodb_data_fsyncs]</key>
</item>
</graph_item>
<graph_item>
<sortorder>2</sortorder>
<color>81D4FA</color>
<item>
<host>Template_App_MySQL</host>
<key>db.mysql[Innodb_os_log_fsyncs]</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>MySQL : Network</name> <name>MySQL : Network</name>
<graph_items> <graph_items>
<graph_item> <graph_item>

Loading…
Cancel
Save