Ok, here's what I'm going to attempt:
define host{
...
event_handler event_host_up
...
}
define command{
command_name event_host_up
command_line $USER2$/event_host_up.sh $HOSTSTATE$ $HOSTNAME$
}
----------
# more event_host_up.sh
#!/bin/sh
case "$1" in
UP)
/usr/lib64/icinga/eventhandlers/submit_check_result "$2" "PING" 0
"PING OK - Host is UP"
;;
DOWN)
;;
UNREACHABLE)
;;
On Thu, May 2, 2013 at 1:45 PM, Zachary McGibbon <zachary.mcgib...@gmail.com
> wrote:
> Hmm.. ok, I just remembered I can define the event_handler in the host or
> the service itself so I don't have to enable it globally. I think I'll do
> it this way! I'll let you know how my results come out.
>
>
> On Thu, May 2, 2013 at 1:38 PM, Michael Friedrich <
> michael.friedr...@gmail.com> wrote:
>
>> On 02.05.2013 19:19, Zachary McGibbon wrote:
>> > True, I could look at the event handler but I don't think I'm ready to
>> > go there yet.
>>
>> when you are considering a contact for the up state passing a
>> checkresult notification then, you are more than ready for eventhandlers.
>>
>> jm2c,
>> michael
>>
>>
>> --
>> DI (FH) Michael Friedrich
>>
>> mail: michael.friedr...@gmail.com
>> twitter: https://twitter.com/dnsmichi
>> jabber: dnsmi...@jabber.ccc.de
>> irc: irc.freenode.net/icinga dnsmichi
>>
>> icinga open source monitoring
>> position: lead core developer
>> url: https://www.icinga.org
>>
>>
>> ------------------------------------------------------------------------------
>> Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
>> Get 100% visibility into your production application - at no cost.
>> Code-level diagnostics for performance bottlenecks with <2% overhead
>> Download for free and get started troubleshooting in minutes.
>> http://p.sf.net/sfu/appdyn_d2d_ap1
>> _______________________________________________
>> icinga-users mailing list
>> icinga-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/icinga-users
>>
>
>
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users