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

Cardiff - ML ml at cardiff.fr
Wed Nov 22 18:53:50 CET 2006


 I  may be wrong in ML subscription and was hesitating wether to post here
or in plugin ML...
 
I have a problem trying to execute a nrpe daemon in order to monitor under
nagios 2 different linux servers... 
 
I have setup nagios on Main server, which works since approx 2 years without
any problems...
 
I have followed the readme guide in nrpe setup and applied precisely what
was put in it
I have in order to setup nrpe added the following lines in my server.cfg on
Main server (the bigger.cfg sample adapted to my server)
 
############################################################################
###
# HOST DEFINITIONS
############################################################################
###
 
# pluton host definition
define host{
        use                             generic-host
 
        host_name                       pluton
        alias                           Serveur Pluton
        address                 193.XXX.XXX.XXX
        check_command           check-host-alive
        max_check_attempts      10
        notification_interval   120
        notification_period     24x7
        notification_options    d,u,r
        contact_groups          admins
        }
 
############################################################################
###
# Command DEFINITIONS
############################################################################
###
 
define command{
        command_name    check_nrpe
        command_line    /usr/local/nagios/libexec/check_nrpe -H
$HOSTADDRESS$ -c $ARG1$
        }
 
############################################################################
###
# Service DEFINITIONS
############################################################################
###
# Define a service to check the load on the local machine.
define service{
        use                                     generic-service
        host_name                               pluton
        service_description             Current Load
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              4
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  admins
        notification_interval           120
        notification_period             24x7
        check_command
check_nrpe!check_local_load!0.40,0.20,0.10!0.75,0.5,0.25
}
 
 
On the remote server (the one having the plugin,
I have installed Xinetd and resolved all openssl dependecies problems, and
install filed nrpe in xinet.d containing following :
# default: on
# description: NRPE
service nrpe
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = nagios
server = /usr/local/nagios/
server_args = -c /usr/local/nagios/ --inetd
log_on_failure += USERID
only_from = 195.XX.XX.XXX  #Main Server IP
}

I have also the following files on the remote server :
[root at xxxx nagios]# ls -aRl /usr/local/nagios/
/usr/local/nagios/:
total 98
drwxr-xr-x   4 root root   144 nov 22 16:55 .
drwxr-xr-x  15 root root   360 nov 22 10:25 ..
drwxr-xr-x   2 root root    96 nov 22 16:58 bin
drwxr-xr-x   2 root root  1912 nov 22 17:48 libexec
-rw-r--r--   1 root root 86892 nov 22 10:17 nrpe
-rw-r--r--   1 root root  6710 nov 22 14:10 nrpe.cfg
 
/usr/local/nagios/bin:
total 96
drwxr-xr-x  2 root root    96 nov 22 16:58 .
drwxr-xr-x  4 root root   144 nov 22 16:55 ..
-rw-r--r--  1 root root 86892 nov 22 10:17 nrpe
-rw-r--r--  1 root root  6710 nov 22 17:00 nrpe.cfg
 
