nagios监控mysql超时,为什么???
监控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$
         }
------解决方案--------------------
你能ping通192.168.230.2吗?
你暂时关闭一下防火墙 再连接一次?
你的check_db_mysql.pl是不是有问题?手动登陆一次mysql试试?