Hello,
I am attempting to configure a custom plugin on Nagios and am getting the attached screenshot error. When I attempted to troubleshoot, it seems like some sort of update may need installed on the Nagios box? I’m unsure and a little confused on how to proceed. For reference, my plugin is a python script. Let me know if you have a solution or idea.
Thanks,
Lauren
Python Plugin Error
Python Plugin Error
You do not have the required permissions to view the files attached to this post.
Re: Python Plugin Error
It looks like the script may be trying to access something that doesn't exist or may not have permissions to access. Are you able to run the script from the command line? What parameters are you passing it?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Python Plugin Error
So I double checked both the NSC config file, the Nagios command the the script itself. I can run the script from the server in the cmd line.
Here is what I have in the NSC file under external scripts:
check_nvidia=E:\app\Python27\python.exe scripts\check_nvidia.py
And here is what I have in Nagios for the check command:
$USER1$/check_nvidia -H $HOSTADDRESS$ -p $ARG1$ $ARG2$
Like I said, it can be run successfully on the server itself. There must be some sort of discrepancy with my configuration to connect it to Nagios. Any ideas?
Here is what I have in the NSC file under external scripts:
check_nvidia=E:\app\Python27\python.exe scripts\check_nvidia.py
And here is what I have in Nagios for the check command:
$USER1$/check_nvidia -H $HOSTADDRESS$ -p $ARG1$ $ARG2$
Like I said, it can be run successfully on the server itself. There must be some sort of discrepancy with my configuration to connect it to Nagios. Any ideas?
Re: Python Plugin Error
Instead of this:
you should have this:
Other words, you call check_nvidia (defined in the nsclient.ini file) via check_nrpe.
Your check, run from the command line on the Nagios XI server should look something like this:
Note: I am not sure if you are passing any args to check_nvidia.py. It would help if you showed us the actual check run on the Windows machine from the CMD prompt. Also, post the entire nsclient.ini file in case it is still not working for you.
Code: Select all
$USER1$/check_nvidiaCode: Select all
$USER1$/check_nrpeYour check, run from the command line on the Nagios XI server should look something like this:
Code: Select all
./check_nrpe -H <remote ip> -c check_nvidia -a <args>Be sure to check out our Knowledgebase for helpful articles and solutions!