Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
mariadb
Commits
3605865d
Commit
3605865d
authored
Feb 24, 2025
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zabbix agent needs to use root user to access MySQL
parent
bee76b0a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
Makefile
Makefile
+7
-7
No files found.
Makefile
View file @
3605865d
...
@@ -55,13 +55,13 @@ all: client-cnf mysql-clients-cnf server-cnf mariadb-config
...
@@ -55,13 +55,13 @@ all: client-cnf mysql-clients-cnf server-cnf mariadb-config
install
-v
-Dm644
mysqlchk@.service
/lib/systemd/system/mysqlchk@.service
install
-v
-Dm644
mysqlchk@.service
/lib/systemd/system/mysqlchk@.service
systemctl
enable
mysqlchk.socket
systemctl
enable
mysqlchk.socket
mysql_install_db
--basedir
=
/usr
--user
=
mysql
--skip-test-db
--innodb-log-file-size
=
32M
mysql_install_db
--basedir
=
/usr
--user
=
mysql
--skip-test-db
--innodb-log-file-size
=
32M
sed
-e
'/^UserParameter=device\.product.*/a UserParameter=mysql.slave_status[*], mysql -h"$$1" -P"$$2" -sNX -e "show slave status"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=device\.product.*/a UserParameter=mysql.slave_status[*], mysql -
u root -
h"$$1" -P"$$2" -sNX -e "show slave status"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=device\.product.*/a UserParameter=mysql.replication.discovery[*], mysql -h"$$1" -P"$$2" -sNX -e "show slave status"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=device\.product.*/a UserParameter=mysql.replication.discovery[*], mysql -
u root -
h"$$1" -P"$$2" -sNX -e "show slave status"'
-i
/etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=device\.product.*/a UserParameter=mysql.dbsize[*], mysql -h"$$1" -P"$$2" -sN -e "SELECT COALESCE(SUM(DATA_LENGTH + INDEX_LENGTH),0) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='
\
''
$$3
'\''
"' -i /etc/zabbix_agentd.conf
sed
-e
'/^UserParameter=device\.product.*/a UserParameter=mysql.dbsize[*], mysql -
u root -
h"$$1" -P"$$2" -sN -e "SELECT COALESCE(SUM(DATA_LENGTH + INDEX_LENGTH),0) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='
\
''
$$3
'\''
"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=device\.product.*/a UserParameter=mysql.db.discovery[*], mysql -h"
$$1
" -P"
$$2
" -sN -e "
show
databases
"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=device\.product.*/a UserParameter=mysql.db.discovery[*], mysql -
u root -
h"
$$1
" -P"
$$2
" -sN -e "
show
databases
"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=device\.product.*/a UserParameter=mysql.version[*], mysqladmin -s -h"
$$1
" -P"
$$2
" version' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=device\.product.*/a UserParameter=mysql.version[*], mysqladmin -
u root -
s -h"
$$1
" -P"
$$2
" version' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=device\.product.*/a UserParameter=mysql.get_status_variables[*], mysql -h"
$$1
" -P"
$$2
" -sNX -e "
show
global
status
"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=device\.product.*/a UserParameter=mysql.get_status_variables[*], mysql -
u root -
h"
$$1
" -P"
$$2
" -sNX -e "
show
global
status
"' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=device\.product.*/a UserParameter=mysql.ping[*], mysqladmin -h"
$$1
" -P"
$$2
" ping' -i /etc/zabbix_agentd.conf
sed -e '/^UserParameter=device\.product.*/a UserParameter=mysql.ping[*], mysqladmin -
u root -
h"
$$1
" -P"
$$2
" ping' -i /etc/zabbix_agentd.conf
rm -rf mariadb-10.5.11
rm -rf mariadb-10.5.11
swapoff swap
swapoff swap
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment