当前位置:网站首页>zabbix_ Get test database failed
zabbix_ Get test database failed
2022-07-07 05:44:00 【Know the source and know the destination】
Environmental Science
[email protected]:zabbix#cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
mysql> select version();
+-------------------------+
| version() |
+-------------------------+
| 5.7.38-0ubuntu0.18.04.1 |
+-------------------------+
1 row in set (0.00 sec)
[email protected]:zabbix_server#sbin/zabbix_server -V
zabbix_server (Zabbix) 4.0.42
Revision f5370d9acb1 28 June 2022, compilation time: Jul 3 2022 13:46:14
Copyright (C) 2022 Zabbix SIA
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it according to
the license. There is NO WARRANTY, to the extent permitted by law.
describe
In the configuration zabbix Customize the monitoring script to monitor from the database ,
The custom script runs normally locally , stay zabbis server Upper use zabbix_get An error occurs when ordering
[email protected]:bin#/apps/zabbix_server/bin/zabbix_get -s 10.0.0.84 -p 10050 -k "mysql_status[master_slave_check]"
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
100
Script , There is no problem with monitoring items .
reason
MySQL To enable the auth_socket plugin Plug in .
auth_socket plugin Socket plug-in checks socket user name ( Operating system user name ) Whether it is the same as that specified by the client program for the server MySQL The user name matches . If the names don't match , The plug-in will check whether the socket user name authentication_string And mysql.user System table rows Of In the column The specified name matches . If I find a match , The plug-in allows connection .
verification
[email protected]:zabbix#mysql -uroot -e 'select user,host,plugin from mysql.user;'
+------------------+-----------+-----------------------+
| user | host | plugin |
+------------------+-----------+-----------------------+
| root | localhost | auth_socket |
| mysql.session | localhost | mysql_native_password |
| mysql.sys | localhost | mysql_native_password |
| debian-sys-maint | localhost | mysql_native_password |
| zabbix | 10.0.0.% | mysql_native_password |
solve
modify root The password authentication plug-in of the user is mysql_native_password
mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> update user set plugin='mysql_native_password' where user='root';
Query OK, 1 row affected (0.00 sec)
Rows matched: 2 Changed: 1 Warnings: 0
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> select user,host,plugin from user;
+------------------+-----------+-----------------------+
| user | host | plugin |
+------------------+-----------+-----------------------+
| root | localhost | mysql_native_password |
stay zabbix_server To test
[email protected]:bin#/apps/zabbix_server/bin/zabbix_get -s 10.0.0.84 -p 10050 -k "mysql_status[master_slave_check]"
50
边栏推荐
- Make web content editable
- The year of the tiger is coming. Come and make a wish. I heard that the wish will come true
- Dj-zbs2 leakage relay
- 纪念下,我从CSDN搬家到博客园啦!
- Differences and introduction of cluster, distributed and microservice
- The navigation bar changes colors according to the route
- 论文阅读【Open-book Video Captioning with Retrieve-Copy-Generate Network】
- I didn't know it until I graduated -- the principle of HowNet duplication check and examples of weight reduction
- Leakage relay jelr-250fg
- DOM node object + time node comprehensive case
猜你喜欢

消息队列:如何确保消息不会丢失

I didn't know it until I graduated -- the principle of HowNet duplication check and examples of weight reduction

不同网段之间实现GDB远程调试功能

What are the common message queues?
![Paper reading [MM21 pre training for video understanding challenge:video captioning with pre training techniqu]](/img/9c/1f031400f0e201df47bd51547ff73f.png)
Paper reading [MM21 pre training for video understanding challenge:video captioning with pre training techniqu]

Unity keeps the camera behind and above the player

消息队列:消息积压如何处理?

论文阅读【Semantic Tag Augmented XlanV Model for Video Captioning】

论文阅读【Open-book Video Captioning with Retrieve-Copy-Generate Network】

English语法_名词 - 所有格
随机推荐
Differences and introduction of cluster, distributed and microservice
集群、分布式、微服务的区别和介绍
消息队列:重复消息如何处理?
爬虫练习题(三)
JVM (19) -- bytecode and class loading (4) -- talk about class loader again
5阶多项式轨迹
Common skills and understanding of SQL optimization
分布式事务解决方案之2PC
C nullable type
R语言【逻辑控制】【数学运算】
High voltage leakage relay bld-20
ssm框架的简单案例
数据中心为什么需要一套基础设施可视化管理系统
JVM the truth you need to know
Web Authentication API兼容版本信息
K6el-100 leakage relay
Message queue: how to deal with message backlog?
SQLSTATE[HY000][1130] Host ‘host. docker. internal‘ is not allowed to connect to this MySQL server
Educational Codeforces Round 22 B. The Golden Age
微信小程序蓝牙连接硬件设备并进行通讯,小程序蓝牙因距离异常断开自动重连,js实现crc校验位