diff --git a/zabbix_templates/Template_App_MySQL.xml b/zabbix_templates/Template_App_MySQL.xml index f863968..19faf01 100644 --- a/zabbix_templates/Template_App_MySQL.xml +++ b/zabbix_templates/Template_App_MySQL.xml @@ -1,7 +1,7 @@ 5.0 - 2020-08-31T13:00:19Z + 2020-08-31T15:37:35Z Templates @@ -125,15 +125,6 @@ db.mysql[{$MYSQL_HOST},{$MYSQL_PORT},{$MYSQL_USER},{$MYSQL_PASSWORD},{$MYSQL_DEFAULTS},all] - - - {change()}=1 - NONE - MySQL users modified - WARNING - YES - - MySQL: $1 @@ -245,6 +236,114 @@ + MySQL: ALTER USER commands + DEPENDENT + db.mysql[Com_alter_user] + 0 + 30d + 1825d + !qps + + + mysql + + + + + JSONPATH + $.Com_alter_user + + + CHANGE_PER_SECOND + + + + + db.mysql[{$MYSQL_HOST},{$MYSQL_PORT},{$MYSQL_USER},{$MYSQL_PASSWORD},{$MYSQL_DEFAULTS},all] + + + + MySQL: BEGIN commands + DEPENDENT + db.mysql[Com_begin] + 0 + 30d + 1825d + !qps + + + mysql + + + + + JSONPATH + $.Com_begin + + + CHANGE_PER_SECOND + + + + + db.mysql[{$MYSQL_HOST},{$MYSQL_PORT},{$MYSQL_USER},{$MYSQL_PASSWORD},{$MYSQL_DEFAULTS},all] + + + + MySQL: COMMIT commands + DEPENDENT + db.mysql[Com_commit] + 0 + 30d + 1825d + !qps + + + mysql + + + + + JSONPATH + $.Com_commit + + + CHANGE_PER_SECOND + + + + + db.mysql[{$MYSQL_HOST},{$MYSQL_PORT},{$MYSQL_USER},{$MYSQL_PASSWORD},{$MYSQL_DEFAULTS},all] + + + + MySQL: CREATE USER commands + DEPENDENT + db.mysql[Com_create_user] + 0 + 30d + 1825d + !qps + + + mysql + + + + + JSONPATH + $.Com_create_user + + + CHANGE_PER_SECOND + + + + + db.mysql[{$MYSQL_HOST},{$MYSQL_PORT},{$MYSQL_USER},{$MYSQL_PASSWORD},{$MYSQL_DEFAULTS},all] + + + MySQL: DELETE commands DEPENDENT db.mysql[Com_delete] @@ -326,6 +425,33 @@ + MySQL: ROLLBACK commands + DEPENDENT + db.mysql[Com_rollback] + 0 + 30d + 1825d + !qps + + + mysql + + + + + JSONPATH + $.Com_rollback + + + CHANGE_PER_SECOND + + + + + db.mysql[{$MYSQL_HOST},{$MYSQL_PORT},{$MYSQL_USER},{$MYSQL_PASSWORD},{$MYSQL_DEFAULTS},all] + + + MySQL: SELECT commands DEPENDENT db.mysql[Com_select] @@ -937,22 +1063,17 @@ + + + {Template_App_MySQL:db.mysql[Acl_users].change()}=1 or {Template_App_MySQL:db.mysql[Com_alter_user].last()}>0 or {Template_App_MySQL:db.mysql[Com_create_user].last()}>0 + NONE + MySQL users modified + WARNING + YES + + - MySQL : CPU Time - - - 1 - GRADIENT_LINE - F44336 - - Template_App_MySQL - db.mysql[Cpu_time] - - - - - MySQL : InnoDB buffer pool @@ -1004,46 +1125,70 @@ 1 - F63100 + C5E1A5 Template_App_MySQL - db.mysql[Com_prepare_sql] + db.mysql[Com_select] 2 - 1A7C11 + BBDEFB Template_App_MySQL - db.mysql[Com_delete] + db.mysql[Com_insert] 3 - C5E1A5 + FFE082 Template_App_MySQL - db.mysql[Com_select] + db.mysql[Com_update] 4 - FFE082 + 0097A7 Template_App_MySQL - db.mysql[Com_update] + db.mysql[Com_begin] 5 - BBDEFB + B0BEC5 Template_App_MySQL - db.mysql[Com_insert] + db.mysql[Com_commit] 6 + F230E0 + + Template_App_MySQL + db.mysql[Com_rollback] + + + + 7 + F63100 + + Template_App_MySQL + db.mysql[Com_prepare_sql] + + + + 8 + 1A7C11 + + Template_App_MySQL + db.mysql[Com_delete] + + + + 9 6C59DC Template_App_MySQL @@ -1053,7 +1198,7 @@ - MySQL : slow and total queries + MySQL : Slow and total queries 1