Start a downed process?

Jason Qualkenbush jqualkenbush at iso-ne.com
Wed Jan 25 17:29:39 CET 2006


Wiedemann, Luis wrote:

> Hello all,
>
>  
>
> People are asking if there is a way to have nagios trigger a command 
> to restart a service that has returned a status of off or critical or 
> whatever. I am using 2.0b4.
>

You want an event handler.  I haven't tried running something to fix 
anything, but I do send events to a database which works great.  It let 
me create a different status page for the NOC, which is great to see up 
and running on the wall monitor.
(screen shot)
http://cosmicegg.net/nag-status-full.jpg

(From the doc...)

Event handlers are optional commands that are executed whenever a host 
or service state change occurs. An obvious use for event handlers 
(especially with services) is the ability for Nagios to proactively fix 
problems before anyone is notified. Another potential use for event 
handlers might be to log service or host events to an external database.

http://nagios.sourceforge.net/docs/2_0/eventhandlers.html

-Jason


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&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





More information about the Users mailing list