- 论坛徽章:
- 0
|
nagios-3.0.3.tar.gz
nagios-plugins-1.4.13.tar.gz
nrpe-2.12.tar.gz
设置了
contacts.cfg
email 13xxxxxxxx@139.com
a.cfg里面暂设这些
define host{
use linux-server
host_name a
alias a
address 192.168.0.44
}
define service{
use generic-service
host_name a
service_description HTTP
check_command check_http
max_check_attempts 3
normal_check_interval 10
retry_check_interval 2
}
define service{
use generic-service
host_name a
service_description load
check_command check_nrpe!check_load
}
define service{
use generic-service
host_name a
service_description SSH
check_command check_ssh
}
服务启动正常,/usr/local/nagios/libexec/check_nrpe -H 192.168.0.44 也正常
web界面登陆进去和看到httpd是红色的,因为我没看httpd进程,load显示是不确定,但是我在nrpe.cfg里面设置了
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
应该是取到load才对,而且一直没发邮件,因为是3.x版本的,网上的资料好像都是说只要设置contacts.cfg
email 13xxxxxxxx@139.com 就行了,不用加到a.cfg里面 请问下是不是这样,还有怎么让它发邮件 |
|