Nagios Start-up Failure

Kevin Keane subscription at kkeane.com
Fri Aug 28 21:50:31 CEST 2009


Wheeler, Jonathan (STFC,RAL,ESC) wrote:
>> -----Original Message-----
>> From: Kevin Keane [mailto:subscription at kkeane.com]
>> Sent: 28 August 2009 08:28
>> Cc: Nagios User list
>> Subject: Re: [Nagios-users] Nagios Start-up Failure
>>
>> Wheeler, Jonathan (STFC,RAL,ESC) wrote:
>>     
> (snip)
>   
>>> 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.
>>     
>
> Not at straightforward as that.  The rw directory and the command pipe
> are owned by nagios:HTTPUSER (where HTTPUSER might be http or apache)
> because the command pipe is written by the nsca and nrpe daemons as well
> as the web interface; therefore the cron job runs as userid nagios (not
> root).
>   
Maybe you could change the cron job to run as a different user that is 
member of HTTPUSER?

-- 
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