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

Richard Edward Horner rich at richhorner.com
Wed Dec 3 19:48:54 CET 2008


Guillame,

I'm not a Python programmer so this may be completely incorrect but
don't you just need to set the environment variables in your script? I
usually write in BASH where I'd just say:

export SOME_VARIABLE=some_value

A quick Google search suggests that in Python you use the os.environ
element like:

os.environ["MY_PATH"]="/path/to/program"

Yes? No?

Rich(ard)
-- 
Richard Edward Horner
Engineer / Composer / Electric Guitar Virtuoso
http://richhorner.com




More information about the Devel mailing list