Write Config Files Errors

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mcwhorts
Posts: 60
Joined: Fri Oct 07, 2011 11:59 am

Write Config Files Errors

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Write Config Files Errors

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
mcwhorts
Posts: 60
Joined: Fri Oct 07, 2011 11:59 am

Re: Write Config Files Errors

Post 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!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Write Config Files Errors

Post by lmiltchev »

Is 'DNS IP Match' a member of a service group? Check this out, and remove it from the servicegroup via the CCM.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mcwhorts
Posts: 60
Joined: Fri Oct 07, 2011 11:59 am

Re: Write Config Files Errors

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Write Config Files Errors

Post by slansing »

Yes it could, it certainly would not hurt to remove that if you are not using it. Or do not plan to.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Write Config Files Errors

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mcwhorts
Posts: 60
Joined: Fri Oct 07, 2011 11:59 am

Re: Write Config Files Errors

Post by mcwhorts »

Yeah it works! Thanks again for the awesome support. You guys rock!
Locked