Startup fails - Nagios -2.0b3
Scott Sugar
ssugar at proserveit.com
Sun Jul 24 23:40:07 CEST 2005
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...
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...
________________________________
From: nagios-users-admin at lists.sourceforge.net on behalf of Albert Whale
Sent: Sat 7/23/2005 4:30 PM
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Startup fails - Nagios -2.0b3
For the completeness of this thread, the problem is that the permissions
on the /etc/nagios directory and all of the files within it were not
owned by the nagios user. Issuing the command
chown -R nagios.nagios /etc/nagios
Corrected the startup issues.
Can we get the nagios -v command to test this condition? Obviously root
has the capability to read the files, but the -d command fails without
mentioning why.
Albert Whale wrote:
> This is fresh installation from rpms (no help from the Mandriva
> Experts list) on Mandriva 10.2, with Nagios 2.0b3. This is my second
> attempt for installation (the first attempt was on Mandrake 10.1).
> Anyway, neither installation (from rpm or source compilation) appears
> to run.
>
> The review of the configuration file indicates there are no problems:
>
> nagios -v /etc/nagios/nagios.cfg
>
> Nagios 2.0b3
> Copyright (c) 1999-2005 Ethan Galstad (www.nagios.org)
> Last Modified: 04-03-2005
> License: GPL
>
> Reading configuration data...
>
> Running pre-flight check on configuration data...
>
> Checking services...
> Checked 19 services.
> Checking hosts...
> Checked 2 hosts.
> Checking host groups...
> Checked 1 host groups.
> Checking service groups...
> Checked 0 service groups.
> Checking contacts...
> Checked 2 contacts.
> Checking contact groups...
> Checked 2 contact groups.
> Checking service escalations...
> Checked 2 service escalations.
> Checking service dependencies...
> Checked 0 service dependencies.
> Checking host escalations...
> Checked 0 host escalations.
> Checking host dependencies...
> Checked 0 host dependencies.
> Checking commands...
> Checked 29 commands.
> Checking time periods...
> Checked 4 time periods.
> Checking extended host info definitions...
> Checked 0 extended host info definitions.
> Checking extended service info definitions...
> Checked 0 extended service info definitions.
> Checking for circular paths between hosts...
> Checking for circular host and service dependencies...
> Checking global event handlers...
> Checking obsessive compulsive processor commands...
> Checking misc settings...
>
> Total Warnings: 0
> Total Errors: 0
>
> Things look okay - No serious problems were detected during the
> pre-flight check
>
> However when I launch the daemon here is what I get in the logfile:
>
> nagios -d /etc/nagios/nagios.cfg
>
> Jul 21 08:38:33 sz7 nagios: Nagios 2.0b3 starting... (PID=27491)
> Jul 21 08:38:33 sz7 nagios: LOG VERSION: 2.0
> Jul 21 08:38:33 sz7 nagios: 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=27491)
>
> Any suggestions where to turn next?
>
>
>
--
Albert E. Whale, CHS CISA CISSP
Sr. Security, Network, Risk Assessment and Systems Consultant
-------------------------------------------------------------------
ABS Computer Technology, Inc. - www.ABS-CompTech.com
SPAM Zapper - No-JunkMail.com - Spam-Zapper.com - SPAM Stops Here.
President of the Pittsburgh InfraGard Alliance
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050724/9a92f842/attachment.html>
More information about the Users
mailing list