Nagios monitoring mysql Server: Method: regularly select an idle database using the plug-in: check_mysql problem: After nagios is installed, what should I do if this plug-in is not available? Solution: # yuminstallmysql-devel reinstall nagios-plugins plug-in package [root@svr4nagios-plugins-1.4.15] #. c nagios monitoring mysql Server:
Method: periodically select an idle Database
Plugin: check_mysql
Q: What should I do if I find that this plug-in is not available after nagios is installed?
Solution:
# Yum install mysql-devel
Reinstall the nagios-plugins plug-in package
[Root @ svr4 nagios-plugins-1.4.15] #./configure
-- With-apt-get-command:
--- Ping6-command:/bin/ping6-n-U-w % d-c % d % s
-- With-ping-command:/bin/ping-n-U-w % d-c % d % s
With-ipv6: yes
-- With-mysql:/usr/bin/mysql_config
-- With-openssl: yes
-- With-gnut Ls: No
-- Enable- ExTrA-opts: no
-- With-perl:/usr/bin/perl
-- Enable-perl-mo DuLes: no
-- With-cgiurl:/nagios/cgi-bin
-- With-trust Ed-Path:/bin:/sbin:/usr/bin:/usr/sbin
-- Enable-libtap: no
[Root @ svr4 nagios-plugins-1.4.15] # make & make install
Result: this plug-in is available!
[Root @ svr4 nagios-plugins-1.4.15] # ll/usr/local/nagios/libexec/check_mysql *
-Rwxr-xr-x 1 root 124343 Aug 31/usr/local/nagios/libexec/check_mysql
-Rwxr-xr-x 1 root 120909 Aug 31/usr/local/nagios/libexec/check_mysql_query
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service