-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrant.sql
More file actions
45 lines (30 loc) · 865 Bytes
/
grant.sql
File metadata and controls
45 lines (30 loc) · 865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
-- Execute grants in context of zabbix database. Usually named 'zabbix'
GRANT SELECT (itemid, flags, hostid, name, delay, history, type, master_itemid, templateid)
ON items
TO 'zabbix_db_auditor'@'%';
GRANT SELECT (hostid, name, status, flags)
ON hosts
TO 'zabbix_db_auditor'@'%';
GRANT SELECT
ON hosts_groups
TO 'zabbix_db_auditor'@'%';
GRANT SELECT
ON hstgrp
TO 'zabbix_db_auditor'@'%';
GRANT SELECT ON history
TO 'zabbix_db_auditor'@'%';
GRANT SELECT ON history_uint
TO 'zabbix_db_auditor'@'%';
GRANT SELECT ON history_str
TO 'zabbix_db_auditor'@'%';
GRANT SELECT ON history_log
TO 'zabbix_db_auditor'@'%';
GRANT SELECT ON history_text
TO 'zabbix_db_auditor'@'%';
GRANT SELECT ON trends
TO 'zabbix_db_auditor'@'%';
GRANT SELECT ON trends_uint
TO 'zabbix_db_auditor'@'%';
GRANT SELECT ON history_bin
TO 'zabbix_db_auditor'@'%';
FLUSH PRIVILEGES;