当前位置:网站首页>Mysql 监控2
Mysql 监控2
2022-06-30 01:19:00 【franket】
尝试运行一下状态收集脚本
[[email protected] scripts]# /var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh gg
/var/lib/zabbix/percona/scripts/get_mysql_stats_wrapper.sh: line 35: /usr/bin/php: No such file or directory
ERROR: run the command manually to investigate the problem: /usr/bin/php -q /var/lib/zabbix/percona/scripts/ss_get_mysql_stats.php --host localhost --items gg
[[email protected] scripts]# 安装依赖包
这里提示我们系统里没有安装 php ,我们给它装上,同时我们也装上 php-mysql ,它提供了php 连接 mysql 需要的DBI
[[email protected] scripts]# yum install php php-mysql
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirrors.pubyun.com
* extras: mirrors.yun-idc.com
* updates: mirrors.pubyun.com
Resolving Dependencies
--> Running transaction check
---> Package php.x86_64 0:5.3.3-46.el6_6 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.3-46.el6_6 for package: php-5.3.3-46.el6_6.x86_64
--> Processing Dependency: php-cli(x86-64) = 5.3.3-46.el6_6 for package: php-5.3.3-46.el6_6.x86_64
---> Package php-mysql.x86_64 0:5.3.3-46.el6_6 will be installed
--> Processing Dependency: php-pdo(x86-64) for package: php-mysql-5.3.3-46.el6_6.x86_64
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package: php-mysql-5.3.3-46.el6_6.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: php-mysql-5.3.3-46.el6_6.x86_64
--> Running transaction check
---> Package Percona-Server-shared-51.x86_64 0:5.1.73-rel14.12.624.rhel6 will be installed
---> Package php-cli.x86_64 0:5.3.3-46.el6_6 will be installed
---> Package php-common.x86_64 0:5.3.3-46.el6_6 will be installed
---> Package php-pdo.x86_64 0:5.3.3-46.el6_6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================
Package Arch Version Repository Size
========================================================================================================================
Installing:
php x86_64 5.3.3-46.el6_6 updates 1.1 M
php-mysql x86_64 5.3.3-46.el6_6 updates 86 k
Installing for dependencies:
Percona-Server-shared-51 x86_64 5.1.73-rel14.12.624.rhel6 percona-release-x86_64 2.1 M
php-cli x86_64 5.3.3-46.el6_6 updates 2.2 M
php-common x86_64 5.3.3-46.el6_6 updates 529 k
php-pdo x86_64 5.3.3-46.el6_6 updates 79 k
Transaction Summary
========================================================================================================================
Install 6 Package(s)
Total download size: 6.1 M
Installed size: 19 M
Is this ok [y/N]: y
Downloading Packages:
...
...
Installed:
php.x86_64 0:5.3.3-46.el6_6 php-mysql.x86_64 0:5.3.3-46.el6_6
Dependency Installed:
Percona-Server-shared-51.x86_64 0:5.1.73-rel14.12.624.rhel6 php-cli.x86_64 0:5.3.3-46.el6_6
php-common.x86_64 0:5.3.3-46.el6_6 php-pdo.x86_64 0:5.3.3-46.el6_6
Complete!
[[email protected] scripts]#边栏推荐
- [Simulation Proteus] détection de port 8 bits 8 touches indépendantes
- Cub school learning: manual query and ADC in-depth use
- The unity editor randomly generates objects. After changing the scene, the problem of object loss is solved
- 【Proteus仿真】8位端口检测8独立按键
- [mrctf2020]ezpop-1 | PHP serialization
- Stringredistemplate disconnects and the value disappears
- HC32M0+ GPIO
- Text classification using huggingface
- Kwai reached out to the "supply side" to find the "source" of live broadcast e-commerce?
- Clean, talk, bring children, and get rid of the label of "artificial mental retardation" for the sweeper
猜你喜欢
![[deep learning compilation] operator compilation IR conversion](/img/10/bdcabde772e65eebc93f870f597524.png)
[deep learning compilation] operator compilation IR conversion

Seata 與三大平臺攜手編程之夏,百萬獎金等你來拿

Questions about database: database attachment

CSV文件格式——方便好用个头最小的数据传递方式

【论文写作】英文论文写作指南

Equivalence class partition method for test case design method

Outsourcing work for three years, waste a step confused

Common settings in idea

MES管理系统功能模块之质量管理

Using tsne to visualize the similarity of different sentences
随机推荐
How to view the size of all files in a folder?
If the amount exceeds 6 digits after the decimal point, only 6 digits will be reserved, and if it is less than 6 digits, it will remain the same - Basic accumulation
Three text to speech artifacts, each of which is very practical
【three.js】WEB3D初次体验
I learned database at station B (V): DQL exercise
Wechat applet - requestsubscribemessage:fail can only be invoked by user tap gesture
R language linear regression model fitting diagnosis outliers analysis of domestic gas consumption and calorie examples with self-test questions
The listing of Symantec electronic sprint technology innovation board: it plans to raise 623million yuan, with a total of 64 patent applications
How latex enters a matrix
Sentinel source code analysis Part 8 - core process - sphu Entry current limiting execution
[mrctf2020]ezpop-1 | PHP serialization
[concurrent programming] if you use channel to solve concurrency problems?
2022-06-29: x = {a, B, C, D}, y = {e, F, G, H}, the length of the two small arrays X and Y is 4. If yes: a + e = B + F = C + G = D + H
How to refuse the useless final review? Ape tutoring: it is important to find a suitable review method
传统微服务框架如何无缝过渡到服务网格 ASM
c语言选择,循环概述
Some thoughts on small program subcontracting and verification of uiniapp subcontracting optimization logic
Ansible ad-hoc 临时命令
Cub school learning: manual query and ADC in-depth use
Exercise "product": self made colorful Prompt string display tool (for loop and if condition judgment)