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.
Write Config Files Errors
Write Config Files Errors
You do not have the required permissions to view the files attached to this post.
Re: Write Config Files Errors
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!
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!
Re: Write Config Files Errors
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!
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
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!
Re: Write Config Files Errors
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?
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
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
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
Click "Manage Services"
Click Save (I know it isn't going to show the offender)
Save again
Apply Configuration
Re: Write Config Files Errors
Yeah it works! Thanks again for the awesome support. You guys rock!