<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 10pt; color: #000000'><style>p { margin: 0; }</style><link href="/zimbra/css/msgview.css?v=080626022332" rel="stylesheet"><div style="font-family: Arial; font-size: 10pt; color: rgb(0, 0, 0);">Jonathan,<br><br>make sure that you have the xinetd installed and check if there is the following directory:<br>
<br>
[root@fernando ~]# ls /etc/xinetd.d/<br>
chargen-dgram   daytime-dgram   discard-dgram   echo-dgram   eklogin       gssftp  krb5-telnet  ktalk  rsync          time-dgram<br>
chargen-stream  daytime-stream  discard-stream  echo-stream 
ekrb5-telnet  klogin  kshell       nrpe   tcpmux-server  time-stream<br>
<br>if you don't have that, try to install by apt-get!<br><br>
and then, run the command again<br><br><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">Make install-xinetd</span></font><br><br>or you can install just writing a file like this:<br>
[root@fernando ~]# cat /etc/xinetd.d/nrpe <br>
service nrpe<br>
{<br>
        flags = REUSE<br>
        socket_type = stream<br>
        wait = no<br>
        only_from = 127.0.0.1 (PUT YOURS NARIOS SERVER'S IPS HERE)<br>
        user = nagios (PUT THE NAGIOS USER HERE)<br>
        server = /usr/local/nagios/libexec/nrpe (THE NRPE SERVER)<br>
        server_args = -c /usr/local/nagios/libexec/nrpe.cfg --inetd (THE NRPE CONFIG FILE)<br>
        log_on_failure += USERID<br>
        disable = no<br>
}<br><br>and then restart xinetd!<br><br><div>Fernando Rocha<br>OpServices Tecnologia da Informação</div><br>----- Original Message -----<br>From: "Jonathan Williams" <jonathan.williams@us.g4s.com><br>To: "Fernando Rocha" <fernando.rocha@opservices.com.br><br>Sent: Monday, July 14, 2008 7:07:57 PM (GMT-0300) Auto-Detected<br>Subject: RE: [Nagios-users] Help - I am unable to get the NSClient++ to restart services<br><br>





<style></style>



<div class="Section1">

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">I was able to
compile that without ssl and was able to install the pugin’s using the
following</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;"> </span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">Make
install-plugin</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">Make install-daemon</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">Make install-daemon-config</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;"> </span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">Those worked
finer however the next step says:</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;"> </span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">Install the NRPE
daemon as a service under xinetd</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">Make install-xinetd</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;"> </span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">I run that
command and get:</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">root@nagiosserver:-
/downloads/nrpe-2.8# cannot create regular file ‘/ect/xinetd.d/nrpe’
No such file or directory</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">make: ***
[install-xinetd] Error 1</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;"> </span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">Any thoughts??</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;"> </span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">Thanks,</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;"> </span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">Jon</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;"> </span></font></p>

<div>

<div class="MsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<hr size="2" width="100%" align="center">

</span></font></div>

<p class="MsoNormal"><b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2"><span style="font-size: 10pt; font-family: Tahoma;"> Fernando Rocha
[mailto:fernando.rocha@opservices.com.br] <br>
<b><span style="font-weight: bold;">Sent:</span></b> Monday, July 14, 2008 11:49
AM<br>
<b><span style="font-weight: bold;">To:</span></b> Jonathan Williams<br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [Nagios-users] Help -
I am unable to get the NSClient++ to restart services</span></font></p>

</div>

<p class="MsoNormal"><font face="Times New Roman" size="3"><span style="font-size: 12pt;"> </span></font></p>

<div>

<p class="MsoNormal" style="margin-bottom: 12pt;"><font face="Arial" size="2" color="black"><span style="font-size: 10pt; font-family: Arial; color: black;">Hi
Jonathan!<br>
<br>
try to use the option --disable-ssl when you run ./configure</span></font></p>

<div>

<p class="MsoNormal"><font face="Arial" size="2" color="black"><span style="font-size: 10pt; font-family: Arial; color: black;">Fernando Rocha<br>
OpServices Tecnologia da Informação</span></font></p>

</div>

<p class="MsoNormal" style="margin-bottom: 12pt;"><font face="Arial" size="2" color="black"><span style="font-size: 10pt; font-family: Arial; color: black;"><br>
<br>
----- Original Message -----<br>
From: "Jonathan Williams" <jonathan.williams@us.g4s.com><br>
To: "Paulo Ribas" <paulo.ribas@opservices.com.br><br>
Cc: nagios-users@lists.sourceforge.net<br>
Sent: Monday, July 14, 2008 11:52:48 AM (GMT-0300) Auto-Detected<br>
Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart
services</span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">I am having a
little trouble installing the NRPE 2.8 plug in Ubuntu.  I am able to
extract the source code tarball and than I am having issues after that. 
Per the instructions I am trying to compile the NRPE add-on by running</span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;"> </span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">./configure</span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">make all</span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;"> </span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">After I type <i><span style="font-style: italic;">./configure</span></i> I get a message at the end of
the compile job saying “configuration error: Cannot find ssl
libraries.  Than if I try to go further by installing the plugins by
typing <i><span style="font-style: italic;">make all</span></i> or the individual
<i><span style="font-style: italic;">make install-pluggin </span></i>I get an
error saying ** No rule to make target ‘all’.  Stop.  </span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;"> </span></font><font color="black"><span style="color: black;"></span></font></p>

<div>

<div class="MsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3" color="black"><span style="font-size: 12pt; color: black;">

<hr size="2" width="100%" align="center">

</span></font></div>

<p class="MsoNormal"><b><font face="Tahoma" size="2" color="black"><span style="font-size: 10pt; font-family: Tahoma; color: black; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2" color="black"><span style="font-size: 10pt; font-family: Tahoma; color: black;"> Paulo Ribas [mailto:paulo.ribas@opservices.com.br] <br>
<b><span style="font-weight: bold;">Sent:</span></b> Friday, July 11, 2008 2:04
PM<br>
<b><span style="font-weight: bold;">To:</span></b> Jonathan Williams<br>
<b><span style="font-weight: bold;">Subject:</span></b> Re: [Nagios-users] Help -
I am unable to get the NSClient++ to restart services</span></font><font color="black"><span style="color: black;"></span></font></p>

</div>

<p class="MsoNormal"><font face="Times New Roman" size="3" color="black"><span style="font-size: 12pt; color: black;"> </span></font></p>

<div>

<p class="MsoNormal" style="margin-bottom: 12pt;"><font face="Verdana" size="2" color="black"><span style="font-size: 10pt; font-family: Verdana; color: black;">Ok,
If you need, contact me.</span></font><font color="black"><span style="color: black;"></span></font></p>

<div>

<p class="MsoNormal" style="margin-bottom: 12pt;"><font face="Verdana" size="2" color="black"><span style="font-size: 10pt; font-family: Verdana; color: black;">[]'s<br>
--</span></font><font color="black"><span style="color: black;"></span></font></p>

</div>

<p class="MsoNormal"><font face="Verdana" size="2" color="black"><span style="font-size: 10pt; font-family: Verdana; color: black;"><br>
<br>
----- "Jonathan Williams" wrote: <br>
> </span></font><font color="black"><span style="color: black;"></span></font></p>

<div>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">I found the NRPE
add-on (not plug-in) so I will download and install that.  I’ll let
you know if I run into anything.  You have been more than helpful.</span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;"> </span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">Thanks,</span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;"> </span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">Jon</span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;"> </span></font><font color="black"><span style="color: black;"></span></font></p>

<div>

<div class="MsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3" color="black"><span style="font-size: 12pt; color: black;">

<hr size="2" width="100%" align="center">

</span></font></div>

<p class="MsoNormal"><b><font face="Tahoma" size="2" color="black"><span style="font-size: 10pt; font-family: Tahoma; color: black; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2" color="black"><span style="font-size: 10pt; font-family: Tahoma; color: black;"> Paulo Ribas [mailto:paulo.ribas@opservices.com.br] <br>
> <b><span style="font-weight: bold;">Sent:</span></b> Friday, July 11, 2008
1:49 PM<br>
> <b><span style="font-weight: bold;">To:</span></b> Jonathan Williams<br>
> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Nagios-users]
Help - I am unable to get the NSClient++ to restart services</span></font><font color="black"><span style="color: black;"></span></font></p>

