# ##################### # Private WatchMX stuff # ##################### # # Settings & functions private to this module # write_affairs() { local useconds=`date +%s%6N` $SQL "insert into affairs_by_ip (ip_addr, affair_num, rule, event_date, time_useconds, origin) VALUES ('$1',$2,'$3', datetime(current_timestamp,'localtime'), $useconds, '$4');" } # Forward a log line to the WatchMB scanner passon() { local funtag="[${FUNCNAME[0]}]" echo "$REPLY" >> $FIFO_BASE/WatchMB trace "$funtag Passed to WatchMB ..." }