当前位置: 技术问答>linux和unix
nagios监控mysql超时,为什么???
来源: 互联网 发布时间:2017-02-11
本文导语: 监控mysql超时 SERVICE NOTIFICATION: nagiosadmin;********;check_mysql1;CRITICAL;notify-service-by-email;(Service Check Timed Out) services.cfg: define service{ use generic-service ; ...
监控mysql超时
SERVICE NOTIFICATION: nagiosadmin;********;check_mysql1;CRITICAL;notify-service-by-email;(Service Check Timed Out)
services.cfg:
define service{
use generic-service ; Name of service template to use
host_name **********
service_description check_mysql1
check_command check_db_mysql!nagios!nagios!3306
notifications_enabled 1
}
command.cfg
define command {
command_name check_db_mysql
command_line $USER1$/check_db_mysql.pl --host $HOSTADDRESS$ --user $ARG1$ --password $ARG2$ --port $ARG3$
}
SERVICE NOTIFICATION: nagiosadmin;********;check_mysql1;CRITICAL;notify-service-by-email;(Service Check Timed Out)
services.cfg:
define service{
use generic-service ; Name of service template to use
host_name **********
service_description check_mysql1
check_command check_db_mysql!nagios!nagios!3306
notifications_enabled 1
}
command.cfg
define command {
command_name check_db_mysql
command_line $USER1$/check_db_mysql.pl --host $HOSTADDRESS$ --user $ARG1$ --password $ARG2$ --port $ARG3$
}
|
你能ping通192.168.230.2吗?
你暂时关闭一下防火墙 再连接一次?
你的check_db_mysql.pl是不是有问题?手动登陆一次mysql试试?
你暂时关闭一下防火墙 再连接一次?
你的check_db_mysql.pl是不是有问题?手动登陆一次mysql试试?