Not able to apply configuration

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Not able to apply configuration

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

Re: Not able to apply configuration

Post 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?
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: Not able to apply configuration

Post 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
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Not able to apply configuration

Post 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.
Former Nagios employee
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: Not able to apply configuration

Post 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.
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

Post by slansing »

And what was the output of the write/verify? That's going to tell us where the error is.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Not able to apply configuration

Post 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.
Former Nagios employee
lafargeuser
Posts: 341
Joined: Thu Sep 27, 2012 12:23 am

Re: Not able to apply configuration

Post by lafargeuser »

Many Thanks. Issue resolved.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Not able to apply configuration

Post by tmcdonald »

You are quite welcome. If I may ask out of curiosity, what was the fix?
Former Nagios employee
Locked