You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Service MySQL: merge some changes already present in Nginx, php-fpm:
- Items:
- PROC::mysqld
- change hardcoded MySQL process name to the macro {$SVC_MYSQL_PROC}
- add "proceses" missing unit
- "version" add "Discard unchanged with hartbeat" filter which allows
change sampling rate from 1d to 5min with HB preriod 7d
- Triggers:
- "SYS::processes::{$SVC_MYSQL_PROC} is not running" severity changed
to disaster
- Add use md markups in template description
Copy file name to clipboardExpand all lines: README.md
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,17 @@ This repository provides a set of templates which offers the alternative set of
101
101
- Macro ```{$HTTP_SERVICE_PROCESS}```: has bee nadded to allow easy use it on Debian/Ubuntu. Default value is ```http```. On Ubuntu/Debian that value needs to be changed to ```apache2```
102
102
- Triggers:
103
103
- rename ```SVC::Apache tcp/{$HTTP_SERVICE_PORT} is DOWN``` to ```NET::Apache tcp/{$HTTP_SERVICE_PORT} is DOWN```
104
+
-**Service MySQL**
105
+
- Items:
106
+
-```PROC::mysqld```
107
+
- change hardcoded MySQL process name to the macro ``{$SVC_MYSQL_PROC}```
108
+
- add missing "processes" unit
109
+
-```version``` add ```Discard unchanged with hartbeat``` filter which allows
110
+
change sampling rate from 1d to 5min with HB preriod 7d
111
+
- Triggers:
112
+
-```SYS::processes::{$SVC_MYSQL_PROC} is not running``` severity changed
113
+
to disaster
114
+
- Add use md markups in template description
104
115
-**Service Nginx**
105
116
- Macros:
106
117
- Rename ```{$NGINX_*}``` macros to ```{$SVC_NGINX_*}```
| {$SVC_MYSQL_CMD} | HOME=/var/lib/zabbix /usr/bin/mysql --login-path=monitoring -Nse | mysql command used in system.run[] keys |
9
+
| {$SVC_MYSQL_PROC} | mysqld | MySQL process name |
10
+
6
11
#### Notes:
7
-
- Tested on MySQL 5.7 and it not uses MySQL 5.6 backward compatibility. The
8
-
template requires to disable MySQL 5.6 backward compatibility and it will
9
-
raise alarm that show_compatibility_56 is OFF. To disable MySQL 5.6
10
-
backward compatibility best to add in my.cnf:
12
+
* Tested on MySQL 5.7 and it not designed to be uses with MySQL older than 5.7 backward compatibility so it can be used to monitor MySQL engine which in my.cnf has:
11
13
```
12
14
[mysqld]
13
-
show_compatibility_56=OFF
15
+
show_compatibility_56 = OFF
14
16
```
15
-
- By default this template is monitoring the engine working on localhost
16
-
- To be able to use this template on a host you need to setup a monitoring account with the proper privileges. To add such account you can use below queries:
17
+
My advice is even to disable show_compatibility_56 to not start by mistake use some older metrics which in next version of the MySQL no longer will be available as an option.
18
+
* By default this template is monitoring the engine working on localhost.
19
+
* To be able to use this template on a host you need to setup a monitoring account with the proper privileges.
20
+
* To add such account you can use below queries:
17
21
```
18
22
CREATE USER 'monitoring'@'localhost' IDENTIFIED BY 'monitoring';
19
23
GRANT SELECT, INDEX, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'monitoring'@'localhost';
| {$SVC_MYSQL_CMD} | HOME=/var/lib/zabbix /usr/bin/mysql --login-path=monitoring -Nse | mysql command used in system.run[] keys |
22
+
| {$SVC_MYSQL_PROC} | mysqld | MySQL process name |
23
+
19
24
#### Notes:
20
25
* Tested on MySQL 5.7 and it not designed to be uses with MySQL older than 5.7 backward compatibility so it can be used to monitor MySQL engine which in my.cnf has:
21
26
```
22
27
[mysqld]
23
28
show_compatibility_56 = OFF
24
29
```
25
30
My advice is even to disable show_compatibility_56 to not start by mistake use some older metrics which in next version of the MySQL no longer will be available as an option.
26
-
27
31
* By default this template is monitoring the engine working on localhost.
28
-
To be able to use this template on a host you need to setup a monitoring account with the proper privileges.
29
-
To add such account you can use below queries:
32
+
* To be able to use this template on a host you need to setup a monitoring account with the proper privileges.
33
+
* To add such account you can use below queries:
30
34
```
31
35
CREATE USER 'monitoring'@'localhost' IDENTIFIED BY 'monitoring';
32
36
GRANT SELECT, INDEX, SHOW DATABASES, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'monitoring'@'localhost';
0 commit comments