Page 1 of 1
Not able to apply configuration
Posted: Thu Dec 04, 2014 8:42 am
by lafargeuser
While applying configuration from admin tab I get below error
Error: Servicegroup members must be specified in <host_name>,<service_description> pairs (config file '/usr/local/nagios/etc/servicegroups.cfg', starting on line 176)
Error processing object config files!
However, I have resolved all the errros. Still not able to apply configuration. there are 0 errors.
Re: Not able to apply configuration
Posted: Thu Dec 04, 2014 11:07 am
by slansing
If it is still telling you there is an error, there is likely, still an error. Can you attach that configuration file here so we can take a look?
Re: Not able to apply configuration
Posted: Mon Dec 08, 2014 9:48 am
by lafargeuser
Attached....
I didnt get any error when I run below command on XI server.
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
However, when I am trying to apply configuration below error persist
• Command submitted for processing...
• Waiting for configuration verification..................................................
• Configuration verification failed.
An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint.
View a snapshot of this configuration error
Re: Not able to apply configuration
Posted: Mon Dec 08, 2014 10:38 am
by tmcdonald
Running nagios -v from the command line won't exactly show you the state of what's in the CCM, since files are only written out and kept if the Apply Config is successful. In theory at least, your .cfg files should always be valid even if the CCM is not.
What version of XI are you running? Depending on your version you might be able to go to Configure -> CCM -> Tools -> Write Config Files to force a write, then do a nagios -v to see the error. At that point you can send over the servicegroups.cfg file and we can look over it manually.
Re: Not able to apply configuration
Posted: Thu Dec 11, 2014 4:58 am
by lafargeuser
Nagios Version 2011R3.2
I tried Configure -> CCM -> Tools -> Write Config Files & sending the servicegroups.cfg file to look over it to you.
Re: Not able to apply configuration
Posted: Thu Dec 11, 2014 10:23 am
by slansing
And what was the output of the write/verify? That's going to tell us where the error is.
Re: Not able to apply configuration
Posted: Thu Dec 11, 2014 10:29 am
by tmcdonald
If you look on line 176 of the file you attached, you will see that the "SGP_Ping" servicegroup has no members listed, but it has an empty "members" line. This is also occurring for several other groups:
Code: Select all
blr-ser-cpuload
blr-ser-memory
Powai_Server_Utilization
pwiser_Memory
PWI_CPU_LOAD
SGP_Disk_Usage
Sgp_Memory
In the CCM if you go to these servicegroups and look at the members assigned, are any of the lists blank? Or else, is there somehow an empty/blank option selected? You are using a very old version of XI so it's hard to say exactly why this is happening, but I would strongly recommend upgrading your XI install to the latest version.
Re: Not able to apply configuration
Posted: Fri Dec 12, 2014 6:43 am
by lafargeuser
Many Thanks. Issue resolved.
Re: Not able to apply configuration
Posted: Fri Dec 12, 2014 10:18 am
by tmcdonald
You are quite welcome. If I may ask out of curiosity, what was the fix?