Nagios Start-up Failure
Kevin Keane
subscription at kkeane.com
Fri Aug 28 09:27:35 CEST 2009
Wheeler, Jonathan (STFC,RAL,ESC) wrote:
>> -----Original Message-----
>> From: VINCENT BOB-DMHG67 [mailto:bob.vincent at motorola.com]
>> Sent: 27 August 2009 17:11
>> To: Terry
>>
>> Here is the beginning and the tail end of the debug output generated
>>
> by
>
>> adding the settings below.
>> It doesn't seem to indicate any reason why it stops.
>> I'm hoping that someone more familiar with Nagios than I can help.
>>
>
> I have not been following this thread, but one reason that Nagios fails
> at the very end of its start-up is if the command pipe file (ours is in
> /var/log/nagios/rw/nagios.cmd - defined by parameter command_file in the
> main Nagios configuration file) exists as a file rather than a pipe. On
> our installation this can occur during Nagios start-up as some of our
> procedures, running from a cron job, write directly to the command pipe
> and will create it as a standard file if it does not exist. The
> solution is to delete the file and restart the Nagios process.
>
Interesting observation! I haven't tried it, but one possible way to
address this is by putting the command pipe file into a directory that
is read-only to everybody but user Nagios. As long as the cron jobs run
as a different user (and not as user root, who can always write
anywhere), they would not be able to create ordinary files in that
directory, but they would still be able to access the pipe once Nagios
creates it.
Of course you would then possibly have to handle any errors within the
cron scripts.
--
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About
Office: 866-642-7116
http://www.4nettech.com
This e-mail and attachments, if any, may contain confidential and/or proprietary information. Please be advised that the unauthorized use or disclosure of the information is strictly prohibited. The information herein is intended only for use by the intended recipient(s) named above. If you have received this transmission in error, please notify the sender immediately and permanently delete the e-mail and any copies, printouts or attachments thereof.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
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