Page 1 of 1
Write Config Files Errors
Posted: Wed Nov 28, 2012 1:06 pm
by mcwhorts
So yesterday I was having some problems Nagios. I was poking around trying to fix them when I made a bigger problem as noted here
http://support.nagios.com/forum/viewtop ... =16&t=8430
We got that resolved so that I could get into Nagios but now when I try to do a "Write Config Files" under Tools, I get errors and I'm not sure how to fix them.
I'm also getting hosts that don't have the notifications enabled and it won't let me enable them from the GUI. Any help is appreciated.
profile.txt
Re: Write Config Files Errors
Posted: Wed Nov 28, 2012 1:21 pm
by lmiltchev
Run the Write Config Tool:
CCM->Write Config Files
click on the first 2 buttons (Write and Verify), copy and paste the errors that you are getting. Thanks!
Re: Write Config Files Errors
Posted: Wed Nov 28, 2012 1:27 pm
by mcwhorts
Here are the errors from the write and the check
Error: Could not find a service matching host name '
www.bigplanetusa.com' and description 'DNS IP Match' (config file '/usr/local/nagios/etc/servicegroups.cfg', starting on line 32)
Error: Could not expand member services specified in servicegroup (config file '/usr/local/nagios/etc/servicegroups.cfg', starting on line 32)
Error processing object config files!
Re: Write Config Files Errors
Posted: Wed Nov 28, 2012 2:44 pm
by lmiltchev
Is 'DNS IP Match' a member of a service group? Check this out, and remove it from the servicegroup via the CCM.
Re: Write Config Files Errors
Posted: Wed Nov 28, 2012 3:14 pm
by mcwhorts
I couldn't find anything that matches 'DNS IP Match' in CCM but I did look in '/usr/local/nagios/etc/servicegroups.cfg', starting on line 32 and found this
define servicegroup {
servicegroup_name Apache_ext_prod_US
alias Apache ext prod US
members www.bigplanet.com,DNS Resolution,www.bigplanetusa.com,DNS IP Match,www.forceforgood.org,DNS IP Match,www.myvictoryplan.com,DNS IP Match,www.nsedreams.com,DNS IP Match,www.nuskin.com,DNS IP Match,www.nuskinusa.com,DNS IP Match,www.pharmanex.com,DNS IP Match,www.pharmanex.com,DNS Resolution,www.pharmanex.com,HTTP,www.pharmanexusa.com,DNS IP Match
I've bolded what I think is the culprit.
The other servicegroup entries don't have a members list like this. Would maybe removing this line fix the issue?
Re: Write Config Files Errors
Posted: Wed Nov 28, 2012 3:18 pm
by slansing
Yes it could, it certainly would not hurt to remove that if you are not using it. Or do not plan to.
Re: Write Config Files Errors
Posted: Wed Nov 28, 2012 3:23 pm
by scottwilkerson
Actually if you go to the CCM -> Service Groups -> Apache_ext_prod_US -> Modify
Click "Manage Services"
Click Save (I know it isn't going to show the offender)
Save again
Apply Configuration
Re: Write Config Files Errors
Posted: Wed Nov 28, 2012 3:36 pm
by mcwhorts
Yeah it works! Thanks again for the awesome support. You guys rock!