Need assistance with Nagios Core

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
hgrant4630
Posts: 1
Joined: Thu Sep 16, 2010 3:42 pm

Need assistance with Nagios Core

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Need assistance with Nagios Core

Post 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
mmestnik
Posts: 972
Joined: Mon Feb 15, 2010 2:23 pm

Re: Need assistance with Nagios Core

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