126 Out of bounds

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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: 126 Out of bounds

Post 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 1250 times
Be sure to check out our Knowledgebase for helpful articles and solutions!
dario.quiroz
Posts: 7
Joined: Tue Feb 11, 2014 9:46 am

Re: 126 Out of bounds

Post by dario.quiroz »

REALLY SORRY!! The problema was SELinux!!!
chcon --reference check_oracle check_link and is running ok now!!
I repeat, sorry!!!!
Thanks!!
Locked