Page 1 of 1

Return code 13 is out of bounds - check_ncpa

Posted: Tue Sep 03, 2024 2:42 am
by crispy
Having moved my nagios installation to a new server I was receiving the above status information for all service checks on my single Windows machine. After much reading of other threads (and a successful attempt using the tool from the command line) I discovered, partly by accident, that the issue was permissions/ownership on the /usr/local/nagios/libexec/check_ncpa.py file.

To fix I ran the following:

sudo chown nagios:nagios /usr/local/nagios/libexec/check_ncpa.py
sudo chmod 750 /usr/local/nagios/libexec/check_ncpa.py


No need for a restart as nagios will continue to attempt to execute this file just as before, only now it will be allowed to.

Re: Return code 13 is out of bounds - check_ncpa

Posted: Mon Dec 09, 2024 8:09 am
by nagios-mikep97
Hello,

I am having the same issue, return code 13, and tried those fixes you mentioned with no luck. I also am able to run check_ncpa.py as the nagios user successfully.

One other note, my plugins directory is located here.

/usr/lib64/nagios/plugins/

Any more ideas ?

thanks, mp

Re: Return code 13 is out of bounds - check_ncpa

Posted: Mon Dec 09, 2024 1:15 pm
by bbahn
Hello @nagios-mikep97,

Have you tried running check_ncpa.py in verbose mode when testing? By adding -v, you can get more information about what's going wrong. Try running it with -v and post the output here (redacting any potentially sensitive information, of course).

The location of your plugin won't have any effect on the output of check_ncpa.py, so you don't need to worry about that.

Re: Return code 13 is out of bounds - check_ncpa

Posted: Mon Dec 09, 2024 3:46 pm
by nagios-mikep97
@bbahn,

I posted in the other thread. Thanks so much.