</div>

<p class="MsoNormal"><font face="Times New Roman" size="3" color="black"><span style="font-size: 12pt; color: black;"> </span></font></p>

<div>

<p class="MsoNormal" style="margin-bottom: 12pt;"><font face="Verdana" size="2" color="black"><span style="font-size: 10pt; font-family: Verdana; color: black;">check_nrpe
is part of the package nrpe, if you use ubuntu, I believe that only an
"apt-get install nrpe" solve your problem.</span></font><font color="black"><span style="color: black;"></span></font></p>

<div>

<p class="MsoNormal"><font face="Verdana" size="2" color="black"><span style="font-size: 10pt; font-family: Verdana; color: black;">[]'s<br>
> --<br>
> </span></font><font color="black"><span style="color: black;"></span></font></p>

</div>

<p class="MsoNormal"><font face="Verdana" size="2" color="black"><span style="font-size: 10pt; font-family: Verdana; color: black;"><br>
> <br>
> ----- "Jonathan Williams" wrote: <br>
> > </span></font><font color="black"><span style="color: black;"></span></font></p>

<div>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">OK.. I do not
have check_nrpe so apparently I need to download that plug-in on by Ubuntu box.</span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;"> </span></font><font color="black"><span style="color: black;"></span></font></p>

<div>

