Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-12-2005, 02:49 AM
|
#1
|
LQ Newbie
Registered: Aug 2005
Posts: 2
Rep:
|
Nagios - Return code of 127 for check of service
Hi guys
I have the port 5666 running localhost as well as remotely.
Plugins are placed in /usr/local/nagios/libexec/
all the check_commands* are there.
If I run the command manually then I get the response remotely as well
as locally see below.
[root@wninpx01 etc]# /usr/local/nagios/libexec/check_http -H 10.33.16.78
HTTP OK HTTP/1.1 200 OK - 12270 bytes in 0.004 seconds
|time=0.004346s;;;0.000000 size=12270B;;;0
checkcommands.cfg
define command{
command_name check_http
command_line $USER1$/check_http -H $HOSTADDRESS$
}
resource.cfg file has the following line
$USER1$=/usr/local/nagios/libexec
I have also tried manually giving the full path in the file chekcommands.cfg
# 'check_http' command definition
define command{
command_name check_http
command_line /usr/local/nagios/libexec/check_http -H 10.33.16.78
}
This still wont start my webbased to show the services running
The following is the logs
Aug 12 07:01:39 wninpx01 nagios: Warning: Return code of 127 for check
of service 'HTTP' on host 'cluster3' was out of bounds. Make sure the
plugin you're trying to run actually exists.
Aug 12 07:02:39 wninpx01 nagios: Warning: Return code of 127 for check
of service 'IMAP' on host 'cluster3' was out of bounds. Make sure the
plugin you're trying to run actually exists.
Could someone please help !!
Regards
- Sriram Sreedhar (sriramsreedhar@gmail.com)
|
|
|
08-12-2005, 06:16 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Never ran into this, but my first guess would be that
the user nagios it run as doesn't have perms on the
files/directories.
Cheers,
Tink
|
|
|
08-14-2005, 03:21 AM
|
#3
|
LQ Newbie
Registered: Aug 2005
Posts: 2
Original Poster
Rep:
|
Thanks tink
Its started working now ...
dont know what went wrong ... I will definitely try to figure out post that out ...
I have reset the permissions and it started working ... although permissions previously given were all ok
can u help me on check_disk command options
Ip I connect to is 10.34.1.7
and it has got the folowing disks mounted
[root@cluster3 nrpe-2.0]# df -ah
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 132G 5.5G 120G 5% /
none 0 0 0 - /proc
usbdevfs 0 0 0 - /proc/bus/usb
/dev/sda1 99M 9.3M 84M 10% /boot
none 0 0 0 - /dev/pts
none 503M 0 503M 0% /dev/shm
I want this to list if more than 50 % usage
Can u tell me how I can use the command line
|
|
|
02-19-2014, 04:08 PM
|
#4
|
LQ Newbie
Registered: Feb 2014
Posts: 1
Rep: 
|
Solved
Return code of 127 for check of service 'HTTP' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists
you need to change the plugin path. it seems that you have installed plugin more than once.
to do that:
find your resource.cfg
vi /etc/nagios/private/resource.cfg
old plugin path---------
#$USER1$=/usr/lib/nagios/plugins
new plugin path---------
$USER1$=/usr/local/nagios/libexec
then restart nagios
GOOD LUCK
|
|
1 members found this post helpful.
|
02-22-2014, 04:54 PM
|
#5
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,474
|
Quote:
Originally Posted by ramikhshan
Return code of 127 for check of service 'HTTP' on host 'localhost' was out of bounds. Make sure the plugin you're trying to run actually exists you need to change the plugin path. it seems that you have installed plugin more than once. to do that:
find your resource.cfg
vi /etc/nagios/private/resource.cfg
old plugin path---------
#$USER1$=/usr/lib/nagios/plugins
new plugin path---------
$USER1$=/usr/local/nagios/libexec
then restart nagios
|
...and since this thread has been closed for NINE YEARS before you posted this, I think the OP had already solved the problem....
|
|
|
11-14-2016, 03:32 PM
|
#6
|
LQ Newbie
Registered: Jan 2014
Posts: 2
Rep: 
|
The problem is still relevant even if the original poster is resolved
Never assume a question is only of interest to the original poster.
Here I am in 2016 finding the answer provided gave me a clue on a configuration error I had for a minute.
|
|
|
All times are GMT -5. The time now is 08:25 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|