NCPA check_ncpa.py execute plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
krobertson71
Posts: 444
Joined: Tue Feb 11, 2014 10:16 pm

NCPA check_ncpa.py execute plugin

Post by krobertson71 »

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.

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'>
Tried this one below according to the NCPA docs

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'>
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!!!!!
krobertson71
Posts: 444
Joined: Tue Feb 11, 2014 10:16 pm

Re: NCPA check_ncpa.py execute plugin

Post by krobertson71 »

Nevermind. You can close this thread. Solved with the help of people on GitHub and downloading an updated check_ncpa.py plugin.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NCPA check_ncpa.py execute plugin

Post by tmcdonald »

Sorry we didn't get to you; offices were closed for New Year's. Glad you got it fixed though!
Former Nagios employee
Locked