- 論壇徽章:
- 0
|
自己在虛擬機(jī)上配置nagios,添加了2個(gè)服務(wù),check_load及check_disk_sda2,為什么狀態(tài)顯示為CRITICAL?
1.jpg (170.93 KB, 下載次數(shù): 20)
下載附件
2014-12-09 17:27 上傳
日志:/var/log/nagios/nagios.log
[1418116195] SERVICE ALERT: 192.168.12.120;check_load;CRITICAL;HARD;5;(Return code of 255 is out of bounds)
[1418116195] SERVICE NOTIFICATION: nagiosadmin;192.168.12.120;check_load;CRITICAL;notify-service-by-email;(Return code of 255 is out of bounds)
[1418116255] Warning: Return code of 255 for check of service 'check_disk_sda2' on host '192.168.12.120' was out of bounds.
[1418116255] Warning: Return code of 255 for check of service 'check_load' on host '192.168.12.120' was out of bounds.
[1418116315] Warning: Return code of 255 for check of service 'check_disk_sda2' on host '192.168.12.120' was out of bounds.
[1418116315] Warning: Return code of 255 for check of service 'check_load' on host '192.168.12.120' was out of bounds.
[1418116375] Warning: Return code of 255 for check of service 'check_disk_sda2' on host '192.168.12.120' was out of bounds.
[1418116375] Warning: Return code of 255 for check of service 'check_load' on host '192.168.12.120' was out of bounds.
[1418116435] Warning: Return code of 255 for check of service 'check_disk_sda2' on host '192.168.12.120' was out of bounds.
[1418116435] Warning: Return code of 255 for check of service 'check_load' on host '192.168.12.120' was out of bounds.
[1418116495] Warning: Return code of 255 for check of service 'check_disk_sda2' on host '192.168.12.120' was out of bounds.
[1418116495] 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
}
求解答。謝謝! |
|