NCPA check_ncpa.py execute plugin
Posted: Tue Dec 30, 2014 6:40 pm
Having a time with this. Trying to get check_ncpa.py to execute a plugin on the ncpa client, check_disk. Pulling my hair out.
It tries to execute the plugin but does not seem to pass the arguments correctly. I am trying to run this [this is how I run it locally on remote server]. check_disk -w 10% -c 5% -p /tmp and it works great.
The plugin is in the proper ncpa plugins directory.
Here is what I have tried so far.
Tried this one below according to the NCPA docs
So you can see why I am lost. Token is correct. Is there something I am missing on the client side like a setting in the ncpa conf file? LOST!!!!!
It tries to execute the plugin but does not seem to pass the arguments correctly. I am trying to run this [this is how I run it locally on remote server]. check_disk -w 10% -c 5% -p /tmp and it works great.
The plugin is in the proper ncpa plugins directory.
Here is what I have tried so far.
Code: Select all
./check_ncpa.py -v -H dcri-vmkar54 -t nagiosxi -M agent/plugin/check_disk -a "-w 10% -c 5% -p /tmp"
Could not complete with SSL, or there was an error in the JSON
check_disk: Could not parse arguments
Usage:
check_disk -w limit -c limit [-W limit] [-K limit] {-p path | -x device}
[-C] [-E] [-e] [-f] [-g group ] [-k] [-l] [-M] [-m] [-R path ] [-r path ]
[-t timeout] [-u unit] [-v] [-X type] [-N type] [-n]
<type 'int'>
Code: Select all
./check_ncpa.py -v -H dcri-vmkar54 -t nagiosxi -M agent/plugin/check_disk -a "-w '5%' -c '10%' -p '/tmp'"
Could not complete with SSL, or there was an error in the JSON
check_disk: Could not parse arguments
Usage:
check_disk -w limit -c limit [-W limit] [-K limit] {-p path | -x device}
[-C] [-E] [-e] [-f] [-g group ] [-k] [-l] [-M] [-m] [-R path ] [-r path ]
[-t timeout] [-u unit] [-v] [-X type] [-N type] [-n]
<type 'int'>