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

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

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

Postby kmartin2007 » Fri Nov 15, 2019 12:43 pm

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

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

Postby kmartin2007 » Fri Nov 15, 2019 12:45 pm

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

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

Postby scottwilkerson » Fri Nov 15, 2019 12:46 pm

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 17023
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

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

Postby kmartin2007 » Fri Nov 15, 2019 12:50 pm

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

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

Postby kmartin2007 » Fri Nov 15, 2019 12:55 pm

oh this was installed from packages on ubuntu server 18
kmartin2007
 
Posts: 62
Joined: Thu Nov 14, 2019 3:31 pm

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

Postby scottwilkerson » Fri Nov 15, 2019 12:57 pm

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
}

As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 17023
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

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

Postby kmartin2007 » Fri Nov 15, 2019 12:59 pm

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: 62
Joined: Thu Nov 14, 2019 3:31 pm

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

Postby kmartin2007 » Fri Nov 15, 2019 1:00 pm

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

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

Postby scottwilkerson » Fri Nov 15, 2019 1:02 pm

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 17023
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

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

Postby kmartin2007 » Fri Nov 15, 2019 1:08 pm

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

PreviousNext

Return to Nagios Core

Who is online

Users browsing this forum: Google [Bot] and 26 guests