I'm working on some custom event handlers to do traceroutes to hosts when
the are down/unreachable (with custom Perl script) and save the data into
MYSQL database, however since the traceroute takes a few seconds to run, I
notice that Icinga isn't forking the event handler into the background.
I tested this by applying my event handler to multiple hosts and then
setting them all to DOWN/HARD (my script looks for this to run the
traceroute) and then as I tail the log file I see it going through the
hosts one by one but waiting for the script to finish.
I tried to add a '&' at the end of my command to see if that could
background it but it didn't seem to work:
define command{
command_name traceroute-icmp
command_line $USER2$/tracedb.pl -4 -i -D $HOSTNAME$ -S
$HOSTSTATE$ -T $HOSTSTATETYPE$ -I $HOSTADDRESS$ &
}
Any ideas?
Also, any way to increase the 30 second timeout that the event handler has
to run with? I can't seem to find a knob anywhere...
- Zac
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users