Python path on nagios server
Posted: Tue Jan 31, 2017 7:28 pm
I am trying to run a custom plugin from the nagios monitoring server. The plugin script is written python and uses some in modules located in a separate directory.
How can I add these modules to the python path so that the nagios server run the script and display the correct output.
Enclosed below is the output I am seeing on the nagios xi for the service ...
Thanks
Krishna
How can I add these modules to the python path so that the nagios server run the script and display the correct output.
Enclosed below is the output I am seeing on the nagios xi for the service ...
Code: Select all
(No output on stdout) stderr: Traceback (most recent call last):
File "/vvond/etc/nagios/check_accountAudit.py", line 7, in <module>
from vapiutil import nagios
ImportError: No module named vapiutil
Krishna