FW: Starting up Nagios

Jeff Rutkowski jrutkows at ramapo.edu
Tue Oct 10 21:25:21 CEST 2006


Hi Marc,
This is what the permissions on the file look like:

-rw-rw-r--   1 jrutkows users 13803 Oct  4 16:26 minimal.cfg
-rw-rw-r--   1 jrutkows users  4290 Oct 10 15:10 misccommands.cfg
-rw-rw-r--   1 jrutkows users 21770 Oct  5 15:49 nagios.cfg

The file is in the /usr/local/nagios/etc directory.
I've re-set the permissions, also copied it to a backup, removed the
original file and moved the backup back into place and still getting the
same error in the nagios.log file. The path is correct in the nagios.cfg
file as well:

# Misc commands (notification and event handler commands, etc)
cfg_file=/usr/local/nagios/etc/misccommands.cfg


I deleted and re-added the path in nagios.cfg, still no luck. Any ideas?

 

___________________

Jeff Rutkowski

Unix Administrator

Ramapo College of NJ

505 Ramapo Valley Rd. 

Mahwah, NJ 07430

(201) 684-6804

jrutkows at ramapo.edu


-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc
Powell
Sent: Tuesday, October 10, 2006 3:05 PM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Starting up Nagios


> -----Original Message-----
> From: Jeff Rutkowski [mailto:jrutkows at ramapo.edu]
> Sent: Tuesday, October 10, 2006 1:18 PM
> To: Marc Powell
> Subject: RE: [Nagios-users] Starting up Nagios
> 
> The nagios.log shows the following:
> 
> # cat var/nagios.log [1160063445] Nagios 2.5 starting... (PID=21659)
> [1160063445] LOG VERSION: 2.0 [1160063445] Error: Cannot open config
> file '/usr/local/nagios/etc/misccommands.cfg' for reading: No such
file
> or directory [1160063445] 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=21659)
> linux:/usr/local/nagios #

Please always respond on list unless you're sending sensitive
information. Others reading the archives in the future will be able to
benefit from your experience. 

The error above is indicating the file really doesn't exist in that
location or the permissions are such that the nagios user can't access
it. 

> 
> 
> The file is there, permission look good on it, not sure why it is
having
> a hard time with it. Ran the -v, it it looks ok. We get those 2
warnings
> in production.
> 
> 
> linux:/usr/local/nagios # ./bin/nagios -v
> /usr/local/nagios/etc/nagios.cfg
> 
> Nagios 2.5
> Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org) Last
> Modified: 07-13-2006
> License: GPL
> 
> Reading configuration data...

[Chop]

> 
> Things look okay - No serious problems were detected during the
> pre-flight check linux:/usr/local/nagios
> 
> 
> Any ideas?

Run your preflight as the nagios user, not root, since that's the user
that reads the files. I'm going to guess that the nagios user can't read
/usr/local/nagios/etc/misccommands.cfg due to permissions.

--
Marc

------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list