Nagios 2.0 init.d/nagios and daemonizing...

Andreas Ericsson ae at op5.se
Thu Dec 16 21:20:16 CET 2004


Chris Stankaitis wrote:
>>
>> what are the perms on /var/run?
>> Does the user your nagios daemon is running as have permission to write
>> there?
>> Is there an existing nagios.pid file in there? (if so, delete it)
>>
> 
> The perms on var run are root:root 755, these are the same perms which 
> /var/run has on my nagios 1.2 server.
> 
> 
>>
>>>>> my current work around is that I am just running Nagios from
>>>>> command line: Which is working fine... 
>>
>>
>>
>> As the Nagios user?
>>
> 
> Nagios user does not have permission to run the Nagios binary,

That's why it fails. When nagios threads the dynamic linker keeps the 
binary file open. There's no additional security risk in allowing the 
pseudo-user to run its own binary. It does, after all, already have 
access to all of its own memory, including the second PTE.

  it's
> executed as root at which time Nagios drops it's privileges, from 
> command line I am running it as root...  when Nagios init script is run
> it *SHOULD* start Nagios, write the lock, chown things to nagios:nagios 
> where needed and drop it's privileges, it isn't doing so at this time...
> 
> Regardless even as root running the nagios -d flag is not working, and 
> that is nagios daemon specific.
> 
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now. 
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> 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
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
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