Page 2 of 2

Re: 126 Out of bounds

Posted: Wed Feb 12, 2014 3:45 pm
by lmiltchev
What is the output of the following command?

Code: Select all

grep USER1 /usr/local/nagios/etc/resource.cfg
BTW, the check is working for me just fine... Here's what I have:

Code: Select all

define command{
command_name check_link
command_line $USER1$/check_link -H $HOSTADDRESS$
}

Code: Select all

define service{
use generic-service
host_name localhost
service_description Link Status
check_command check_link

Code: Select all

[root@localhost libexec]# ./check_link
test-ok
example.PNG
example.PNG (1.99 KiB) Viewed 1252 times

Re: 126 Out of bounds

Posted: Thu Feb 13, 2014 3:16 pm
by dario.quiroz
REALLY SORRY!! The problema was SELinux!!!
chcon --reference check_oracle check_link and is running ok now!!
I repeat, sorry!!!!
Thanks!!