<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[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;
font-family:"Courier New";
color:blue;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
span.EmailStyle20
{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>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>I have read
that. Thank you. That is actually also in the Nagios PDF file as well. I
remembered I did not restart Nagios after making a couple of changes so I did
that and it finally works!! Thanks everyone for all you help with my
questions. Now I need to get e-mail notifications up. I noticed there are a
few options and plug-ins people are using. What are you guys having success
with?<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>Thanks again,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>Jon<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Paulo Ribas
[mailto:paulo.ribas@opservices.com.br] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, July 16, 2008
10:35 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><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal><font size=2 color=black face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:black'>Try the following url
http://nagios.sourceforge.net/docs/3_0/eventhandlers.html<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=2 color=black face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:black'><br>
[]'s<br>
--<br>
<img width=32 height=32 id="_x0000_i1025"
src="https://mail.opservices.com.br/service/assinaturas/assinatura-email-paulo_01.jpg"><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=2 color=black face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:black'><br>
<br>
----- "Jonathan Williams" <jonathan.williams@us.g4s.com>wrote: <br>
> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>OK.. I am getting
somewhere now. I manually ran this command from the Nagios server
terminal:</span></font><font color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;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><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;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><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>Define service{</span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>
Use
generic service</span></font><font color=black><span
style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>
Host_name
jwilliamspc</span></font><font color=black><span
style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>
Service_description PrintSpooler</span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>
Check_command
check_nt!SERVICESTATE!-d SHOWALL –l Spooler</span></font><font color=black><span
style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>
Event_handler
restart_Spooler</span></font><font color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>
</span></font><font size=2 color=blue face="Courier New"><span
style='font-size:11.0pt;font-family:"Courier New";color:blue'>}</span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=black face=Courier><span
style='font-size:9.0pt;font-family:Courier;color:black'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=black face=Courier><span
style='font-size:9.0pt;font-family:Courier;color:black'>define command{</span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=1 color=black
face=Courier><span style='font-size:9.0pt;font-family:Courier;color:black'>command_name
restart-Spooler</span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=1 color=black
face=Courier><span style='font-size:9.0pt;font-family:Courier;color:black'>command_line
PATH/</span></font><font size=2
color=black face=Verdana><span style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=2 color=black
face=Verdana><span style='font-size:10.0pt;font-family:Verdana;color:black'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=black face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:black'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;color:black'>
<hr size=2 width="100%" align=center>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:black;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:black'> 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><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'> <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;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><font color=black><span
style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;color:black'>
<hr size=2 width="100%" align=center>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:black;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;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
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><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'> <o:p></o:p></span></font></p>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;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 size=2 color=black face="Courier New"><span
style='font-size:10.0pt;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
size=2 color=black face=Arial><span style='font-size:10.0pt;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><font color=black><span style='color:black'><o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=2 color=black
face="Courier New"><span style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>
</span></font><font color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;color:black'>
<hr size=2 width="100%" align=center>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:black;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'> <o:p></o:p></span></font></p>
<div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;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 size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>Make
install-xinetd</span></font><font size=2 color=black face=Arial><span
style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'>Fernando Rocha<br>
> OpServices Tecnologia da Informação</span></font><font color=black><span
style='color:black'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>Make
install-plugin</span></font><font color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>Make
install-daemon</span></font><font color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>Make
install-daemon-config</span></font><font color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>Those worked
finer however the next step says:</span></font><font color=black><span
style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>Install the NRPE
daemon as a service under xinetd</span></font><font color=black><span
style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>Make
install-xinetd</span></font><font color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>I run that
command and get:</span></font><font color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>make: ***
[install-xinetd] Error 1</span></font><font color=black><span style='color:
black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>Any thoughts??</span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>Thanks,</span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>Jon</span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;color:black'>
<hr size=2 width="100%" align=center>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:black;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'> <o:p></o:p></span></font></p>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:black'>Fernando Rocha<br>
> OpServices Tecnologia da Informação</span></font><font color=black><span
style='color:black'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 color=black
face=Arial><span style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>./configure</span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>make all</span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;color:black'>
<hr size=2 width="100%" align=center>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:black;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'> <o:p></o:p></span></font></p>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 color=black
face=Verdana><span style='font-size:10.0pt;font-family:Verdana;color:black'>Ok,
If you need, contact me.</span></font><font color=black><span style='color:
black'><o:p></o:p></span></font></p>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 color=black
face=Verdana><span style='font-size:10.0pt;font-family:Verdana;color:black'>[]'s<br>
> --</span></font><font color=black><span style='color:black'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=2 color=black face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:black'><br>
> <br>
> ----- "Jonathan Williams" wrote: <br>
> > </span></font><font color=black><span style='color:black'><o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>Thanks,</span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>Jon</span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;color:black'>
<hr size=2 width="100%" align=center>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:black;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'> <o:p></o:p></span></font></p>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 color=black
face=Verdana><span style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=2 color=black face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:black'>[]'s<br>
> > --<br>
> > </span></font><font color=black><span style='color:black'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=2 color=black face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:black'><br>
> > <br>
> > ----- "Jonathan Williams" wrote: <br>
> > > </span></font><font color=black><span style='color:black'><o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'> </span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;color:black'>
<hr size=2 width="100%" align=center>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:black;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 color=black face="Times New Roman"><span
style='font-size:12.0pt;color:black'> <o:p></o:p></span></font></p>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 color=black
face=Verdana><span style='font-size:10.0pt;font-family:Verdana;color:black'>The
commando must be:<br>
> > > <br>
> > > </span></font><font color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=black face=Courier><span
style='font-size:9.0pt;font-family:Courier;color:black'>define command{</span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=1 color=black
face=Courier><span style='font-size:9.0pt;font-family:Courier;color:black'>command_name
restart-Spooler</span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=1 color=black
face=Courier><span style='font-size:9.0pt;font-family:Courier;color:black'>command_line
PATH/</span></font><font size=2
color=black face=Verdana><span style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=black face=Courier><span
style='font-size:9.0pt;font-family:Courier;color:black'>}</span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 color=black
face=Verdana><span style='font-size:10.0pt;font-family:Verdana;color:black'><br>
> > > <br>
> > > ex:</span></font><font color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=black face=Courier><span
style='font-size:9.0pt;font-family:Courier;color:black'>define command{</span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=1 color=black
face=Courier><span style='font-size:9.0pt;font-family:Courier;color:black'>command_name
restart-Spooler</span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-indent:.5in'><font size=1 color=black
face=Courier><span style='font-size:9.0pt;font-family:Courier;color:black'>command_line
/usr/local/nagios/libexec/</span></font><font
size=2 color=black face=Verdana><span style='font-size:10.0pt;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'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=1 color=black face=Courier><span
style='font-size:9.0pt;font-family:Courier;color:black'>}</span></font><font
color=black><span style='color:black'><o:p></o:p></span></font></p>
<div>
<div>
<div>
<p class=MsoNormal><font size=2 color=black face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:black'>risk being sent to
/dev/null</span></font><font color=black><span style='color:black'><o:p></o:p></span></font></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class=MsoNormal><font size=2 color=black face=Arial><span style='font-size:
10.0pt;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'><o:p></o:p></span></font></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p class=MsoNormal><font size=2 color=black face=Verdana><span
style='font-size:10.0pt;font-family:Verdana;color:black'><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<o:p></o:p></span></font></p>
</jonathan.williams@us.g4s.com></div>
</div>
</body>
</html>