So I make a change to the Contact Groups Config in NCPL, ave it, export the config file and then install it. I get the following:
Things look okay - No serious problems were detected during the pre-flight check
Moving config files to the 'installed' directory ...
Restarting nagios process with the new configuration ...
Stopping nagios: [ OK ]
Starting nagios: [ OK ]
FAILED -- Install failed: Unable to restart nagios!
Excerpt the Failed msg is false, nagios has restarted fine. Any ideas?
Error when installing new config file
Re: Error when installing new config file
Being that this is a third-party plugin we can't really know for sure what it's doing without auditing the source code. However, there are a few things we can check on the Nagios side. Please run the nagios binary with the -v option and point it to your config, then post the results here. On a CentOS system this might look like:
But on your OS it may differ. Speaking of, what OS and version are you running? What Nagios version are you running?
Code: Select all
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Former Nagios employee
-
sobergfell
- Posts: 2
- Joined: Thu Jun 26, 2014 11:18 am
Re: Error when installing new config file
Thanks for the help.
I am running this on Redhat 6.5
Here is the output of the nagios binary with the -v command:
Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Warning: aggregate_status_updates directive ignored. All status file updates are now aggregated.
Read main config file okay...
Processing object config file '/etc/nagios/checkcommands.cfg'...
Processing object config file '/etc/nagios/contactgroups.cfg'...
Processing object config file '/etc/nagios/contacts.cfg'...
Processing object config file '/etc/nagios/hostdependencies.cfg'...
Processing object config file '/etc/nagios/hostextinfo.cfg'...
Processing object config file '/etc/nagios/hostgroupescalations.cfg'...
Processing object config file '/etc/nagios/hostgroups.cfg'...
Processing object config file '/etc/nagios/hosts.cfg'...
Processing object config file '/etc/nagios/misccommands.cfg'...
Processing object config file '/etc/nagios/servicedependencies.cfg'...
Processing object config file '/etc/nagios/serviceescalations.cfg'...
Processing object config file '/etc/nagios/serviceextinfo.cfg'...
Processing object config file '/etc/nagios/servicegroups.cfg'...
Processing object config file '/etc/nagios/services.cfg'...
Processing object config file '/etc/nagios/timeperiods.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 1639 services.
Checking hosts...
Checked 162 hosts.
Checking host groups...
Checked 16 host groups.
Checking service groups...
Checked 3 service groups.
Checking contacts...
Checked 26 contacts.
Checking contact groups...
Checked 9 contact groups.
Checking service escalations...
Checked 1083 service escalations.
Checking service dependencies...
Checked 2726 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 107 commands.
Checking time periods...
Checked 12 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
I am running this on Redhat 6.5
Here is the output of the nagios binary with the -v command:
Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Warning: aggregate_status_updates directive ignored. All status file updates are now aggregated.
Read main config file okay...
Processing object config file '/etc/nagios/checkcommands.cfg'...
Processing object config file '/etc/nagios/contactgroups.cfg'...
Processing object config file '/etc/nagios/contacts.cfg'...
Processing object config file '/etc/nagios/hostdependencies.cfg'...
Processing object config file '/etc/nagios/hostextinfo.cfg'...
Processing object config file '/etc/nagios/hostgroupescalations.cfg'...
Processing object config file '/etc/nagios/hostgroups.cfg'...
Processing object config file '/etc/nagios/hosts.cfg'...
Processing object config file '/etc/nagios/misccommands.cfg'...
Processing object config file '/etc/nagios/servicedependencies.cfg'...
Processing object config file '/etc/nagios/serviceescalations.cfg'...
Processing object config file '/etc/nagios/serviceextinfo.cfg'...
Processing object config file '/etc/nagios/servicegroups.cfg'...
Processing object config file '/etc/nagios/services.cfg'...
Processing object config file '/etc/nagios/timeperiods.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 1639 services.
Checking hosts...
Checked 162 hosts.
Checking host groups...
Checked 16 host groups.
Checking service groups...
Checked 3 service groups.
Checking contacts...
Checked 26 contacts.
Checking contact groups...
Checked 9 contact groups.
Checking service escalations...
Checked 1083 service escalations.
Checking service dependencies...
Checked 2726 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 107 commands.
Checking time periods...
Checked 12 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
Re: Error when installing new config file
Honestly as long as it is working I would just ignore the message. The program could be looking for a specific string when restarting Nagios and just not seeing it. We can't really troubleshoot a third-party project too much without digging into the source. Have you tried contacting the author?
Former Nagios employee