R: start a script automatically

Marco Borsani m.borsani at it.net
Wed Apr 5 10:26:32 CEST 2006


Well, now it is working correclty!
There was a network problem between the hosts.

I still have to know how to run a command with the Event Handler on a
Windows 2003 server.
Moreover, will I have any authentication problems?
Any idea?

Regards.
Marco

-}-----Messaggio originale-----
-}Da: nagios-users-admin at lists.sourceforge.net 
-}[mailto:nagios-users-admin at lists.sourceforge.net] Per conto 
-}di Marco Borsani
-}Inviato: mercoledì 5 aprile 2006 9.59
-}A: 'Marc Powell'
-}Cc: 'NAGIOS'
-}Oggetto: R: [Nagios-users] start a script automatically
-}
-} 
-}-}Marc wrote:
-}-}
-}-}Not without the rest of the error that you chopped off. 
-}-}What's the '....' part? That's probably the most useful bit 
-}-}of information. You've been on the list long enough to know 
-}-}we need more information than that
-}-};)
-}
-}Complete message is:
-}Warning: Attempting to execute the command 
-}"/usr/local/nagios/libexec/eventhandlers/restart-http 
-}$SERVICESTATE$ $STATETYPE$ $SERVICEATTEMPT$"
-}
-}I see restart-http script on the manual (in the "event 
-}handlers" chapter) and copy it to test and understand how 
-}event handlers work.
-}
-}-}
-}-}Can you run restart-http as the nagios user? Show us the 
-}-}command and service definition. Verify that you're using 
-}full -}paths for commands used within restart-http. Detail 
-}what -}restart-http is doing specifically.
-}-}
-}
-}# 'restart-http' command definition
-}define command{
-}        command_name    restart-http
-}        command_line    
-}/usr/local/nagios/libexec/eventhandlers/restart-http
-}$SERVICESTATE$ $STATETYPE$ $SERVICEATTEMPT$
-}        }
-}
-}One problem could be "where" define restart-http command. 
-}Yesterday I put it in the checkcommands.cfg file, today I am 
-}defined it in the misccommands.cfg.
-}Another one is how to restart the httpd (in this case) like 
-}nagios user (the manual mentions this possibility, but no 
-}ideas are given to solve it).
-}Again, if I would run a command on a Windows 2003 server, how 
-}will I do ?
-}
-}Regards
-}Marco
-}
-}
-}
-}-------------------------------------------------------
-}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
-}



-------------------------------------------------------
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&kid0944&bid$1720&dat1642
_______________________________________________
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





More information about the Users mailing list