我是在CentOS服务器上使用Nagios,我只想监控本地主机。
我已经定义了我的服务如下:
define service{
host_name localhost
service_description Site1Service
check_command check_http-site1
use generic-service
notification_interval 1440
}
并且
在commands.cfg中有这样的命令
define command{
command_name check_http-site1
command_line /usr/lib/nagios/plugins/check_http -H site1.dreaddomain.com
}
我在那里遇到了关键错误。因此,我想从命令行检查该服务是否正在运行。
/usr/lib64/nagios/plugins
目录下。 - jgritty