nagios监控的服务状态为什么是CRITICAL
自己在虚拟机上配置nagios,添加了2个服务,check_load及check_disk_sda2,为什么状态显示为CRITICAL?日志:/var/log/nagios/nagios.log
SERVICE ALERT: 192.168.12.120;check_load;CRITICAL;HARD;5;(Return code of 255 is out of bounds)
SERVICE NOTIFICATION: nagiosadmin;192.168.12.120;check_load;CRITICAL;notify-service-by-email;(Return code of 255 is out of bounds)
Warning: Return code of 255 for check of service 'check_disk_sda2' on host '192.168.12.120' was out of bounds.
Warning: Return code of 255 for check of service 'check_load' on host '192.168.12.120' was out of bounds.
Warning: Return code of 255 for check of service 'check_disk_sda2' on host '192.168.12.120' was out of bounds.
Warning: Return code of 255 for check of service 'check_load' on host '192.168.12.120' was out of bounds.
Warning: Return code of 255 for check of service 'check_disk_sda2' on host '192.168.12.120' was out of bounds.
Warning: Return code of 255 for check of service 'check_load' on host '192.168.12.120' was out of bounds.
Warning: Return code of 255 for check of service 'check_disk_sda2' on host '192.168.12.120' was out of bounds.
Warning: Return code of 255 for check of service 'check_load' on host '192.168.12.120' was out of bounds.
Warning: Return code of 255 for check of service 'check_disk_sda2' on host '192.168.12.120' was out of bounds.
Warning: Return code of 255 for check of service 'check_load' on host '192.168.12.120' was out of bounds.
添加的配置:/etc/nagios/conf.d/192.168.12.120.cfg
define host{
use linux-server
host_name 192.168.12.120
alias 120
address 192.168.12.120
}
define service{
use generic-service
host_name 192.168.12.120
service_description check_http
check_command check_http
max_check_attempts 5
normal_check_interval 1
}
define service{
use generic-service
host_name 192.168.12.120
service_description check_load
check_command check_nrpe!check_load
max_check_attempts 5
normal_check_interval 1
}
define service{
use generic-service
host_name 192.168.12.120
service_description check_disk_sda2
check_command check_nrpe!check_sda2
max_check_attempts 5
normal_check_interval 1
}
求解答。谢谢! 现在Ok,是我这边网络问题
页:
[1]