[syslog-ng] Real Time Alerting message from Syslog-ng!
Wilson Lai
wilsonlai at macausjm.com
Wed Nov 5 09:33:54 CET 2008
Hi,
I am implementing the real time alert messages in Syslog-ng by
using the following script :
# TO=wilsonlai at abc.com
# while read line
# do
# hostname=`echo $line | awk '{print $4}'`;
# echo $line | /bin/mail -s "Syslog Alert Messages
from HOST : $hostname" $TO
# done
My question is while using readline, sometimes the hostname could
not be displayed correctly and give the hostname “Report” as the
following event message
collected :
Nov 5 15:57:19 report server (mssqlserver)[error] 106
Scheduled operations cannot be created. SQL Server Agent is not running.
How could it be fixed?
Thanks.
Regards,
Wilson Lai
System Engineer
IT Dept., SJM
Office ( : (853)2978585
Mobile ( : (853)66506709
Email ( : wilsonlai at macausjm.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20081105/56803b50/attachment.htm
More information about the syslog-ng
mailing list