Return code 13 is out of bounds - check_ncpa

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.
Post Reply
crispy
Posts: 1
Joined: Tue Sep 03, 2024 2:35 am

Return code 13 is out of bounds - check_ncpa

Post 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.
nagios-mikep97
Posts: 5
Joined: Mon Dec 09, 2024 7:49 am

Re: Return code 13 is out of bounds - check_ncpa

Post 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
bbahn
Posts: 382
Joined: Thu Jan 12, 2023 5:42 pm

Re: Return code 13 is out of bounds - check_ncpa

Post 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.
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
nagios-mikep97
Posts: 5
Joined: Mon Dec 09, 2024 7:49 am

Re: Return code 13 is out of bounds - check_ncpa

Post by nagios-mikep97 »

@bbahn,

I posted in the other thread. Thanks so much.
Post Reply