<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 http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<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:Calibri;
panose-1:2 15 5 2 2 2 4 3 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.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:Calibri;}
p
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
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;
font-family:"Courier New";
color:blue;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Courier New";
color:blue;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
span.EmailStyle22
{mso-style-type:personal;
font-family:Arial;
color:navy;}
span.e-mailsignaturechar
{font-family:Calibri;}
span.EmailStyle24
{mso-style-type:personal;
font-family:"Courier New";
color:blue;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
span.EmailStyle25
{mso-style-type:personal;
font-family:"Courier New";
color:blue;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
span.EmailStyle26
{mso-style-type:personal;
font-family:Arial;
color:navy;}
span.e-mailsignaturechar0
{font-family:Calibri;}
span.EmailStyle28
{mso-style-type:personal;
font-family:"Courier New";
color:blue;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
span.EmailStyle29
{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'>OK… A
little more info. I checked the Nagios.log and saw this error:<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'>Warning:
Attempoting to execute the command “/usr/local/nagios/libexec/send_mail.pl
– n “Service Problem” –h “jwilliamspc” –s
“Critical”… (all the parameters are correct)… <a
href="mailto:jonathan.williams@us.g4s.com">jonathan.williams@us.g4s.com</a> resulted
in a return code of 126. Make sure the script or binary you are trying to
execute actually exists… <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'>The file
send_mail.pl does exist in the /usr/local/Nagios/libexec folder. Not sure why
I am getting that return code.<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'>Any thoughts?<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'>
nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Jonathan Williams<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, July 17, 2008 9:21
AM<br>
<b><span style='font-weight:bold'>To:</span></b> Valdinger, Stephen (DOV, MSX);
nagios-users@lists.sourceforge.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Nagios-users] Help -
I am unable to get theNSClient++ 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>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>Ha!! It
does sound that way. I used the “chmod +X send_mail.pl”
command to grant the execute permission, so I would have assumed it would
work. When I run sudo /path…/send_mail.pl is get “command not
found”. <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'> Valdinger, Stephen
(DOV, MSX) [mailto:svalding@doverchem.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, July 17, 2008 9:03
AM<br>
<b><span style='font-weight:bold'>To:</span></b> Jonathan Williams;
nagios-users@lists.sourceforge.net<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>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>You just answered your own
question….<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<p class=MsoAutoSig><font size=2 color="#548dd4" face=Calibri><span
style='font-size:11.0pt;color:#548DD4'>Stephen Valdinger<o:p></o:p></span></font></p>
<p class=MsoAutoSig><span style='mso-themecolor: text2;mso-themetint: 153'><font
size=2 color=navy face=Calibri><span style='font-size:11.0pt;color:navy'>MIS
Helpdesk Coordinator<o:p></o:p></span></font></p>
</span>
<p class=MsoAutoSig><span style='mso-themecolor: accent3;mso-themeshade: 191'><font
size=2 color=navy face=Calibri><span style='font-size:11.0pt;color:navy'>330.365.3622
-O<o:p></o:p></span></font></p>
</span>
<p class=MsoAutoSig><span style='mso-themecolor: accent3;mso-themeshade: 191'><font
size=2 color=navy face=Calibri><span style='font-size:11.0pt;color:navy'>740.491.0958
- C<o:p></o:p></span></font></p>
</span>
<p class=MsoAutoSig><span style='mso-themecolor: accent5;mso-themeshade: 191'><font
size=2 color=navy face=Calibri><span style='font-size:11.0pt;color:navy'>svalding@doverchem.com<o:p></o:p></span></font></p>
</span>
<p class=MsoNormal><span style='mso-themecolor: accent5;mso-themeshade: 191'><font
size=3 color="#31849b" face="Times New Roman"><span style='font-size:12.0pt;
color:#31849B'><img border=0 width=138 height=115 id="_x0000_i1045"
src="cid:image001.jpg@01C8E7F5.F0DF02D0"></span></font><o:p></o:p></p>
</div>
<font size=3 face="Times New Roman"><span style='font-size:12.0pt;font-family:
"Times New Roman"'></span></span></font>
<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'> Jonathan
Williams [mailto:jonathan.williams@us.g4s.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, July 17, 2008
12:05 PM<br>
<b><span style='font-weight:bold'>To:</span></b>
nagios-users@lists.sourceforge.net<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>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>To further test
the send_mail.pl function, I tried running it directly from a command prompt
and I get a “Permission Denied” error. Any idea why that
would be. I am using root credentials and the user “Nagios”
is the owner. <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'><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'> Jonathan
Williams <br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, July 16, 2008
1:47 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Valdinger, Stephen (DOV, MSX)<br>
<b><span style='font-weight:bold'>Cc:</span></b> nagios-users@lists.sourceforge.net<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>
<p class=MsoNormal><font size=2 color=blue face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New";color:blue'>We have an open
SMTP relay setup (IIS) and that is what we use for other apps. As far as
mail client, I am trying to use send_mail.pl plug-in found here: <a
href="http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2002.html;d=1">http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2002.html;d=1</a>
and cannot get it to notify. The online documentation differs from
the documentation in the actual send_mail.pl config file. My commands.cfg
looks like this:<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'>define command{<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'>
command_name host-notify-by-email<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'>
command_line
/usr/local/Nagios/libexec/send_mail.pl -n "HOST $NOTIFICATIONTYPE$"
-h "$HOSTNAME$" -s "$HOSTSTATE$" -a "$HOSTADDRESS$"
-i "$HOSTOUTPUT$" -d "$LONGDATETIME$" -e
"$CONTACTEMAIL$"<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'>define command{<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'>
command_name service-notify-by-email<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'>
command_line
/usr/local/Nagios/libexec/send_mail.pl -n "SERVICE
$NOTIFICATIONTYPE$" -h "$HOSTNAME$" -s "$SERVICESTATE$"
-a "$HOSTADDRESS$" -i "$SERVICEDESC$ - $SERVICEOUTPUT$ -
$SERVICECHECKCOMMAND$" -d "$LONGDATETIME$" -e
"$CONTACTEMAIL$"<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'><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'>The sample
documentation uses $USER1$/send_mail.pl rather than the actual path. I am
not sure what $USER1$ represents. I tried it both ways.<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'>My templates are
also set up for services and hosts to allow for notification and reference
these command_line entries. <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'>I am also not
sure why an e-mail address is specified in the send_mail.pl file as well as the
contacts.cfg. When looking at the service notification settings in the
Nagios CGI it is correct.<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'>Is there anything
I am missing?<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'> Valdinger,
Stephen (DOV, MSX) [mailto:svalding@doverchem.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, July 16, 2008
11:05 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><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>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Here we use postfix as our mta pusing
everything to our exchange server for sending out the mail. It’s really very
easy to set up, just make sure you have your contacts set up properly and that
they have access to the cgi’s as needed and configure your notification
command to use whatever binary file your chosen mail client uses. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<p class=MsoAutoSig><font size=2 color="#548dd4" face=Calibri><span
style='font-size:11.0pt;color:#548DD4'>Stephen Valdinger<o:p></o:p></span></font></p>
<p class=MsoAutoSig><span style='mso-themecolor: text2;mso-themetint: 153'><font
size=2 color=navy face=Calibri><span style='font-size:11.0pt;color:navy'>MIS
Helpdesk Coordinator<o:p></o:p></span></font></p>
</span>
<p class=MsoAutoSig><span style='mso-themecolor: accent3;mso-themeshade: 191'><font
size=2 color=navy face=Calibri><span style='font-size:11.0pt;color:navy'>330.365.3622
-O<o:p></o:p></span></font></p>
</span>
<p class=MsoAutoSig><span style='mso-themecolor: accent3;mso-themeshade: 191'><font
size=2 color=navy face=Calibri><span style='font-size:11.0pt;color:navy'>740.491.0958
- C<o:p></o:p></span></font></p>
</span>
<p class=MsoAutoSig><span style='mso-themecolor: accent5;mso-themeshade: 191'><font
size=2 color=navy face=Calibri><span style='font-size:11.0pt;color:navy'>svalding@doverchem.com<o:p></o:p></span></font></p>
</span>
<p class=MsoNormal><span style='mso-themecolor: accent5;mso-themeshade: 191'><font
size=3 color="#31849b" face="Times New Roman"><span style='font-size:12.0pt;
color:#31849B'><img border=0 width=138 height=115 id="_x0000_i1034"
src="cid:image001.jpg@01C8E7F5.F0DF02D0"></span></font><o:p></o:p></p>
</div>
<font size=3 face="Times New Roman"><span style='font-size:12.0pt;font-family:
"Times New Roman"'></span></span></font>
<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'> Jonathan
Williams [mailto:jonathan.williams@us.g4s.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, July 16, 2008
1:42 PM<br>
<b><span style='font-weight:bold'>To:</span></b> Paulo Ribas<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>
<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 border=0 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>
</div>
</jonathan.williams@us.g4s.com></div>
</body>
</html>