Error: Could not expand members specified in servicegroup
Posted: Thu Sep 13, 2018 7:02 am
Hello All,
i'm having issues adding a servicegroup to nagios core 4.4.2, can someone please point me in the right direction as to why this is no longer working in 4.4.2?
define servicegroup {
servicegroup_name switches
alias switches
members server1, server2, server3, server4, server5
}
define service{
use switches
host_name server1, server2, server3, server4, server5
service_description Interface_Bandwidth
check_command cisco_interface! blah blah
}
Error: Could not find a service matching host name 'server1' and description 'server2' (config file '/path/to/config/servicegroups.cfg', starting on line 1)
Error: Could not expand members specified in servicegroup 'swicthes' (config file ''/path/to/config/servicegroups.cfg'', starting at line 1)
i'm having issues adding a servicegroup to nagios core 4.4.2, can someone please point me in the right direction as to why this is no longer working in 4.4.2?
define servicegroup {
servicegroup_name switches
alias switches
members server1, server2, server3, server4, server5
}
define service{
use switches
host_name server1, server2, server3, server4, server5
service_description Interface_Bandwidth
check_command cisco_interface! blah blah
}
Error: Could not find a service matching host name 'server1' and description 'server2' (config file '/path/to/config/servicegroups.cfg', starting on line 1)
Error: Could not expand members specified in servicegroup 'swicthes' (config file ''/path/to/config/servicegroups.cfg'', starting at line 1)