check_ncpa.py Return code of 127

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mtsvetkov
Posts: 1
Joined: Thu Mar 21, 2019 2:10 am

check_ncpa.py Return code of 127

Post by mtsvetkov »

Hello, i just install Nagios Core 4.4.3 on FreeBSD 12.0-RELEASE and trying to monitor windows machine with check_ncpa.py, but it returns Return code of 127 is out of bounds. Check if plugin exists).

/usr/local/nagios/libexec]# which python
/usr/local/bin/python

/usr/local/nagios/libexec]# /usr/local/nagios/libexec/check_ncpa.py -V
check_ncpa.py, Version 1.1.3

/usr/local/nagios/libexec]# head -1 /usr/local/nagios/libexec/check_ncpa.py
#!/usr/bin/env python

commands.cfg

define command {
command_name check_ncpa
command_line $USER1$/check_ncpa.py -H $HOSTADDRESS$ $ARG1$
}
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: check_ncpa.py Return code of 127

Post by cdienger »

What does the service definition look like? Are you able to run the full command on the command line?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked