I am using Nagios XI to monitor a set of different equipments, everything is working well except one problem. here is it:
- I am monitoring a windows machine with NCPA Agent .in this machine I have a software called KEPServer.
- I have developed a python script which check for me if the licence of one of that software installed on this windows machine is up to date or not.
- My script is named "check_opc.py" and it takes 3 arguments -s $ARG1$ -n $ARG2$ and -v $ARG3$
- My custom plugin is in this client directory C:\Programmes Files\Nagios\NCPA\plugin\.
- in My ncpa.cfg file I have this line
Code: Select all
.py = C:\Python27\python.exe $plugin_name $plugin_argsMy script is trying to check a licence value as showed in the picture bellow and compared it to a given argument to tell if licence is up to date:
It must find the value [Allen-bradley ControlLogix Ethernet]
This script works perfectly since I am using check_nrpe with NSClient. But since I have migrated to the NCPA Client I can't perform this check.
When I do a new configuration wizzard, I choose the NCPA agent for Windows and I try to add my script, here is how I proceed. I am giving these three arguments:
Code: Select all
-s opc.tcp://127.0.0.1:49320
-n ns=2;s=_System._LicensedFeatures
-v ['Allen-Bradley ControlLogix Ethernet']I have tried writing my third argument in almost all the ways ( simple quotes, double quotes, without quotes, combined quotes, etc) and nothing seems to be resolving the problem. I think there is a way how the NCPA Agent interpret the string array and has a specific method to give a string array as an argument.
ANY HELP PLEEEEEEEEASE !!!!!!