Hi,
I am implementing the
real time alert messages in Syslog-ng by using the following script :
#
TO=wilsonlai@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 ( :