<br><font size=2 face="sans-serif">The ID and group you start the Nagios
process with must have full permissions on the file that needs executed
as well as the directory. I usually have NAgios and the group own the directory
and files and have a 754 permission on them</font>
<br>
<br><font size=2 face="sans-serif">Joe Petrucci <br>
Office: 704-383-6089<br>
Cell : 724-462-0443<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>"Marco Borsani"
<m.borsani@it.net></b> </font>
<p><font size=1 face="sans-serif">04/04/2006 10:04 AM</font>
<br>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif"><joseph.petrucci@wachovia.com></font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top><font size=1 face="sans-serif">"'NAGIOS'" <nagios-users@lists.sourceforge.net></font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">R: [Nagios-users] start a
script automatically</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2 color=blue face="Arial">I followed istructions on the
manual.</font>
<br><font size=3> </font>
<br><font size=2 color=blue face="Arial">When Nagios try to run the command,
in the nagios.log I still read :</font>
<br><font size=3> </font>
<br><font size=2 color=blue face="Arial">Warning: Attempting to execute
the command "/usr/local/nagios/libexec/eventhandlers/restart-http
 ....</font>
<br><font size=3> </font>
<br><font size=2 color=blue face="Arial">ls -la /usr/local/nagios/libexec/eventhandlers/restart-http</font>
<br><font size=2 color=blue face="Arial">-rwxr-xr-x   1 root  
    sys     489 Apr  4 15:06  /usr/local/nagios/libexec/eventhandlers/restart-http</font>
<br><font size=3> </font>
<br><font size=2 color=blue face="Arial">Any idea?</font>
<br><font size=2 color=blue face="Arial">Marco</font>
<br>
<hr><font size=2 face="Tahoma"><b>Da:</b> joseph.petrucci@wachovia.com
[mailto:joseph.petrucci@wachovia.com] <b><br>
Inviato:</b> luned́ 3 aprile 2006 14.01<b><br>
A:</b> Marco Borsani<b><br>
Cc:</b> 'NAGIOS'; nagios-users-admin@lists.sourceforge.net<b><br>
Oggetto:</b> Re: [Nagios-users] start a script automatically</font><font size=3><br>
</font>
<br><font size=2 face="sans-serif"><br>
Look into event handlers.</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
Joe Petrucci <br>
Office: 704-383-6089<br>
Cell : 724-462-0443</font><font size=3><br>
<br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=46%><font size=1 face="sans-serif"><b>"Marco Borsani"
<m.borsani@it.net></b> <br>
Sent by: nagios-users-admin@lists.sourceforge.net</font><font size=3> </font>
<p><font size=1 face="sans-serif">04/03/2006 07:57 AM</font><font size=3>
</font>
<td width=53%>
<br>
<table width=100%>
<tr>
<td width=13%>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td width=86% valign=top><font size=1 face="sans-serif">"'NAGIOS'"
<nagios-users@lists.sourceforge.net></font><font size=3> </font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">[Nagios-users] start a script
automatically</font></table>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=49%>
<td width=50%></table>
<br></table>
<br><font size=3><br>
<br>
</font><font size=2><tt><br>
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</tt></font><font size=3><br>
</font><font size=2 color=white face="sans-serif"><br>
ForwardSourceID:NT00014CEE    </font><font size=3> </font>
<br><font size=2 color=white face="sans-serif">ForwardSourceID:NT000151D2
   </font>
<br>