告警脚本推送的syslog服务器
cat udp_send.sh
#!/bin/bash
target=$1
subject=$2
message=$3
echo '########' `date +"%F %T"` '########' >> /app/scripts/time.txt
echo $subject >> /app/scripts/time.txt
echo $message >> /app/scripts/time.txt
echo -n "$subject;$message"| nc -u -w1 "$target" 5555
echo " " >> /app/scripts/time.txt