Error while starting nagios

Michael Hüttig Michael.Huettig at Medien-Systempartner.de
Mon May 5 08:50:32 CEST 2003


Hi Theo,
permissions on the directories should also be writeable for user nagios, look 
at my permissions:
[root at nagios nagios]# l /usr/local/nagios/
insgesamt 40
drwxr-xr-x   10 root     root         4096 Apr  9 17:04 ./
drwxr-xr-x   13 root     root         4096 Okt 15  2002 ../
drwxr-xr-x    4 root     root         4096 Apr 11 13:28 apan/
drwxrwxr-x    2 nagios   nagios       4096 Mär 28 16:43 bin/
drwxrwxr-x    9 nagios   nagios       4096 Apr 25 10:17 etc/
drwxr-xr-x    2 nagios   nagios       4096 Apr  9 16:50 libexec/
drwxrwxr-x    2 nagios   nagios       4096 Apr 11 19:54 rrd/
drwxrwxr-x    2 nagios   nagios       4096 Apr  9 18:11 sbin/
drwxrwxr-x    9 nagios   nagios       4096 Apr  9 12:32 share/
drwxrwxr-x    4 nagios   nagios       4096 Mai  5 08:53 var/
[root at nagios nagios]# l /usr/local/nagios/var/
insgesamt 1720
drwxrwxr-x    4 nagios   nagios       4096 Mai  5 08:54 ./
drwxr-xr-x   10 root     root         4096 Apr  9 17:04 ../
drwxrwxr-x    2 nagios   nagios       4096 Mai  4 00:00 archives/
-rw-rw-r--    1 nagios   nagios       2533 Mai  5 07:17 comment.log
-rw-rw-r--    1 nagios   nagios          0 Apr 28 13:05 downtime.log
-rw-r--r--    1 root     root            6 Apr 11 14:33 nagios.lock
-rw-r--r--    1 nagios   nagios    1451093 Mai  5 08:54 nagios.log
drwxrwsr-x    2 nagios   nagiocmd     4096 Apr 11 14:33 rw/
-rw-rw-r--    1 nagios   nagios     153369 Mai  5 08:54 status.log
-rw-rw-r--    1 nagios   nagios     113417 Mai  5 08:05 status.sav

Greets,

Michael

Am Sonntag, 4. Mai 2003 01:11 schrieb Tom Welsh:
> Hi Theo,
>
> Remember me, Tom, who used to run the NOC in Keybridge London?
>
> IS your Nagios installation a standard install or did you move the log
> file location. The log file is normally in /usr/local/nagios/var/
> directory unless you have changed it. You can see where this is set in
> your nagios.cfg file under the first section
>
> log_file=/usr/local/nagios/var/nagios.log
>
> Do you get any errors showing when you verify your configuration by
> doing a flight test?
>
> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
>
> Drop me a line and let me know how you get on.
>
> What OS and Version of Nagios are you running?
> What have you changed on the nagios server recently and why were you
> restarting the nagios process when you spotted this error?
>
> HTH
>
> Tom Welsh
> twelsh at square-box.com
>
>
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Theo
> Hollenberg
> Sent: 03 May 2003 17:37
> To: nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] Error while starting nagios
>
> Hi Michael,
>
> I've checked rights on files and directories but user nagios is owner of
> these files with rw rights. This also goes for the nagios group.
>
> Kind regards,
>
> --
> Theo Hollenberg
> Data Center Manager
> Global Switch Amsterdam
> Tel	:	+31 (0)20 6666 375
> Fax	:	+31 (0)20 6666 395
> Mob.	:	+31 (0)6 2219 6915
> Email	:	thollenberg at globalswitch.com
> --
> "I suppose they are vicious rascals, but it scarcely matters what they
> are. I'm after what they know." (Gibson-Sterling, The Difference Engine)
> --
>
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Michael
> Hüttig
> Sent: vrijdag 2 mei 2003 9:52
> To: Theo Hollenberg; nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Error while starting nagios
>
> Am Freitag, 2. Mai 2003 08:32 schrieb Theo Hollenberg:
> > Ladies/Gents,
> >
> > This server used to be a happy chappy, gently buzzing away running
> > nagios and all of a sudden it stopped. Now, whatever I try I get this:
> >
> > [root at brain root]# /etc/rc.d/init.d/nagios start
> > Starting network monitor: nagios
> > NAGIOS CRITICAL - could not find status log:
>
> /var/log/nagios/status.log
>
> > [root at brain root]#
> >
> > What is happening here, where did I go wrong?
>
> Hi Theo,
> mostly you got this problem, if user nagios has no permission to write
> the status.log-file. This happened when you start nagios as root, file
> would be
> created as root, shutting down nagios and starting with rc-script would
> start
> a the defined user of your compiling-options...


**********************************************************************
Diese E-Mail wurde auf Viren ueberprueft.
www.mimesweeper.com
**********************************************************************



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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