当前位置: 技术问答>linux和unix
nagios 配置nrpe 后启动不了了
来源: 互联网 发布时间:2017-04-23
本文导语: 部分配置文件 service.cfg define service{ use local-service host_name mysql service_description users check_command check_nrpe!check_users } define servicegroup{ servicegroup_name servergroup alias server-group members w...
部分配置文件 service.cfg
define service{
use local-service
host_name mysql
service_description users
check_command check_nrpe!check_users
}
define servicegroup{
servicegroup_name servergroup
alias server-group
members
web,PING,mysql,SSH,web,http,mysql,users
}
然后,我开始检验了
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
但是,总是报错:如下
Error: Invalid servicegroup object directive 'web,PING,mysql,SSH,web,http,mysql,users'.
Error: Could not add object property in file '/usr/local/nagios/etc/objects/services.cfg' on line 42.
错误位置就是标红的地方,但是,我看不出来这有什么错误呀。请求帮助。
define service{
use local-service
host_name mysql
service_description users
check_command check_nrpe!check_users
}
define servicegroup{
servicegroup_name servergroup
alias server-group
members
web,PING,mysql,SSH,web,http,mysql,users
}
然后,我开始检验了
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
但是,总是报错:如下
Error: Invalid servicegroup object directive 'web,PING,mysql,SSH,web,http,mysql,users'.
Error: Could not add object property in file '/usr/local/nagios/etc/objects/services.cfg' on line 42.
错误位置就是标红的地方,但是,我看不出来这有什么错误呀。请求帮助。
|
实践出真知。