都是在服务器上修改配置文件,
1。localhost.cfg
vi /usr/local/nagios/etc/objects/localhost.cfg
define service{
use local-service ; Name of service template to use
host_name localhost
service_description SSH
check_command check_ssh! -p 65508!172.16.10.3
notifications_enabled 0
}
2。被监控的服务器的配置文件
vi /usr/local/nagios/etc/servers/other.cfg
define service{
use generic-service
host_name other
service_description SSH
# check_command check_nrpe!check_ssh
check_command check_ssh! -p 65508!172.16.10.8
}
阅读(2957) | 评论(0) | 转发(0) |