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.