Re: [Nagios-users] $HOME is not set correctly for plug-ins

2010-11-25 Thread Alexander Haas
On 25.11.2010 11:39, Andreas Ericsson wrote: > On 11/25/2010 12:12 AM, Alexander Haas wrote: >> I think it's Nagois >> doing some kind of su in its internals which causes my plug-in to get a >> wrong $HOME inherited. The bad behavior only occurs when executed by

Re: [Nagios-users] No output returned from plugin

2010-11-24 Thread Alexander Haas
Stuart Browne wrote: >> -----Original Message- >> From: Alexander Haas [mailto:a...@geloet.de] >> Subject: [Nagios-users] No output returned from plugin >> >> Hi list, >> >> it's me again :) >> >> I wrote a plug-in which does work great.

Re: [Nagios-users] $HOME is not set correctly for plug-ins

2010-11-24 Thread Alexander Haas
at you are switching to. Without using the hyphen, it continues to use the environmental variables of the base user (root in this case). Jon Adcock Network Systems Administrator MIS / Systems Team Leon County (850) 606-5500 >>> Alexander Haas 11/24/2010 3:39 PM >>> Hi Nagios u

[Nagios-users] No output returned from plugin

2010-11-24 Thread Alexander Haas
Hi list, it's me again :) I wrote a plug-in which does work great. It works from the shell as root, from the shell as nagios and from nagios executed as plug-in. The only problem is when there is an error returned. It does not work when i execute it from nagios as a plug-in and there is an err

[Nagios-users] $HOME is not set correctly for plug-ins

2010-11-24 Thread Alexander Haas
Hi Nagios users, this is my first post. I encountered a behavior I am not able to understand. Well, I guess I did understand it, but I don't know how to counter it :) When I write a plug-in for Nagios it is executed as nagios:nagios. Yet $HOME is set to "/root". My /etc/password and nagios's