Page 1 of 1

Need assistance with Nagios Core

Posted: Thu Sep 16, 2010 3:49 pm
by hgrant4630
Our Nagios person was let go so we have no on-site Nagios support any more. Our current Nagios box is no longer working. When we try to start Nagios, we receive the following error:

[root@NetMonitor ~]# nagios start -v /etc/nagios/objects/nagios.cfg

Nagios Core 3.2.1
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 03-09-2010
License: GPL

Website: http://www.nagios.org
Error: Cannot open main configuration file '/root/start' for reading!
Nagios 3.2.1 starting... (PID=7852)
Local time is Thu Sep 16 15:30:20 CDT 2010
Bailing out due to one or more errors encountered in the configuration files. Ru
n Nagios from the command line with the -v option to verify your config before r
estarting. (PID=7852)

I have checked the configuration files and all seems normal. I can't find a configuration file named "start".

We purchased support for this application recently. Once we have the box up and running, we want to upgrade it to the proper version of software.

Re: Need assistance with Nagios Core

Posted: Fri Sep 17, 2010 1:08 pm
by mguthrie
Here's the command to verify a nagios configuration on a typical install.
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

That second directory should point to your main nagios.cfg file, and usually it's in the above location.
It should display what file and what line there is if there's a configuration error. If for some reason that's not working let us know what the output is that you're getting from that.

This restarts Nagios core.
/etc/rc.d/init.d/nagios reload

Re: Need assistance with Nagios Core

Posted: Mon Sep 20, 2010 12:48 pm
by mmestnik
start refers to your command line argument.

As indicated that's not correct syntax for the Nagios daemon it's self, only for an init script. "checkconfig" can sometimes be accepted by an initscript for easy access to this function, circumventing the need to use the daemon directly. This is how I'd recommend issuing these commands.

I can't give exact syntax with out knowing what OS distribution and how it is you've installed Nagios Core.