<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 10pt; color: #000000'>This is Portuguese and we'll translate that for the next release.<br><br><div>Fernando Rocha<br>OpServices Tecnologia da Informação</div><br><br>----- Original Message -----<br>From: "Jonathan Williams" <jonathan.williams@us.g4s.com><br>To: "Fernando Rocha" <fernando.rocha@opservices.com.br><br>Cc: "Nagios Users Mailinglist" <nagios-users@lists.sourceforge.net><br>Sent: Tuesday, July 15, 2008 7:42:56 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>

<link href="/zimbra/css/msgview.css?v=080626022332" rel="stylesheet">

<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;">OK, after some
searching I found another download of OpMonAgent and it has a lot more in it. 
The previous one had 3 files whereas this one has numerous .bat files and others.
However the ini is still in Spanish.  </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;">[NRPECOMMAND]</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;">;Usado para
testar se está funcionando o agente</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;">test=c:\opmon\test.bat</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;">;Usado para
verificar se existe algum serviço configurado como automático mas que não está rodando</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;">services=cmd /c
cscript //NOLOGO "c:\opmon\check_all_services.wsf"</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;">;Usado para
verificar se existe algum serviço configurado como automático mas que não está rodando, </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;">;porém ignora o
"Service Name" ou "Display Name" passado por parâmetro,
para mais de um separe por vírgula</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;">services_exclude=cmd
/c cscript //NOLOGO "c:\opmon\check_all_services.wsf" /exclude:$ARG1$</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;">;Usado de forma
genérica para plugins opservices.exe, passando por parâmetro
"nome_executável" e mais 8 possíveis parâmetros</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;">;onde um
parâmetro não usado deve-se passar 0</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;">check_remote=c:\opmon\check_remote.cmd
$ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$</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;">;Usado para
iniciar, parar ou restartar um serviço, deve-se passar por parâmetro o
"Service Name" e a "ação"(stop, start ou restart)</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;">service_control=c:\opmon\service-control.cmd
$ARG1$ $ARG2$</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;">;Lê o conteúdo de
um arquivo, que contenha uma linha com um valor</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;">read_file=c:\opmon\read_file.bat
$ARG1$</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 tried some
translator apps but a bad translation is probably harder to read than actual Spanish.</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> Tuesday, July 15, 2008 2:11
PM<br>
<b><span style="font-weight: bold;">To:</span></b> Jonathan Williams<br>
<b><span style="font-weight: bold;">Cc:</span></b> Nagios Users Mailinglist<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;">Jonathan,<br>
<br>
The client installed on the host doesn't matter if both of them have support to
nrpe. They will have a configuration file where you'll define the commands to
run over check_nrpe.<br>
<br>
NSClient++ uses NSC.ini<br>
OpMonAgent uses opmonagent.ini<br>
<br>
But to make it easy, the OpMonAgent has a command to restart services built-in
his configuration file.<br>
<br>
So, if you have the OpMonAgent running on host, you just need run the following
command from your nagios server:<br>
<br>
</span></font><font face="Courier New" size="2" color="black"><span style="font-size: 10pt; font-family: "Courier New"; color: black;">/usr/local/nagios/libexec/check_nrpe
-H $HOSTADDRESS$ -p 5666 -n -c service_control -a "spooler" start</span></font><font face="Arial" size="2" color="black"><span style="font-size: 10pt; font-family: Arial; color: black;"><br>
<br>
But, if you are using NSClient++ you need define a command into the
configuration file first, then you'll use this command in the check_nrpe.<br>
<br>
Fernando Rocha<br>
OpServices Tecnologia da Informação<br>
<br>
----- Original Message -----<br>
From: "Jonathan Williams" <jonathan.williams@us.g4s.com><br>
To: "Fernando Rocha" <fernando.rocha@opservices.com.br><br>
Cc: "Nagios Users Mailinglist" <nagios-users@lists.sourceforge.net><br>
Sent: Tuesday, July 15, 2008 4:57:07 PM (GMT-0300) Auto-Detected<br>
Subject: RE: [Nagios-users] Help - I am unable to get the NSClient++ to restart
services</span></font></p>

<div>

<p class="MsoNormal" style=""><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">I feel like I am back at square one.  It seems
like a simple task to get Nagios to restart a service.  I have NRPE now
running on the server under xinedt, and switched the client back to NSClient++
from OpMon Agent.  Both support NRPE.  I am not sure if I am supposed
to get a service restarted with a NRPE_Check command like:</span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal" style=""><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" style="text-indent: 0.5in;"><font face="Courier New" size="2" color="black"><span style="font-size: 10pt; font-family: "Courier New"; color: black;">/usr/local/nagios/libexec/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" style=""><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" style=""><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">Or am is supposed to create scripts on the host that
will restart a service like a .bat file with a “net start spooler” command and
than get an event_handler set up to call that script.  It seems there are
different ways to do it and I am being pulled both directions.  I am new
to Nagios as well as Linux and have been able to scrap my way thus far while
learning a lot about both, but am about ready to call it quits.  I was
pointed to the NakedNuns website to the section on CheckExternalScripts, but
honestly could not make much sense of it.</span></font><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal" style=""><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" style=""><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;">
Fernando Rocha [mailto:fernando.rocha@opservices.com.br] <br>
<b><span style="font-weight: bold;">Sent:</span></b> Tuesday, July 15, 2008 4:38
AM<br>
<b><span style="font-weight: bold;">To:</span></b> Jonathan Williams<br>
<b><span style="font-weight: bold;">Cc:</span></b> Nagios Users Mailinglist<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" style=""><font face="Times New Roman" size="3" color="black"><span style="font-size: 12pt; color: black;"> </span></font></p>

<div>

<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;">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>
</span></font><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">Make
install-xinetd</span></font><font face="Arial" size="2" color="black"><span style="font-size: 10pt; font-family: Arial; color: black;"><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!</span></font><font color="black"><span style="color: black;"></span></font></p>

<div>

<p class="MsoNormal" style=""><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><font color="black"><span style="color: black;"></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>
----- 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</span></font><font color="black"><span style="color: black;"></span></font></p>

<div>

<p class="MsoNormal" style=""><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><font color="black"><span style="color: black;"></span></font></p>

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

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

<p class="MsoNormal" style=""><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><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal" style=""><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" style=""><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><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal" style=""><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" style=""><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><font color="black"><span style="color: black;"></span></font></p>

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

<p class="MsoNormal" style=""><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" style=""><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><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal" style=""><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><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal" style=""><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><font color="black"><span style="color: black;"></span></font></p>

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

<p class="MsoNormal" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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;"> 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><font color="black"><span style="color: black;"></span></font></p>

</div>

<p class="MsoNormal" style=""><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="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><font color="black"><span style="color: black;"></span></font></p>

<div>

<p class="MsoNormal" style=""><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><font color="black"><span style="color: black;"></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><font color="black"><span style="color: black;"></span></font></p>

<p class="MsoNormal" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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" style=""><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><font color="black"><span style="color: black;"></span></font></p>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

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