Service groups issue
Posted: Wed Feb 22, 2017 10:42 am
I'm running Nagios Core 4.2.2.
I have a servicegroups.cfg file in the /usr/local/nagios/etc/objects folder which reads as follows:
However, once I add the following to my service definitions
I get these errors when I try to restart Nagios.
Error: Could not find any servicegroup matching 'NETWORKS'
Error: Failed to process servicegroup names for service 'Network Load' on host 'dev'
If I remove the line from my service definition for 'dev', then I get the same error for one of the others. So it looks as if the servicegroups.cfg file is either not being read, or it has a syntax error of some description.
Can anyone help me resolve this please?
I have a servicegroups.cfg file in the /usr/local/nagios/etc/objects folder which reads as follows:
Code: Select all
define servicegroup {
servicegroup_name NETWORKS
alias Network Loads
members dev,Network Load,aspcon,Network Load,aspent,Network Load
}Code: Select all
servicegroups NETWORKSError: Could not find any servicegroup matching 'NETWORKS'
Error: Failed to process servicegroup names for service 'Network Load' on host 'dev'
If I remove the line from my service definition for 'dev', then I get the same error for one of the others. So it looks as if the servicegroups.cfg file is either not being read, or it has a syntax error of some description.
Can anyone help me resolve this please?