<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=625595816-22112006><FONT face=Arial><FONT 
size=2><SPAN class=921355317-22112006><FONT 
color=#0000ff> I </FONT></SPAN> may be wrong in ML subscription 
and was hesitating wether to post here or in plugin 
ML...</FONT></FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=625595816-22112006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=625595816-22112006>I have a problem 
trying to execute a nrpe daemon in order to monitor under nagios 2 different 
linux servers... </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=625595816-22112006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=625595816-22112006>I have setup nagios 
on Main server, which works since approx 2 years without any 
problems...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=625595816-22112006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=625595816-22112006>I have followed the 
readme guide in nrpe setup and applied precisely what was put in 
it</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=625595816-22112006>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)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=625595816-22112006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=625595816-22112006>###############################################################################<BR># 
HOST 
DEFINITIONS<BR>###############################################################################</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=625595816-22112006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=625595816-22112006># pluton host 
definition<BR>define host{<BR>        
use                             
generic-host</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=625595816-22112006>        
host_name                       
pluton<BR>        
alias                           
Serveur Pluton<BR>        
address                 
193.XXX.XXX.XXX<BR>        
check_command           
check-host-alive<BR>        
max_check_attempts      
10<BR>        
notification_interval   
120<BR>        
notification_period     
24x7<BR>        
notification_options    d,u,r</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=625595816-22112006>        
contact_groups          
admins<BR>        }</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=625595816-22112006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=625595816-22112006>###############################################################################<BR># 
Command 
DEFINITIONS<BR>###############################################################################</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=625595816-22112006>define 
command{<BR>        
command_name    
check_nrpe<BR>        
command_line    /usr/local/nagios/libexec/check_nrpe -H 
$HOSTADDRESS$ -c $ARG1$<BR>        
}</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=625595816-22112006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=625595816-22112006><SPAN 
class=625595816-22112006>###############################################################################<BR># 
Service 
DEFINITIONS<BR>###############################################################################</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=625595816-22112006># Define a service 
to check the load on the local machine.<BR>define 
service{<BR>        
use                                     
generic-service</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=625595816-22112006>        
host_name                               
pluton<BR>        
service_description             
Current Load<BR>        
is_volatile                     
0<BR>        
check_period                    
24x7<BR>        
max_check_attempts              
4<BR>        
normal_check_interval           
5<BR>        
retry_check_interval            
1<BR>        
contact_groups                  
admins<BR>        
notification_interval           120<BR>        
notification_period             
24x7<BR>        
check_command                   
check_nrpe!check_local_load!0.40,0.20,0.10!0.75,0.5,0.25<BR>}</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=625595816-22112006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=625595816-22112006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=625595816-22112006>On the remote server 
(the one having the plugin,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=625595816-22112006>I have installed 
Xinetd and resolved all openssl dependecies problems, and install filed nrpe in 
xinet.d containing following :</SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=625595816-22112006><FONT face=Arial size=2>
<P># default: on<BR># description: NRPE<BR>service nrpe<BR>{<BR>disable = 
no<BR>flags = REUSE<BR>socket_type = stream<BR>wait = no<BR>user = 
nagios<BR>server = /usr/local/nagios/<BR>server_args = -c /usr/local/nagios/ 
--inetd<BR>log_on_failure += USERID<BR>only_from = 195.<SPAN 
class=625595816-22112006>XX.XX.XXX  #Main Server 
IP</SPAN><BR>}</P></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=625595816-22112006>I have also 
the following files on the remote server :</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=625595816-22112006>[root@xxxx nagios]# 
ls -aRl /usr/local/nagios/<BR>/usr/local/nagios/:<BR>total 
98<BR>drwxr-xr-x   4 root root   144 nov 22 16:55 
.<BR>drwxr-xr-x  15 root root   360 nov 22 10:25 
..<BR>drwxr-xr-x   2 root root    96 nov 22 16:58 
bin<BR>drwxr-xr-x   2 root root  1912 nov 22 17:48 
libexec<BR>-rw-r--r--   1 root root 86892 nov 22 10:17 
nrpe<BR>-rw-r--r--   1 root root  6710 nov 22 14:10 
nrpe.cfg</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=625595816-22112006>/usr/local/nagios/bin:<BR>total 96<BR>drwxr-xr-x  
2 root root    96 nov 22 16:58 .<BR>drwxr-xr-x  4 root 
root   144 nov 22 16:55 ..<BR>-rw-r--r--  1 root root 86892 nov 
22 10:17 nrpe<BR>-rw-r--r--  1 root root  6710 nov 22 17:00 
nrpe.cfg</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=625595816-22112006>/usr/local/nagios/libexec:<BR>total 
5552<BR>drwxr-xr-x  2 root root    1912 nov 22 17:48 
.<BR>drwxr-xr-x  4 root root     144 nov 22 16:55 
..<BR>-rwxr-xr-x  1 root root  224109 nov 20 19:18 
check_apt<BR>-rwxr-xr-x  1 root root    2265 nov 20 19:18 
check_breeze<BR>-rwxr-xr-x  1 root root   61619 nov 20 19:18 
check_by_ssh<BR>-rwxr-xr-x  1 root root   87063 nov 20 19:18 
check_clamd<BR>-rwxr-xr-x  1 root root   61478 nov 20 19:18 
check_dhcp<BR>-rwxr-xr-x  1 root root   58725 nov 20 19:18 
check_dig<BR>-rwxr-xr-x  1 root root   79871 nov 20 19:18 
check_disk<BR>-rwxr-xr-x  1 root root    8168 nov 20 19:18 
check_disk_smb<BR>-rwxr-xr-x  1 root root   63852 nov 20 19:18 
check_dns<BR>-rwxr-xr-x  1 root root   33487 nov 20 19:18 
check_dummy<BR>-rwxr-xr-x  1 root root    3233 nov 20 19:18 
check_file_age<BR>-rwxr-xr-x  1 root root    6400 nov 20 
19:18 check_flexlm<BR>-rwxr-xr-x  1 root root   87063 nov 20 
19:18 check_ftp<BR>-rwxr-xr-x  1 root root  289240 nov 20 19:18 
check_http<BR>-rwxr-xr-x  1 root root   70939 nov 20 19:18 
check_icmp<BR>-rwxr-xr-x  1 root root   15292 nov 20 19:18 
check_ifoperstatus<BR>-rwxr-xr-x  1 root root   12858 nov 20 
19:18 check_ifstatus<BR>-rwxr-xr-x  1 root root   87063 nov 20 
19:18 check_imap<BR>-rwxr-xr-x  1 root root    7437 nov 20 
19:18 check_ircd<BR>-rwxr-xr-x  1 root root   87063 nov 20 19:18 
check_jabber<BR>-rwxr-xr-x  1 root root   46912 nov 20 19:18 
check_load<BR>-rwxr-xr-x  1 root root    6043 nov 20 19:18 
check_log<BR>-rwxr-xr-x  1 root root   20369 nov 20 19:18 
check_mailq<BR>-rwxr-xr-x  1 root root   43224 nov 20 19:18 
check_mrtg<BR>-rwxr-xr-x  1 root root   41904 nov 20 19:18 
check_mrtgtraf<BR>-rwxr-xr-x  1 root root 1063904 nov 20 19:18 
check_mysql<BR>-rwxr-xr-x  1 root root 1060417 nov 20 19:18 
check_mysql_query<BR>-rwxr-xr-x  1 root root   49443 nov 20 19:18 
check_nagios<BR>-rwxr-xr-x  1 root root   87063 nov 20 19:18 
check_nntp<BR>-rwxr-xr-x  1 root root   87063 nov 20 19:18 
check_nntps<BR>-rwxr-xr-x  1 root root   63407 nov 20 19:18 
check_nt<BR>-rwxr-xr-x  1 root root   64457 nov 20 19:18 
check_ntp<BR>-rwxr-xr-x  1 root root   83989 nov 20 19:18 
check_nwstat<BR>-rwxr-xr-x  1 root root    8325 nov 20 19:18 
check_oracle<BR>-rwxr-xr-x  1 root root   53931 nov 20 19:18 
check_overcr<BR>-rwxr-xr-x  1 root root   66861 nov 20 19:18 
check_ping<BR>-rwxr-xr-x  1 root root   87063 nov 20 19:18 
check_pop<BR>-rwxr-xr-x  1 root root   64414 nov 20 19:18 
check_procs<BR>-rwxr-xr-x  1 root root   51533 nov 20 19:18 
check_real<BR>-rwxr-xr-x  1 root root    9712 nov 20 19:18 
check_rpc<BR>-rwxr-xr-x  1 root root    1176 nov 20 19:18 
check_sensors<BR>-rwxr-xr-x  1 root root   87063 nov 20 19:18 
check_simap<BR>-rwxr-xr-x  1 root root  261293 nov 20 19:18 
check_smtp<BR>-rwxr-xr-x  1 root root   87063 nov 20 19:18 
check_spop<BR>-rwxr-xr-x  1 root root   48117 nov 20 19:18 
check_ssh<BR>-rwxr-xr-x  1 root root   87063 nov 20 19:18 
check_ssmtp<BR>-rwxr-xr-x  1 root root   51171 nov 20 19:18 
check_swap<BR>-rwxr-xr-x  1 root root   87063 nov 20 19:18 
check_tcp<BR>-rwxr-xr-x  1 root root   51640 nov 20 19:18 
check_time<BR>-rwxr-xr-x  1 root root   87063 nov 20 19:18 
check_udp<BR>-rwxr-xr-x  1 root root   87063 nov 20 19:18 
check_udp2<BR>-rwxr-xr-x  1 root root   59081 nov 20 19:18 
check_ups<BR>-rwxr-xr-x  1 root root   46026 nov 20 19:18 
check_users<BR>-rwxr-xr-x  1 root root    3024 nov 20 19:18 
check_wave<BR>-rwxr-xr-x  1 root root   46426 nov 20 19:18 
negate<BR>-rwxr-xr-x  1 root root   45739 nov 20 19:18 
urlize<BR>-rwxr-xr-x  1 root root    2037 nov 20 19:18 
utils.pm<BR>-rwxr-xr-x  1 root root     860 nov 20 
19:18 utils.sh</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=625595816-22112006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=625595816-22112006>when i test the 
check_xxxx it works...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=625595816-22112006>exemple : 
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=625595816-22112006>[root@xxxx nagios]# 
/usr/local/nagios/libexec/check_load -w 0.40,0.20,0.10 
-c 0.75,0.5,0.25<BR>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;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=625595816-22112006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=625595816-22112006>yet when nrpe plugin 
is called from main server it doesn't get information all i get is this 
:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=625595816-22112006>
<TABLE class=status width="100%" border=0>
  <TBODY>
  <TR>
    <TD><FONT size=2></FONT></TD>
    <TD class=statusBGCRITICAL><FONT size=2></FONT></TD>
    <TD class=statusCRITICAL><FONT size=2>CRITICAL</FONT></TD>
    <TD class=statusBGCRITICAL noWrap><FONT size=2>22-11-2006 
    18:15:50</FONT></TD>
    <TD class=statusBGCRITICAL noWrap><FONT size=2>0d 1h 26m 3s</FONT></TD>
    <TD class=statusBGCRITICAL><FONT size=2>4/4</FONT></TD>
    <TD class=statusBGCRITICAL>
      <DIV><FONT size=2>(Return code of 127 is out of bounds - plugin may be 
      missing)</FONT> </DIV></TD></TR></TBODY></TABLE></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=625595816-22112006><FONT face=Arial size=2>I can't manage to 
get nrpe sent information to main server...</FONT></SPAN></DIV>
<DIV><SPAN class=625595816-22112006><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=625595816-22112006><FONT face=Arial size=2>What is wrong or 
what have i forgotten ???</FONT></SPAN></DIV>
<DIV><SPAN class=625595816-22112006><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=625595816-22112006><FONT face=Arial size=2>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...</FONT></SPAN></DIV>
<DIV><SPAN class=625595816-22112006><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=625595816-22112006><FONT face=Arial size=2>If anyone could help 
me, and explain me what is needed on a Fedora Core 4 box, to make nrpe run 
correctly, </FONT></SPAN></DIV>
<DIV><SPAN class=625595816-22112006><FONT face=Arial size=2>i'd appreciate your 
answers and advices to get this plugin working... </FONT></SPAN></DIV>
<DIV><SPAN class=625595816-22112006><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=625595816-22112006><FONT face=Arial 
size=2>Yours..</FONT></SPAN></DIV>
<DIV><SPAN class=625595816-22112006><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=625595816-22112006><FONT face=Arial size=2>Tugdual 
deLassat</FONT></SPAN></DIV>
<DIV><SPAN class=625595816-22112006><FONT face=Arial 
size=2></FONT></SPAN> </DIV></BODY></HTML>