According to the documentation for 3.7.1
(http://docs.opsview.org/doku.php?id=opsview-community:usingeventhandler
s), it's possible to create an event handler for either a host check or
a service check. It documents the environment variables, etc, basically
prefixing nagios variables with NAGIOS_. Makes sense, easy enough to do.

However, it then goes in-depth on how to apply event handlers to a
service check (To use an event handler, on the host configuration page
select a service and then click on the 'Event Handlers' icon...) but not
on how to attach an event handler to a host instead of to a service.

Given an event handler
/usr/local/nagios/libexec/eventhandlers/foobar_host, how do I set it to
trigger when a host state goes DOWN independent of any service checks,
i.e. in the nagios host definition? Am I simply supposed to attach it to
a dummy 'Event Handler' service on the host and rely on it going down
when the host goes down, which then triggers a check on the host to find
out that it's down? 

After trawling through the configs, all I've been able to find is
extinfo.cgi's enable/disable event handler for this host options. Am I
just failing to find where to define this event handler?

-Matt

* System Administrator ([email protected])
* Excel.Net,Inc. - http://www.excel.net/

_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to