<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=668395913-04042006>I followed istructions on the 
manual.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=668395913-04042006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=668395913-04042006>When Nagios try to run the command, in the 
nagios.log I still read :</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=668395913-04042006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=668395913-04042006>Warning: Attempting to execute the command 
"/usr/local/nagios/libexec/eventhandlers/restart-http  
....</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=668395913-04042006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=668395913-04042006>ls -la 
/usr/local/nagios/libexec/eventhandlers/restart-http</SPAN></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2>-rwxr-xr-x   1 
root       sys     489 Apr  4 
15:06<SPAN class=668395913-04042006> 
</SPAN> /usr/local/nagios/libexec/eventhandlers/restart-http</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT 
size=2></FONT></FONT></FONT> </DIV>
<DIV><FONT><FONT><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN 
class=668395913-04042006>Any 
idea?</SPAN></FONT></FONT></FONT></FONT></FONT></DIV>
<DIV><SPAN class=668395913-04042006></SPAN><FONT face=Arial><FONT 
color=#0000ff><FONT size=2>M<SPAN class=668395913-04042006>a</SPAN><SPAN 
class=668395913-04042006>rco</SPAN></FONT></FONT></FONT><BR></DIV>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=it dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>Da:</B> joseph.petrucci@wachovia.com 
  [mailto:joseph.petrucci@wachovia.com] <BR><B>Inviato:</B> luned́ 3 aprile 2006 
  14.01<BR><B>A:</B> Marco Borsani<BR><B>Cc:</B> 'NAGIOS'; 
  nagios-users-admin@lists.sourceforge.net<BR><B>Oggetto:</B> Re: [Nagios-users] 
  start a script automatically<BR></FONT><BR></DIV>
  <DIV></DIV><BR><FONT face=sans-serif size=2>Look into event handlers.</FONT> 
  <BR><BR><FONT face=sans-serif size=2>Joe Petrucci <BR>Office: 
  704-383-6089<BR>Cell : 724-462-0443<BR></FONT><BR><BR><BR>
  <TABLE width="100%">
    <TBODY>
    <TR vAlign=top>
      <TD width="40%"><FONT face=sans-serif size=1><B>"Marco Borsani" 
        <m.borsani@it.net></B> </FONT><BR><FONT face=sans-serif 
        size=1>Sent by: nagios-users-admin@lists.sourceforge.net</FONT> 
        <P><FONT face=sans-serif size=1>04/03/2006 07:57 AM</FONT> <BR></P>
      <TD width="59%">
        <TABLE width="100%">
          <TBODY>
          <TR>
            <TD>
              <DIV align=right><FONT face=sans-serif size=1>To</FONT></DIV>
            <TD vAlign=top><FONT face=sans-serif size=1>"'NAGIOS'" 
              <nagios-users@lists.sourceforge.net></FONT> 
          <TR>
            <TD>
              <DIV align=right><FONT face=sans-serif size=1>cc</FONT></DIV>
            <TD vAlign=top>
          <TR>
            <TD>
              <DIV align=right><FONT face=sans-serif size=1>Subject</FONT></DIV>
            <TD vAlign=top><FONT face=sans-serif size=1>[Nagios-users] start a 
              script automatically</FONT></TR></TBODY></TABLE><BR>
        <TABLE>
          <TBODY>
          <TR vAlign=top>
            <TD>
            <TD></TR></TBODY></TABLE><BR></TR></TBODY></TABLE><BR><BR><BR><FONT 
  size=2><TT>Hi all!<BR><BR>Is it possible to start a script automatically on a 
  remote host in case of a<BR>particolar event?<BR><BR>For example, if nagios 
  detects that process "named" on a DNS server is down,<BR>will Nagios can run a 
  remote command on that server to restart the 
  process?<BR><BR>Regards<BR><BR>Marco Borsani         
                 <BR>Unix & 
  Monitoring System Administrator<BR>Technical Operation<BR>Tel.   
   +39 010 4310115<BR>Fax     +39 010 4327454<BR>E-mail: 
  m.borsani@IT.net<BR><BR>ITnet S.r.l. - Direzione e Coordinamento di WIND 
  Telecomunicazioni S.p.A.<BR>Internet Service Provider<BR>Sede legale:   
                    Via C.G.Viola, 
  48 - 00148 Roma<BR>Dir. Centrale e Amministrativa:         
            Via Pacinotti, 39<BR>      
                        
                   16151 Genova 
  (Italy)<BR>                  
                        
                      
  <BR>http://www.it.net                 
                 <BR>mailto:info@IT.net 
  <BR>_______________________________________________________________<BR>Altre 
  sedi ITnet:<BR>MILANO tel.: +39 02 30114900   
   info-milano@IT.net<BR>ROMA    tel.: +39 06 83116707   
   info-roma@IT.net<BR>_______________________________________________________________<BR>ITnet 
  is associated to CIX (Commercial IP eXchange) and RIPE<BR>ITnet is associated 
  to AIIP (Associazione Italiana Internet 
  Providers)<BR><BR><BR><BR><BR>-------------------------------------------------------<BR>This 
  SF.Net email is sponsored by xPML, a groundbreaking scripting language<BR>that 
  extends applications into web and mobile media. Attend the live webcast<BR>and 
  join the prime developer group breaking into this new coding 
  territory!<BR>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642<BR>_______________________________________________<BR>Nagios-users 
  mailing 
  list<BR>Nagios-users@lists.sourceforge.net<BR>https://lists.sourceforge.net/lists/listinfo/nagios-users<BR>::: 
  Please include Nagios version, plugin version (-v) and OS when reporting any 
  issue. <BR>::: Messages without supporting info will risk being sent to 
  /dev/null<BR></TT></FONT><BR><FONT face=sans-serif color=white 
  size=2>ForwardSourceID:NT00014CEE    </FONT> 
<BR></BLOCKQUOTE></BODY></HTML>