Error restarting Nagios Service
Posted: Fri Jun 29, 2012 5:28 am
Hi All,
I have a problem that I was wondering if someone could help with.
I have been adding a few Servers to the monitoring software as normal today without a problem. I then went back in to change an group memeber of a contact group, run the verification (as normal) which came back as OK. I then went to restart the services to put the changes into effect, and I got the following error:
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
Error: Cannot open main configuration file '/etc/nagios/objects/service' for reading!
Warning: Cannot open log file '/var/nagios/nagios.log' for writing
Nagios 3.2.3 starting... (PID=4559)
Warning: Cannot open log file '/var/nagios/nagios.log' for writing
Local time is Fri Jun 29 11:13:26 BST 2012
Warning: Cannot open log file '/var/nagios/nagios.log' for writing
Warning: Cannot open log file '/var/nagios/nagios.log' for writing
Bailing out due to one or more errors encountered in the configuration files. Run Nagios from the command line with the -v option to verify your config before restarting. (PID=4559)
If I run the verfiy option again, it still comes back with no issues detected:
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/etc/nagios/objects/commands.cfg'...
Processing object config file '/etc/nagios/objects/contacts.cfg'...
Processing object config file '/etc/nagios/objects/timeperiods.cfg'...
Processing object config file '/etc/nagios/objects/templates.cfg'...
Processing object config file '/etc/nagios/objects/localhost.cfg'...
Processing object config file '/etc/nagios/objects/xxxx.cfg'...
Processing object config file '/etc/nagios/objects/xxxxx.cfg'...
Processing object config file '/etc/nagios/objects/xxxxx.cfg'...
Processing object config file '/etc/nagios/objects/xxxx.cfg'...
Processing object config file '/etc/nagios/objects/xxxxx.cfg'...
Processing object config file '/etc/nagios/objects/xxxxx.cfg'...
Processing object config file '/etc/nagios/objects/xxxxx.cfg'...
Processing object config file '/etc/nagios/objects/xxxxxx.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 140 services.
Checking hosts...
Checked 101 hosts.
Checking host groups...
Checked 9 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 12 contacts.
Checking contact groups...
Checked 9 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 24 commands.
Checking time periods...
Checked 5 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
Any Ideas, as I have never seen this issue before!!
Many Thanks!
I have a problem that I was wondering if someone could help with.
I have been adding a few Servers to the monitoring software as normal today without a problem. I then went back in to change an group memeber of a contact group, run the verification (as normal) which came back as OK. I then went to restart the services to put the changes into effect, and I got the following error:
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
Error: Cannot open main configuration file '/etc/nagios/objects/service' for reading!
Warning: Cannot open log file '/var/nagios/nagios.log' for writing
Nagios 3.2.3 starting... (PID=4559)
Warning: Cannot open log file '/var/nagios/nagios.log' for writing
Local time is Fri Jun 29 11:13:26 BST 2012
Warning: Cannot open log file '/var/nagios/nagios.log' for writing
Warning: Cannot open log file '/var/nagios/nagios.log' for writing
Bailing out due to one or more errors encountered in the configuration files. Run Nagios from the command line with the -v option to verify your config before restarting. (PID=4559)
If I run the verfiy option again, it still comes back with no issues detected:
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/etc/nagios/objects/commands.cfg'...
Processing object config file '/etc/nagios/objects/contacts.cfg'...
Processing object config file '/etc/nagios/objects/timeperiods.cfg'...
Processing object config file '/etc/nagios/objects/templates.cfg'...
Processing object config file '/etc/nagios/objects/localhost.cfg'...
Processing object config file '/etc/nagios/objects/xxxx.cfg'...
Processing object config file '/etc/nagios/objects/xxxxx.cfg'...
Processing object config file '/etc/nagios/objects/xxxxx.cfg'...
Processing object config file '/etc/nagios/objects/xxxx.cfg'...
Processing object config file '/etc/nagios/objects/xxxxx.cfg'...
Processing object config file '/etc/nagios/objects/xxxxx.cfg'...
Processing object config file '/etc/nagios/objects/xxxxx.cfg'...
Processing object config file '/etc/nagios/objects/xxxxxx.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 140 services.
Checking hosts...
Checked 101 hosts.
Checking host groups...
Checked 9 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 12 contacts.
Checking contact groups...
Checked 9 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 24 commands.
Checking time periods...
Checked 5 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
Any Ideas, as I have never seen this issue before!!
Many Thanks!