R: start a script automatically

joseph.petrucci at wachovia.com joseph.petrucci at wachovia.com
Tue Apr 4 16:19:04 CEST 2006


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

Joe Petrucci 
Office: 704-383-6089
Cell : 724-462-0443




"Marco Borsani" <m.borsani at it.net> 
04/04/2006 10:04 AM


To
<joseph.petrucci at wachovia.com>
cc
"'NAGIOS'" <nagios-users at lists.sourceforge.net>
Subject
R: [Nagios-users] start a script automatically






I followed istructions on the manual.
 
When Nagios try to run the command, in the nagios.log I still read :
 
Warning: Attempting to execute the command 
"/usr/local/nagios/libexec/eventhandlers/restart-http  ....
 
ls -la /usr/local/nagios/libexec/eventhandlers/restart-http
-rwxr-xr-x   1 root       sys     489 Apr  4 15:06 
/usr/local/nagios/libexec/eventhandlers/restart-http
 
Any idea?
Marco
Da: joseph.petrucci at wachovia.com [mailto:joseph.petrucci at wachovia.com] 
Inviato: lunedì 3 aprile 2006 14.01
A: Marco Borsani
Cc: 'NAGIOS'; nagios-users-admin at lists.sourceforge.net
Oggetto: Re: [Nagios-users] start a script automatically


Look into event handlers. 

Joe Petrucci 
Office: 704-383-6089
Cell : 724-462-0443



"Marco Borsani" <m.borsani at it.net> 
Sent by: nagios-users-admin at lists.sourceforge.net 
04/03/2006 07:57 AM 


To
"'NAGIOS'" <nagios-users at lists.sourceforge.net> 
cc

Subject
[Nagios-users] start a script automatically








Hi all!

Is it possible to start a script automatically on a remote host in case of 
a
particolar event?

For example, if nagios detects that process "named" on a DNS server is 
down,
will Nagios can run a remote command on that server to restart the 
process?

Regards

Marco Borsani 
Unix & Monitoring System Administrator
Technical Operation
Tel.    +39 010 4310115
Fax     +39 010 4327454
E-mail: m.borsani at IT.net

ITnet S.r.l. - Direzione e Coordinamento di WIND Telecomunicazioni S.p.A.
Internet Service Provider
Sede legale:                     Via C.G.Viola, 48 - 00148 Roma
Dir. Centrale e Amministrativa:                   Via Pacinotti, 39
                                             16151 Genova (Italy)
 
http://www.it.net 
mailto:info at IT.net 
_______________________________________________________________
Altre sedi ITnet:
MILANO tel.: +39 02 30114900    info-milano at IT.net
ROMA    tel.: +39 06 83116707    info-roma at IT.net
_______________________________________________________________
ITnet is associated to CIX (Commercial IP eXchange) and RIPE
ITnet is associated to AIIP (Associazione Italiana Internet Providers)




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting 
language
that extends applications into web and mobile media. Attend the live 
webcast
and join the prime developer group breaking into this new coding 
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at 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

ForwardSourceID:NT00014CEE     
ForwardSourceID:NT000151D2 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060404/776e4043/attachment.html>


More information about the Users mailing list