Return code 13 is out of bounds - check_ncpa
Posted: Tue Sep 03, 2024 2:42 am
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.
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.