Page 1 of 1

check_ncpa.py Return code of 127

Posted: Thu Mar 21, 2019 2:17 am
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$
}

Re: check_ncpa.py Return code of 127

Posted: Thu Mar 21, 2019 4:57 pm
by cdienger
What does the service definition look like? Are you able to run the full command on the command line?