<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Verdana; font-size: 10pt; color: #000000'>Try the following url http://nagios.sourceforge.net/docs/3_0/eventhandlers.html<br><div><br>[]'s<br>--<br><img src="https://mail.opservices.com.br/service/assinaturas/assinatura-email-paulo_01.jpg"><div></div></div><br><br>----- "Jonathan Williams" <jonathan.williams@us.g4s.com> wrote:
<br>>
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Courier;
panose-1:2 7 4 9 2 2 5 2 4 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Courier New";
color:blue;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Courier New";
color:blue;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</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;">OK.. I am getting
somewhere now. I manually ran this command from the Nagios server terminal:</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="black"><span style="font-size: 10pt; font-family: "Courier New"; color: black;">/usr/local/nagios/libexec/check_nrpe
-H 10.10.113.51 -p 5666 -n -c service_control -a "spooler" start</span></font></p>
<p class="MsoNormal"><font face="Courier New" size="2" color="black"><span style="font-size: 10pt; font-family: "Courier New"; color: black;"> </span></font></p>
<p class="MsoNormal"><font face="Courier New" size="2" color="black"><span style="font-size: 10pt; font-family: "Courier New"; color: black;">And it worked!!
Meaning the OpMonagent works! Now I jst need to find out why it will not work
as an event_handler like so:</span></font></p>
<p class="MsoNormal"><font face="Courier New" size="2" color="black"><span style="font-size: 10pt; font-family: "Courier New"; 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;">Define service{</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;">
Use
generic service</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;">
Host_name
jwilliamspc</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_description PrintSpooler</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_command
check_nt!SERVICESTATE!-d SHOWALL –l Spooler</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;">
Event_handler restart_Spooler</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 face="Courier New" size="2" color="blue"><span style="font-size: 11pt; font-family: "Courier New"; color: blue;">}</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></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></p>
<p class="MsoNormal" style="text-indent: 0.5in;"><font face="Verdana" size="2" color="black"><span style="font-size: 10pt; font-family: Verdana; color: black;"> </span></font></p>
<p class="MsoNormal"><font face="Courier New" size="2" color="black"><span style="font-size: 10pt; font-family: "Courier New"; color: black;"> </span></font></p>
<p class="MsoNormal"><font face="Courier New" size="2" color="black"><span style="font-size: 10pt; font-family: "Courier New"; 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></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;"> Jonathan
Williams <br>>
<b><span style="font-weight: bold;">Sent:</span></b> Wednesday, July 16, 2008
10:07 AM<br>>
<b><span style="font-weight: bold;">To:</span></b> Fernando Rocha<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>
<p class="MsoNormal"><font face="Courier New" size="2" color="blue"><span style="font-size: 10pt; font-family: "Courier New"; color: blue;">OK. OpMon
is running on the test server and my define_command for spooler restart reads
exactly as you posted, still no service restart. I am still missing
something. I am not sure if I need to edit anything in the OpMonagent.ini
or service_control.cmd. </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>
<br>> -------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/<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</jonathan.williams@us.g4s.com></div></body></html>