3 # (C) 2009 Mika Ilmaranta <ilmis at nullnet.fi>
9 # default event handling script
28 cat <<EOM | mail -s "LSM: ${NAME} ${STATE}, IP ${CHECKIP}" ${WARN_EMAIL}
32 Your connection ${NAME} has changed it's state to ${STATE} at ${DATE}.
34 Following parameters were passed:
39 warn_email = ${WARN_EMAIL}
42 replied = ${REPLIED} packets replied
43 waiting = ${WAITING} packets waiting for reply
44 timeout = ${TIMEOUT} packets that have timeout (= packet loss)
45 reply_late = ${REPLY_LATE} packets that received a reply after timeout
46 cons_rcvd = ${CONS_RCVD} consecutively received replies in sequence
47 cons_wait = ${CONS_WAIT} consecutive packets waiting for reply
48 cons_miss = ${CONS_MISS} consecutive packets that have timed out
49 avg_rtt = ${AVG_RTT} average rtt [usec], calculated from received packets
57 for script in $(ls); do
58 if [ ! -x $script ]; then