[Nagiosplug-devel] Nagios execution environment : problem loading libs while executing custom plugin.

sean finney seanius at seanius.net
Thu Dec 4 01:17:08 CET 2008


hiya,

On Wed, Dec 03, 2008 at 01:48:54PM -0500, Richard Edward Horner wrote:
> don't you just need to set the environment variables in your script? I

if you need to set LD_LIBRARY_PATH in order to load some shared libraries
needed by a python module, probably not.  at least not without a really
ugly self-exec type hack.

it's probably easier to just export and set the variables in the nagios
init script, which i think should propagate to the plugins when nagios
runs them.  otherwise in the worst case you could right a shell script
that sets the variables and executes the "real" plugin, but i really don't
think that should be necessary.


	sean
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://nagios-plugins.org/archive/devel/attachments/20081204/385409f6/attachment.sig>


More information about the Devel mailing list