Nagios returns error "(Return code of 127 is out of bounds"
Posted: Tue Sep 29, 2015 6:03 pm
I am running Nagios on an Amazon Centos instance. I have installed Nagios 3.5.1 via yum. On a dead stock install I'm getting the "(Return code of 127 is out of bounds - plugin may be missing)" error on the localhost host configuration (stock). I had tried to migrate in my host configurations from a 3.2.3 instance but was getting the same error, so I removed Nagios and started again from scratch only to get this error. This seems to be for the check_http check command as this is the only plugin called by the localhost configuration. I have confirmed that the plugin is in the default path of /usr/local/nagios/libexec/check_http. I put Nagios into debug mode and the output of the checks looks like:
[1443633730.155627] [2048.1] [pid=11604] Done. Final output: '/usr/lib64/nagios/plugins/check_http -I http://www.oldmoonguitars.com '
[1443633730.155632] [2048.1] [pid=11604] **** END MACRO PROCESSING *************
[1443633730.155808] [2048.1] [pid=11604] **** BEGIN MACRO PROCESSING ***********
[1443633730.155817] [2048.1] [pid=11604] Processing: '$USER1$/check_http -I $HOSTADDRESS$ $ARG1$'
[1443633730.155826] [2048.1] [pid=11604] Done. Final output: '/usr/lib64/nagios/plugins/check_http -I pi2 '
[1443633730.155830] [2048.1] [pid=11604] **** END MACRO PROCESSING *************
[1443633740.164766] [2048.1] [pid=11604] **** BEGIN MACRO PROCESSING ***********
[1443633740.164777] [2048.1] [pid=11604] Processing: '$USER1$/check_http -I $HOSTADDRESS$ $ARG1$'
[1443633740.164786] [2048.1] [pid=11604] Done. Final output: '/usr/lib64/nagios/plugins/check_http -I http://www.oldmoonguitars.com '
[1443633740.164790] [2048.1] [pid=11604] **** END MACRO PROCESSING *************
I've searched hi and lo but following the threads and documented troubleshooting has yielded no solution.
Any help would be much appreciated!
[1443633730.155627] [2048.1] [pid=11604] Done. Final output: '/usr/lib64/nagios/plugins/check_http -I http://www.oldmoonguitars.com '
[1443633730.155632] [2048.1] [pid=11604] **** END MACRO PROCESSING *************
[1443633730.155808] [2048.1] [pid=11604] **** BEGIN MACRO PROCESSING ***********
[1443633730.155817] [2048.1] [pid=11604] Processing: '$USER1$/check_http -I $HOSTADDRESS$ $ARG1$'
[1443633730.155826] [2048.1] [pid=11604] Done. Final output: '/usr/lib64/nagios/plugins/check_http -I pi2 '
[1443633730.155830] [2048.1] [pid=11604] **** END MACRO PROCESSING *************
[1443633740.164766] [2048.1] [pid=11604] **** BEGIN MACRO PROCESSING ***********
[1443633740.164777] [2048.1] [pid=11604] Processing: '$USER1$/check_http -I $HOSTADDRESS$ $ARG1$'
[1443633740.164786] [2048.1] [pid=11604] Done. Final output: '/usr/lib64/nagios/plugins/check_http -I http://www.oldmoonguitars.com '
[1443633740.164790] [2048.1] [pid=11604] **** END MACRO PROCESSING *************
I've searched hi and lo but following the threads and documented troubleshooting has yielded no solution.
Any help would be much appreciated!