THIS KNOWLEDGE BASE HAS BEEN ARCHIVED AND IS NO LONGER BEING UPDATED
Please visit library.nagios.com/docs for the latest and most up-to-date documentation.
Home » Categories » Products » NRPE » Troubleshooting » Common Problems

NRPE - Return Code Of 126 Is Out Of Bounds - Plugin May Not Be Executable

Problem Description

This KB article addresses the following NRPE error:

Return Code Of 126 Is Out Of Bounds - Plugin May Not Be Executable

 

Assumed Knowledge

The following KB article contains an explanation of how NRPE works and may need to be referenced to completely understand the problem and solution that is provided here:

NRPE - Agent and Plugin Explained

 

Troubleshooting The Error

Many times when a plugin is downloaded from the Nagios Exchange and copied to the remote host, it will not have executable permissions.  You can verify this by getting a long-listing of the libexec plugin directory. For this example will will be using the command check_foo.sh.  On the remote host execute the following command:

ls -l /usr/local/nagios/libexec


You should see a listing similar to:

-rwxr-xr-x. 1 root   root     4173 Nov 21 01:39 check_bl
-rw-r--r--. 1 root   root     2289 Nov 21 01:39 check_foo.sh


The far left column of the listing are the permissions for each file. If you noticed, check_foo.sh is missing an "x" in a few places.  These are executable permissions and can easily be added to the file using the following command:

chmod +x /usr/local/nagios/libexec/check_foo.sh


Remember that check_foo.sh is just an example, you will change /usr/local/nagios/libexec/check_foo.sh to the actual name and path to your plugin that is missing executable permissions. 

 

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
NRPE - Return Code Of 127 Is Out Of Bounds - Plugin May Be Missing
Viewed 31086 times since Fri, Jul 14, 2017
How To Clear Solaris Service Maintenance Status
Viewed 34525 times since Mon, Mar 6, 2017
NRPE - v3/v4 Compatibility With Previous Versions
Viewed 50392 times since Fri, Jun 24, 2016
NRPE - NRPE: Unable To Read Output
Viewed 94797 times since Mon, Jul 17, 2017
NRPE - Turn Off XINETD Logging On Success
Viewed 14545 times since Tue, Mar 7, 2017
NRPE - CHECK_NRPE: Received 0 Bytes From Daemon. Check The Remote Server Logs For Error Messages
Viewed 12484 times since Mon, Jul 17, 2017
NRPE - Remote does not support Version 3 Packets
Viewed 26234 times since Mon, Nov 27, 2017
NRPE - CHECK_NRPE: Socket Timeout After n Seconds
Viewed 105522 times since Sun, Jul 16, 2017
Disabling Port 113 IDENT Requests
Viewed 6974 times since Tue, Mar 12, 2019
NRPE - CHECK_NRPE: Error - Could Not Complete SSL Handshake
Viewed 129827 times since Fri, Jul 14, 2017