(Return code of 127 is out of bounds - plugin may be missing

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.
kmartin2007
Posts: 66
Joined: Thu Nov 14, 2019 3:31 pm

Re: (Return code of 127 is out of bounds - plugin may be mis

Post by kmartin2007 »

here is our nagios.cfg and our services.cfg
Attachments
services_nagios2.cfg
(36.3 KiB) Downloaded 142 times
nagios.cfg
(44.61 KiB) Downloaded 125 times
kmartin2007
Posts: 66
Joined: Thu Nov 14, 2019 3:31 pm

Re: (Return code of 127 is out of bounds - plugin may be mis

Post by kmartin2007 »

scottwilkerson wrote:
kmartin2007 wrote:that did not work.


2019-11-15 17:41:14 2d 20h 38m 53s 2/2 (Return code of 127 is out of bounds - plugin may be missing)
Did you restart nagios?

yes i did.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: (Return code of 127 is out of bounds - plugin may be mis

Post by scottwilkerson »

You also have this command defined which doesn't have a plugin at that location

Code: Select all

define command {

    command_name    check_url_ssl
    command_line    $USER1$/check_url_ssl
}
Looks like this file doesn't exist

Code: Select all

ls -l /usr/local/nagios/libexec/check_url_ssl
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
kmartin2007
Posts: 66
Joined: Thu Nov 14, 2019 3:31 pm

Re: (Return code of 127 is out of bounds - plugin may be mis

Post by kmartin2007 »

Thats correct. I cannot locate that plugin anywhere on the other server either. This may be something the previous guy started to play with but abandoned.

I have attached our resource.cfg as well
Attachments
resource.cfg
(1.27 KiB) Downloaded 118 times
kmartin2007
Posts: 66
Joined: Thu Nov 14, 2019 3:31 pm

Re: (Return code of 127 is out of bounds - plugin may be mis

Post by kmartin2007 »

oh this was installed from packages on ubuntu server 18
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: (Return code of 127 is out of bounds - plugin may be mis

Post by scottwilkerson »

However, this is the command used in one of the services in your original post:
vho wrote: define service{
use production-service
host_name DALSRVPRDIIS08
service_description DCNBS.COM SSL
check_command check_url_ssl!www.DCNBS.com
}
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
kmartin2007
Posts: 66
Joined: Thu Nov 14, 2019 3:31 pm

Re: (Return code of 127 is out of bounds - plugin may be mis

Post by kmartin2007 »

scottwilkerson wrote:However, this is the command used in one of the services in your original post:
vho wrote: define service{
use production-service
host_name DALSRVPRDIIS08
service_description DCNBS.COM SSL
check_command check_url_ssl!www.DCNBS.com
}

right i dont think it was being used from the old server although it was created. When we inherited this it had alot of unknowns already that were ignored. We are more worried about the check_url right now, as that is a critical function to the business, and hospitals around the world that those sites are active.
kmartin2007
Posts: 66
Joined: Thu Nov 14, 2019 3:31 pm

Re: (Return code of 127 is out of bounds - plugin may be mis

Post by kmartin2007 »

were now getting Return code of -1 is out of bounds now.



VIHSP ESP
Perform Extra Service Actions
CRITICAL 2019-11-15 18:00:12 2d 20h 52m 24s 2/2 (Return code of -1 is out of bounds)

ESPDATA.ORG.AU
Perform Extra Service Actions
CRITICAL 2019-11-15 17:58:00 2d 20h 57m 38s 2/2 (Return code of -1 is out of bounds)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: (Return code of 127 is out of bounds - plugin may be mis

Post by scottwilkerson »

Please post the current check_url command

Also, can you show how the command is to be run from the CLI sucessfully

Also, please post the output of

Code: Select all

ps -ef|grep nagios.cfg
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
kmartin2007
Posts: 66
Joined: Thu Nov 14, 2019 3:31 pm

Re: (Return code of 127 is out of bounds - plugin may be mis

Post by kmartin2007 »

scottwilkerson wrote:Please post the current check_url command

Also, can you show how the command is to be run from the CLI sucessfully

Also, please post the output of

Code: Select all

ps -ef|grep nagios.cfg

(not sure if im running this correctly)
root@dalsrvitmon03:/usr/local/nagios/libexec# ./check_url.pl -B ESPDATA.ORG.AU
rm: cannot remove 'tmp_html': No such file or directory
UNKNOWN:

define command {

command_name check_url
command_line $USER1$/check_url.pl -I $ARG1$
}

root@dalsrvitmon03:/usr/local/nagios/libexec# ps -ef|grep nagios.cfg
nagios 761 1 0 17:53 ? 00:00:02 /usr/sbin/nagios3 -d /etc/nagios3/nagios.cfg
root 9633 22087 0 18:07 pts/1 00:00:00 grep --color=auto nagios.cfg
Locked