/usr/local/nagios/libexec:
total 5552
drwxr-xr-x  2 root root    1912 nov 22 17:48 .
drwxr-xr-x  4 root root     144 nov 22 16:55 ..
-rwxr-xr-x  1 root root  224109 nov 20 19:18 check_apt
-rwxr-xr-x  1 root root    2265 nov 20 19:18 check_breeze
-rwxr-xr-x  1 root root   61619 nov 20 19:18 check_by_ssh
-rwxr-xr-x  1 root root   87063 nov 20 19:18 check_clamd
-rwxr-xr-x  1 root root   61478 nov 20 19:18 check_dhcp
-rwxr-xr-x  1 root root   58725 nov 20 19:18 check_dig
-rwxr-xr-x  1 root root   79871 nov 20 19:18 check_disk
-rwxr-xr-x  1 root root    8168 nov 20 19:18 check_disk_smb
-rwxr-xr-x  1 root root   63852 nov 20 19:18 check_dns
-rwxr-xr-x  1 root root   33487 nov 20 19:18 check_dummy
-rwxr-xr-x  1 root root    3233 nov 20 19:18 check_file_age
-rwxr-xr-x  1 root root    6400 nov 20 19:18 check_flexlm
-rwxr-xr-x  1 root root   87063 nov 20 19:18 check_ftp
-rwxr-xr-x  1 root root  289240 nov 20 19:18 check_http
-rwxr-xr-x  1 root root   70939 nov 20 19:18 check_icmp
-rwxr-xr-x  1 root root   15292 nov 20 19:18 check_ifoperstatus
-rwxr-xr-x  1 root root   12858 nov 20 19:18 check_ifstatus
-rwxr-xr-x  1 root root   87063 nov 20 19:18 check_imap
-rwxr-xr-x  1 root root    7437 nov 20 19:18 check_ircd
-rwxr-xr-x  1 root root   87063 nov 20 19:18 check_jabber
-rwxr-xr-x  1 root root   46912 nov 20 19:18 check_load
-rwxr-xr-x  1 root root    6043 nov 20 19:18 check_log
-rwxr-xr-x  1 root root   20369 nov 20 19:18 check_mailq
-rwxr-xr-x  1 root root   43224 nov 20 19:18 check_mrtg
-rwxr-xr-x  1 root root   41904 nov 20 19:18 check_mrtgtraf
-rwxr-xr-x  1 root root 1063904 nov 20 19:18 check_mysql
-rwxr-xr-x  1 root root 1060417 nov 20 19:18 check_mysql_query
-rwxr-xr-x  1 root root   49443 nov 20 19:18 check_nagios
-rwxr-xr-x  1 root root   87063 nov 20 19:18 check_nntp
-rwxr-xr-x  1 root root   87063 nov 20 19:18 check_nntps
-rwxr-xr-x  1 root root   63407 nov 20 19:18 check_nt
-rwxr-xr-x  1 root root   64457 nov 20 19:18 check_ntp
-rwxr-xr-x  1 root root   83989 nov 20 19:18 check_nwstat
-rwxr-xr-x  1 root root    8325 nov 20 19:18 check_oracle
-rwxr-xr-x  1 root root   53931 nov 20 19:18 check_overcr
-rwxr-xr-x  1 root root   66861 nov 20 19:18 check_ping
-rwxr-xr-x  1 root root   87063 nov 20 19:18 check_pop
-rwxr-xr-x  1 root root   64414 nov 20 19:18 check_procs
-rwxr-xr-x  1 root root   51533 nov 20 19:18 check_real
-rwxr-xr-x  1 root root    9712 nov 20 19:18 check_rpc
-rwxr-xr-x  1 root root    1176 nov 20 19:18 check_sensors
-rwxr-xr-x  1 root root   87063 nov 20 19:18 check_simap
-rwxr-xr-x  1 root root  261293 nov 20 19:18 check_smtp
-rwxr-xr-x  1 root root   87063 nov 20 19:18 check_spop
-rwxr-xr-x  1 root root   48117 nov 20 19:18 check_ssh
-rwxr-xr-x  1 root root   87063 nov 20 19:18 check_ssmtp
-rwxr-xr-x  1 root root   51171 nov 20 19:18 check_swap
-rwxr-xr-x  1 root root   87063 nov 20 19:18 check_tcp
-rwxr-xr-x  1 root root   51640 nov 20 19:18 check_time
-rwxr-xr-x  1 root root   87063 nov 20 19:18 check_udp
-rwxr-xr-x  1 root root   87063 nov 20 19:18 check_udp2
-rwxr-xr-x  1 root root   59081 nov 20 19:18 check_ups
-rwxr-xr-x  1 root root   46026 nov 20 19:18 check_users
-rwxr-xr-x  1 root root    3024 nov 20 19:18 check_wave
-rwxr-xr-x  1 root root   46426 nov 20 19:18 negate
-rwxr-xr-x  1 root root   45739 nov 20 19:18 urlize
-rwxr-xr-x  1 root root    2037 nov 20 19:18 utils.pm
-rwxr-xr-x  1 root root     860 nov 20 19:18 utils.sh
 
when i test the check_xxxx it works...
exemple : 
[root at xxxx nagios]# /usr/local/nagios/libexec/check_load -w 0.40,0.20,0.10
-c 0.75,0.5,0.25
OK - load average: 0.00, 0.00, 0.00|load1=0.000;0.400;0.750;0;
load5=0.000;0.200;0.500;0; load15=0.000;0.100;0.250;0;
 
yet when nrpe plugin is called from main server it doesn't get information
all i get is this :
		CRITICAL	 22-11-2006 18:15:50	 0d 1h 26m 3s	 4/4

(Return code of 127 is out of bounds - plugin may be missing) 
 
I can't manage to get nrpe sent information to main server...
 
What is wrong or what have i forgotten ???
 
PS : I have noticed somewhere, (don't remember which site or which guide),
that nrpe needs to be started in init.d, though being a newbie in linux
commands i don't get to find how to do this...
 
If anyone could help me, and explain me what is needed on a Fedora Core 4
box, to make nrpe run correctly, 
i'd appreciate your answers and advices to get this plugin working... 
 
Yours..
 
Tugdual deLassat
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20061122/8d30d30c/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list