Page 1 of 1
Error: Contactgroup 'linux-servers' is not defined anywhere
Posted: Mon Oct 03, 2016 6:20 am
by kellyangell
Hello
My nagios server was working perfectly , not sure what happened now when i try to reload i get the following error
Read main config file okay...
Error: Contactgroup 'linux-servers' is not defined anywhere
Error: Could not add contactgroup 'linux-servers' to host (config file '/usr/local/nagios/etc/servers/iceINT.cfg', starting on line 1)
Error processing object config files!
I can't find the problem i have checked the conf so many times its driving me mad , please help
Re: Error: Contactgroup 'linux-servers' is not defined anywh
Posted: Mon Oct 03, 2016 1:08 pm
by dwhitfield
What version of Core are you running, and what is your operating system? This will help us determine commands and file locations to help fix your issue.
Re: Error: Contactgroup 'linux-servers' is not defined anywh
Posted: Mon Oct 03, 2016 1:59 pm
by bwallace
In addition to the above suggestion, did you run through the steps outlined this KB doc?
https://support.nagios.com/kb/article.php?id=128
One thing to quickly check, see if there are multiple Nagios processes running, as this will cause an array of problems.
run this cmd on your nagios server:
ps - aef | grep nagios.cfg
* Look for multiple parent (PPID) processes. The Nagios process forks itself to run checks therefore subprocesses are normal. The nagios user should probably be the only owner of the nagios process. If in any doubt post the output here.
If there are multiple Nagios processes running, run these commands to resolve:
Code: Select all
service nagios stop
killall -9 nagios
service nagios start
Also, post the /usr/local/nagios/etc/servers/iceINT.cfg file (conceal IP add's, etc)for us to review - thanks.
Re: Error: Contactgroup 'linux-servers' is not defined anywh
Posted: Mon Oct 03, 2016 2:01 pm
by lmiltchev
Can you post the "/usr/local/nagios/etc/servers/iceINT.cfg" config?
Also, run the following commands, and show the output:
Code: Select all
grep -R "linux-servers" /usr/local/nagios/etc/
grep "/usr/local/nagios/etc/servers" /usr/local/nagios/etc/nagios.cfg
Re: Error: Contactgroup 'linux-servers' is not defined anywh
Posted: Tue Oct 04, 2016 2:56 am
by kellyangell
Thanks for your response, i am running ubunutu and core version 4.1 enfact i read on your forum another similar problem and it said to either define the contact group or remove all references to that.
this seemed to work and i was able to reload the nagios daemon.
thanks for your help, I'm sure ill be in touch again soon.
kelly
Re: Error: Contactgroup 'linux-servers' is not defined anywh
Posted: Tue Oct 04, 2016 11:15 am
by tmcdonald
Great! Is it alright if we close this thread now?