Nagios restart problem after windows.cfg modification

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
deesdabeth
Posts: 4
Joined: Thu Oct 04, 2012 1:20 am

Nagios restart problem after windows.cfg modification

Post by deesdabeth »

Hi everyone,

I've modified my /etc/nagios/objetcs/windows.cfg files and now Nagios won't restart :

[root@nagios nagios]# nagios restart

Nagios 3.0.6
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 12-01-2008
License: GPL

Error: Cannot open main configuration file '/etc/nagios/restart' for reading!
Nagios 3.0.6 starting... (PID=12129)
Local time is Thu Oct 04 09:04:49 CEST 2012
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=12129)
[root@nagios nagios]#


But when i check the configuation it says that everything seems to be ok :

[root@nagios nagios]# nagios -v nagios.cfg

Nagios 3.0.6
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 12-01-2008
License: GPL

Reading configuration data...

Running pre-flight check on configuration data...

Checking services...
Checked 39 services.
Checking hosts...
Warning: Host 'FAXSERVER' has no services associated with it!
Warning: Host 'SRVI' has no services associated with it!
Warning: Host 'SRVP' has no services associated with it!
Warning: Host 'SRVTSE' has no services associated with it!
Warning: Host 'SRVTSE2K3' has no services associated with it!
Warning: Host 'SRVTSE3' has no services associated with it!
Checked 15 hosts.
Checking host groups...
Checked 3 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 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: 6
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
[root@nagios nagios]#


Can someone help me to find the problem?
Thanks

Eric
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Nagios restart problem after windows.cfg modification

Post by yancy »

Eric,

What modifications to windows.cfg have you made?

can you post windows.cfg so we can take a look.

Regards,

-Yancy
Locked