[PATCH] nrpe sysv init script: read extra environment from standard location

David Mansfield nagios at dm.cobite.com
Fri May 30 23:48:06 CEST 2008


[excuse any duplicates, original sent from non-subscribed account]

I'm using nrpe on a bunch of CentOS machines.  nrpe is being started via
the standard sysv init script system, so it uses the 'init-script'
bundled in the nrpe tarball (actually, I using the nrpe build provided
by the EPEL guys, but that doesn't really matter).

The problem is that some of my plugins require an environment to be set,
but on CentOS the 'service nrpe start' explicitly starts the daemon with
a clean and empty environment.

The typical way to handle this is to allow for an /etc/sysconfig/blah
(in this case 'blah' is 'nrpe') script which customizes an explicit
environment for the daemon.

That's what the attached patch, against nrpe 2.7, does.

Could it be included in the next release?

Thanks,
David

-------------- next part --------------
A non-text attachment was scrubbed...
Name: nrpe-read-extra-conf.patch
Type: text/x-patch
Size: 418 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080530/2a46f972/attachment.bin>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list