NCPA running plugin on the remote server/client
Posted: Thu Feb 22, 2018 12:34 am
Hi All,
Please help.
I'm working on a project using check_ncpa.py that will connect to the client using a plugin/check_ping. However, I always hit the wall that it cannot parse argument.
Command:
CMDLINE=/usr/local/nagios/libexec/check_ncpa.py -H <client_IP> -P 5693 -t 'Token' -M plugins/check_ping -H <client_IP> -w 10,2% -c 20,5%
OUTPUT=check_ping: Could not parse arguments
Usage:
check_ping -H <host_address> -w <wrta>,<wpl>% -c <crta>,<cpl>%
[-p packets] [-t timeout] [-4|-6]
RETURNCODE=3
Client Log:
2018-02-22 16:29:09,166 1857 INFO 10.105.162.82 - - [2018-02-22 16:29:09] "GET /api/plugins/check_ping/?token=Token&warning=10%2C2%25&critical=20%2C5%25&check=1 HTTP/1.1" 200 328 0.021117
Thank you
Please help.
I'm working on a project using check_ncpa.py that will connect to the client using a plugin/check_ping. However, I always hit the wall that it cannot parse argument.
Command:
CMDLINE=/usr/local/nagios/libexec/check_ncpa.py -H <client_IP> -P 5693 -t 'Token' -M plugins/check_ping -H <client_IP> -w 10,2% -c 20,5%
OUTPUT=check_ping: Could not parse arguments
Usage:
check_ping -H <host_address> -w <wrta>,<wpl>% -c <crta>,<cpl>%
[-p packets] [-t timeout] [-4|-6]
RETURNCODE=3
Client Log:
2018-02-22 16:29:09,166 1857 INFO 10.105.162.82 - - [2018-02-22 16:29:09] "GET /api/plugins/check_ping/?token=Token&warning=10%2C2%25&critical=20%2C5%25&check=1 HTTP/1.1" 200 328 0.021117
Thank you