Update Template_App_MySQL

tags/zabbix-agent-addons-0.2.124-1
Daniel Berteaud 4 years ago
parent 4b051b87e8
commit 6633658811
  1. 215
      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-31T13:00:19Z</date> <date>2020-08-31T15:37:35Z</date>
<groups> <groups>
<group> <group>
<name>Templates</name> <name>Templates</name>
@ -125,15 +125,6 @@
<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>
</master_item> </master_item>
<triggers>
<trigger>
<expression>{change()}=1</expression>
<recovery_mode>NONE</recovery_mode>
<name>MySQL users modified</name>
<priority>WARNING</priority>
<manual_close>YES</manual_close>
</trigger>
</triggers>
</item> </item>
<item> <item>
<name>MySQL: $1</name> <name>MySQL: $1</name>
@ -245,6 +236,114 @@
</master_item> </master_item>
</item> </item>
<item> <item>
<name>MySQL: ALTER USER commands</name>
<type>DEPENDENT</type>
<key>db.mysql[Com_alter_user]</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>$.Com_alter_user</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: BEGIN commands</name>
<type>DEPENDENT</type>
<key>db.mysql[Com_begin]</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>$.Com_begin</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: COMMIT commands</name>
<type>DEPENDENT</type>
<key>db.mysql[Com_commit]</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>$.Com_commit</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: CREATE USER commands</name>
<type>DEPENDENT</type>
<key>db.mysql[Com_create_user]</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>$.Com_create_user</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: DELETE commands</name> <name>MySQL: DELETE commands</name>
<type>DEPENDENT</type> <type>DEPENDENT</type>
<key>db.mysql[Com_delete]</key> <key>db.mysql[Com_delete]</key>
@ -326,6 +425,33 @@
</master_item> </master_item>
</item> </item>
<item> <item>
<name>MySQL: ROLLBACK commands</name>
<type>DEPENDENT</type>
<key>db.mysql[Com_rollback]</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>$.Com_rollback</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: SELECT commands</name> <name>MySQL: SELECT commands</name>
<type>DEPENDENT</type> <type>DEPENDENT</type>
<key>db.mysql[Com_select]</key> <key>db.mysql[Com_select]</key>
@ -937,22 +1063,17 @@
</macros> </macros>
</template> </template>
</templates> </templates>
<triggers>
<trigger>
<expression>{Template_App_MySQL:db.mysql[Acl_users].change()}=1 or {Template_App_MySQL:db.mysql[Com_alter_user].last()}&gt;0 or {Template_App_MySQL:db.mysql[Com_create_user].last()}&gt;0</expression>
<recovery_mode>NONE</recovery_mode>
<name>MySQL users modified</name>
<priority>WARNING</priority>
<manual_close>YES</manual_close>
</trigger>
</triggers>
<graphs> <graphs>
<graph> <graph>
<name>MySQL : CPU Time</name>
<graph_items>
<graph_item>
<sortorder>1</sortorder>
<drawtype>GRADIENT_LINE</drawtype>
<color>F44336</color>
<item>
<host>Template_App_MySQL</host>
<key>db.mysql[Cpu_time]</key>
</item>
</graph_item>
</graph_items>
</graph>
<graph>
<name>MySQL : InnoDB buffer pool</name> <name>MySQL : InnoDB buffer pool</name>
<graph_items> <graph_items>
<graph_item> <graph_item>
@ -1004,46 +1125,70 @@
<graph_items> <graph_items>
<graph_item> <graph_item>
<sortorder>1</sortorder> <sortorder>1</sortorder>
<color>F63100</color> <color>C5E1A5</color>
<item> <item>
<host>Template_App_MySQL</host> <host>Template_App_MySQL</host>
<key>db.mysql[Com_prepare_sql]</key> <key>db.mysql[Com_select]</key>
</item> </item>
</graph_item> </graph_item>
<graph_item> <graph_item>
<sortorder>2</sortorder> <sortorder>2</sortorder>
<color>1A7C11</color> <color>BBDEFB</color>
<item> <item>
<host>Template_App_MySQL</host> <host>Template_App_MySQL</host>
<key>db.mysql[Com_delete]</key> <key>db.mysql[Com_insert]</key>
</item> </item>
</graph_item> </graph_item>
<graph_item> <graph_item>
<sortorder>3</sortorder> <sortorder>3</sortorder>
<color>C5E1A5</color> <color>FFE082</color>
<item> <item>
<host>Template_App_MySQL</host> <host>Template_App_MySQL</host>
<key>db.mysql[Com_select]</key> <key>db.mysql[Com_update]</key>
</item> </item>
</graph_item> </graph_item>
<graph_item> <graph_item>
<sortorder>4</sortorder> <sortorder>4</sortorder>
<color>FFE082</color> <color>0097A7</color>
<item> <item>
<host>Template_App_MySQL</host> <host>Template_App_MySQL</host>
<key>db.mysql[Com_update]</key> <key>db.mysql[Com_begin]</key>
</item> </item>
</graph_item> </graph_item>
<graph_item> <graph_item>
<sortorder>5</sortorder> <sortorder>5</sortorder>
<color>BBDEFB</color> <color>B0BEC5</color>
<item> <item>
<host>Template_App_MySQL</host> <host>Template_App_MySQL</host>
<key>db.mysql[Com_insert]</key> <key>db.mysql[Com_commit]</key>
</item> </item>
</graph_item> </graph_item>
<graph_item> <graph_item>
<sortorder>6</sortorder> <sortorder>6</sortorder>
<color>F230E0</color>
<item>
<host>Template_App_MySQL</host>
<key>db.mysql[Com_rollback]</key>
</item>
</graph_item>
<graph_item>
<sortorder>7</sortorder>
<color>F63100</color>
<item>
<host>Template_App_MySQL</host>
<key>db.mysql[Com_prepare_sql]</key>
</item>
</graph_item>
<graph_item>
<sortorder>8</sortorder>
<color>1A7C11</color>
<item>
<host>Template_App_MySQL</host>
<key>db.mysql[Com_delete]</key>
</item>
</graph_item>
<graph_item>
<sortorder>9</sortorder>
<color>6C59DC</color> <color>6C59DC</color>
<item> <item>
<host>Template_App_MySQL</host> <host>Template_App_MySQL</host>
@ -1053,7 +1198,7 @@
</graph_items> </graph_items>
</graph> </graph>
<graph> <graph>
<name>MySQL : slow and total queries</name> <name>MySQL : Slow and total queries</name>
<graph_items> <graph_items>
<graph_item> <graph_item>
<sortorder>1</sortorder> <sortorder>1</sortorder>

Loading…
Cancel
Save