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.
Return code 13 is out of bounds - check_ncpa
-
nagios-mikep97
- Posts: 5
- Joined: Mon Dec 09, 2024 7:49 am
Re: Return code 13 is out of bounds - check_ncpa
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
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
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.
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
@bbahn,
I posted in the other thread. Thanks so much.
I posted in the other thread. Thanks so much.