<div class="MsoNormal" style="text-align: center;" align="center"><font face="Times New Roman" size="3" color="black"><span style="font-size: 12pt; color: black;">

<hr size="2" width="100%" align="center">

</span></font></div>

<p class="MsoNormal"><b><font face="Tahoma" size="2" color="black"><span style="font-size: 10pt; font-family: Tahoma; color: black; font-weight: bold;">From:</span></font></b><font face="Tahoma" size="2" color="black"><span style="font-size: 10pt; font-family: Tahoma; color: black;"> Paulo Ribas [mailto:paulo.ribas@opservices.com.br] <br>
> > <b><span style="font-weight: bold;">Sent:</span></b> Friday, July 11,
2008 1:42 PM<br>
> > <b><span style="font-weight: bold;">To:</span></b> Jonathan Williams<br>
> > <b><span style="font-weight: bold;">Subject:</span></b> Re:
[Nagios-users] Help - I am unable to get the NSClient++ to restart services</span></font><font color="black"><span style="color: black;"></span></font></p>

</div>

<p class="MsoNormal"><font face="Times New Roman" size="3" color="black"><span style="font-size: 12pt; color: black;"> </span></font></p>

<div>

<p class="MsoNormal" style="margin-bottom: 12pt;"><font face="Verdana" size="2" color="black"><span style="font-size: 10pt; font-family: Verdana; color: black;">The
commando must be:<br>
> > <br>
> > </span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal"><font face="Courier" size="1" color="black"><span style="font-size: 9pt; font-family: Courier; color: black;">define command{</span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal" style="text-indent: 0.5in;"><font face="Courier" size="1" color="black"><span style="font-size: 9pt; font-family: Courier; color: black;">command_name
        restart-Spooler</span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal" style="text-indent: 0.5in;"><font face="Courier" size="1" color="black"><span style="font-size: 9pt; font-family: Courier; color: black;">command_line
        PATH/</span></font><font face="Verdana" size="2" color="black"><span style="font-size: 10pt; font-family: Verdana; color: black;">check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c service_control -a
"Spooler" start</span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal"><font face="Courier" size="1" color="black"><span style="font-size: 9pt; font-family: Courier; color: black;">}</span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal" style="margin-bottom: 12pt;"><font face="Verdana" size="2" color="black"><span style="font-size: 10pt; font-family: Verdana; color: black;"><br>
> > <br>
> > ex:</span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal"><font face="Courier" size="1" color="black"><span style="font-size: 9pt; font-family: Courier; color: black;">define command{</span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal" style="text-indent: 0.5in;"><font face="Courier" size="1" color="black"><span style="font-size: 9pt; font-family: Courier; color: black;">command_name
        restart-Spooler</span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal" style="text-indent: 0.5in;"><font face="Courier" size="1" color="black"><span style="font-size: 9pt; font-family: Courier; color: black;">command_line
        /usr/local/nagios/libexec/</span></font><font face="Verdana" size="2" color="black"><span style="font-size: 10pt; font-family: Verdana; color: black;">check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c service_control -a
"Spooler" start</span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal"><font face="Courier" size="1" color="black"><span style="font-size: 9pt; font-family: Courier; color: black;">}</span></font><font color="black"><span style="color: black;"></span></font></p>

<div>

<div>

<div>

<p class="MsoNormal"><font face="Verdana" size="2" color="black"><span style="font-size: 10pt; font-family: Verdana; color: black;">risk being sent to
/dev/null</span></font><font color="black"><span style="color: black;"></span></font></p>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

<p class="MsoNormal"><font face="Arial" size="2" color="black"><span style="font-size: 10pt; font-family: Arial; color: black;"><br>
------------------------------------------------------------------------- Sponsored
by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that
voting for your favorite open source project, along with a healthy diet,
reduces your potential for chronic lameness and boredom. Vote Now at
http://www.sourceforge.net/community/cca08<br>
_______________________________________________ Nagios-users mailing list
Nagios-users@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</span></font></p>

</div>

</div>

</div></div></body></html>