安裝nrpe-2.13.tar.gz nagios-plugins-1.4.15.tar.gz
vim commands.cfg
加入:
#vim'check_mysql' command definition
define command {
command_name check_mysql
command_line $USER1$/check_mysql -H $HOSTADDRESS$ -u nagios -d nagios
vim localhost.cfg (沒有采用自定配置檔案service.cgf這類的。我的是本機監控)
加入
define service{
use local-service ;Name of service template to use host_name 192.168.1.204
service_description MYSQL
check_command check_mysql
notifications_enabled 0
}