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.
Not able to apply configuration
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Not able to apply configuration
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?
-
lafargeuser
- Posts: 341
- Joined: Thu Sep 27, 2012 12:23 am
Re: Not able to apply configuration
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
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
You do not have the required permissions to view the files attached to this post.
Re: Not able to apply configuration
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.
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.
Former Nagios employee
-
lafargeuser
- Posts: 341
- Joined: Thu Sep 27, 2012 12:23 am
Re: Not able to apply configuration
Nagios Version 2011R3.2
I tried Configure -> CCM -> Tools -> Write Config Files & sending the servicegroups.cfg file to look over it to you.
I tried Configure -> CCM -> Tools -> Write Config Files & sending the servicegroups.cfg file to look over it to you.
You do not have the required permissions to view the files attached to this post.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Not able to apply configuration
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
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:
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.
Code: Select all
blr-ser-cpuload
blr-ser-memory
Powai_Server_Utilization
pwiser_Memory
PWI_CPU_LOAD
SGP_Disk_Usage
Sgp_Memory
Former Nagios employee
-
lafargeuser
- Posts: 341
- Joined: Thu Sep 27, 2012 12:23 am
Re: Not able to apply configuration
Many Thanks. Issue resolved.
Re: Not able to apply configuration
You are quite welcome. If I may ask out of curiosity, what was the fix?
Former Nagios employee