ICINGA2 Check_mysql_health Plug-in
https://labs.consol.de/nagios/check_mysql_health/
# tar ZXFV check_mysql_health-2.2.2.tar.gz
# CD check_mysql_health-2.2.2
#./configure
# make
# make Install
# cp-rv/usr/local/nagios/libexec/check_mysql_health/usr/lib64/nagios/plugins/
# chmod +x/usr/lib64/nagios/plugins/check_mysql_health
Compiled generated check_mysql_health can be used directly to other servers, without the need to compile the build
Number of crawl MySQL connections:
#/usr/lib64/nagios/plugins/check_mysql_health--hostname 127.0.0.1--username iccheck--password xxxxxx--mode threads-connected--warning 2000--critical
Write to/etc/nagios/nrpe.cfg
# vi/etc/nagios/nrpe.cfg
Command[check_mysql_c]=sudo/usr/lib64/nagios/plugins/check_mysql_health--hostname 127.0.0.1--username Iccheck-- Password xxxxx--mode threads-connected--warning 2000--critical
: Wq
# Service Nrpe Restart (Ubuntu is Service nagios-npre-server restart)
ICINGA2 configuration slightly
This article is from the "Linux" blog, so be sure to keep this source http://yangzhiming.blog.51cto.com/4849999/1977836
ICINGA2 check_mysql_health Plug-in