<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>

<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.6944.0">
<TITLE>Re: [Nagios-users] Startup fails - Nagios -2.0b3</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText1874 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>I have found that 90% of the 
problems i run into when trying to configure something new in nagios, or when I 
first began distributed monitoring, most of the problems i had were because of 
permissions... </FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>A quick way to try and test permissions on 
a new command or new feature you are implementing is to actually switch the the 
nagios user 'su nagios' on the command line, and then run the script that is 
giving you errors...</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> nagios-users-admin@lists.sourceforge.net 
on behalf of Albert Whale<BR><B>Sent:</B> Sat 7/23/2005 4:30 PM<BR><B>Cc:</B> 
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> Re: [Nagios-users] Startup 
fails - Nagios -2.0b3<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>For the completeness of this thread, the problem is that the 
permissions<BR>on the /etc/nagios directory and all of the files within it were 
not<BR>owned by the nagios user.  Issuing the command<BR><BR>chown -R 
nagios.nagios /etc/nagios<BR><BR>Corrected the startup issues.<BR><BR>Can we get 
the nagios -v command to test this condition?  Obviously root<BR>has the 
capability to read the files, but the -d command fails without<BR>mentioning 
why.<BR><BR>Albert Whale wrote:<BR><BR>> This is fresh installation from rpms 
(no help from the Mandriva<BR>> Experts list) on Mandriva 10.2, with Nagios 
2.0b3.  This is my second<BR>> attempt for installation (the first 
attempt was on Mandrake 10.1). <BR>> Anyway, neither installation (from 
rpm or source compilation) appears<BR>> to run.<BR>><BR>> The review of 
the configuration file indicates there are no problems:<BR>><BR>> nagios 
-v /etc/nagios/nagios.cfg<BR>><BR>> Nagios 2.0b3<BR>> Copyright (c) 
1999-2005 Ethan Galstad (www.nagios.org)<BR>> Last Modified: 
04-03-2005<BR>> License: GPL<BR>><BR>> Reading configuration 
data...<BR>><BR>> Running pre-flight check on configuration 
data...<BR>><BR>> Checking 
services...<BR>>        Checked 19 
services.<BR>> Checking 
hosts...<BR>>        Checked 2 
hosts.<BR>> Checking host 
groups...<BR>>        Checked 1 host 
groups.<BR>> Checking service 
groups...<BR>>        Checked 0 service 
groups.<BR>> Checking 
contacts...<BR>>        Checked 2 
contacts.<BR>> Checking contact 
groups...<BR>>        Checked 2 contact 
groups.<BR>> Checking service 
escalations...<BR>>        Checked 2 
service escalations.<BR>> Checking service 
dependencies...<BR>>        Checked 0 
service dependencies.<BR>> Checking host 
escalations...<BR>>        Checked 0 host 
escalations.<BR>> Checking host 
dependencies...<BR>>        Checked 0 host 
dependencies.<BR>> Checking 
commands...<BR>>        Checked 29 
commands.<BR>> Checking time 
periods...<BR>>        Checked 4 time 
periods.<BR>> Checking extended host info 
definitions...<BR>>        Checked 0 
extended host info definitions.<BR>> Checking extended service info 
definitions...<BR>>        Checked 0 
extended service info definitions.<BR>> Checking for circular paths between 
hosts...<BR>> Checking for circular host and service dependencies...<BR>> 
Checking global event handlers...<BR>> Checking obsessive compulsive 
processor commands...<BR>> Checking misc settings...<BR>><BR>> Total 
Warnings: 0<BR>> Total Errors:   0<BR>><BR>> Things look okay 
- No serious problems were detected during the<BR>> pre-flight 
check<BR>><BR>> However when I launch the daemon here is what I get in the 
logfile:<BR>><BR>> nagios -d /etc/nagios/nagios.cfg<BR>><BR>> Jul 21 
08:38:33 sz7 nagios: Nagios 2.0b3 starting... (PID=27491)<BR>> Jul 21 
08:38:33 sz7 nagios: LOG VERSION: 2.0<BR>> Jul 21 08:38:33 sz7 nagios: 
Bailing out due to one or more errors<BR>> encountered in the configuration 
files.  Run Nagios from the command<BR>> line with the -v option to 
verify your config before restarting.<BR>> (PID=27491)<BR>><BR>> Any 
suggestions where to turn next?<BR>><BR>><BR>><BR><BR><BR>--<BR>Albert 
E. Whale, CHS CISA CISSP<BR>Sr. Security, Network, Risk Assessment and Systems 
Consultant<BR>-------------------------------------------------------------------<BR>ABS 
Computer Technology, Inc. - www.ABS-CompTech.com<BR>SPAM Zapper - 
No-JunkMail.com - Spam-Zapper.com - SPAM Stops Here.<BR>President of the 
Pittsburgh InfraGard 
Alliance<BR><BR><BR><BR>-------------------------------------------------------<BR>SF.Net 
email is sponsored by: Discover Easy Linux Migration Strategies<BR>from IBM. 
Find simple to follow Roadmaps, straightforward articles,<BR>informative 
Webcasts and more! Get everything you need to get up to<BR>speed, fast. <A 
href="http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click">http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click</A><BR>_______________________________________________<BR>Nagios-users 
mailing list<BR>Nagios-users@lists.sourceforge.net<BR><A 
href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR>::: 
Please include Nagios version, plugin version (-v) and OS when reporting any 
issue.<BR>::: Messages without supporting info will risk being sent to 
/dev/null<BR></FONT></P></DIV>

</BODY>
</HTML>