Page 2 of 5

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

Posted: Fri Nov 15, 2019 12:43 pm
by kmartin2007
here is our nagios.cfg and our services.cfg

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

Posted: Fri Nov 15, 2019 12:45 pm
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.

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

Posted: Fri Nov 15, 2019 12:46 pm
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

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

Posted: Fri Nov 15, 2019 12:50 pm
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

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

Posted: Fri Nov 15, 2019 12:55 pm
by kmartin2007
oh this was installed from packages on ubuntu server 18

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

Posted: Fri Nov 15, 2019 12:57 pm
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
}

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

Posted: Fri Nov 15, 2019 12:59 pm
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.

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

Posted: Fri Nov 15, 2019 1:00 pm
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)

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

Posted: Fri Nov 15, 2019 1:02 pm
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

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

Posted: Fri Nov 15, 2019 1:08 pm
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