下面是我写的一段Alert macro, 主要用于对硬盘空间超过一定限度后的报警设置,希望对大家有所帮助.
Icefired[at]原创, 版权所有, 转载请注明Icefired & .
Dear All:
    This is an auto-send email by our server monitor system.
Please pay attention to blow message.If you have any problem,
please contract with XX/XXXfreely.
     Ext: 5678/1234
     Mobile:
     XXX Team
     B&R                                
———————————————————–
—————-Begin of Alert—————
*********************************************
Alert Digest:
${SysName}\ ${Caption} Current Used Percentage: ***${VolumePercentUsed}*** 
*********************************************
Server’s Information:
———————————————
Server Name:   ${SysName}   
IP Address:      ${IP_Address}
NodeName:     ${NodeName}
NodeStatus:    ${Status}
Location:        ${SysLocation}
Contract:        ${SysContact}
MachineType:  ${MachineType}
Description:     ${SysDescr}
———————————————
Disk Utilization:
———————————————
Volume ID:      ${VolumeID}
Volume Index: ${VolumeINdex}
Volume Type:  ${VolumeType}
*********************************************
Full Name:    ${FullName}
Caption:       ${Caption}
Volume Size:  ${VolumeSize}
Total bytes used: ${VolumeSpaceUsed}
Current Percentage Used: ***${VolumePercentUsed}***
Normal Percentage Used:  < 80%
Alert Percentage Used:     >90%
Reset Percentage Used:    =70%
Volume allocation errors this hour: ${VolumeAllocationFailuresThisHour}
**********************************************
DateTime: ${Long Date}  ${Time}
Please see detail by using our monitor system:
Http://192.168.XXX.XXX/
User/Pwd: common/common
—————–End of Alert——————
How to Do?
a. Delete unnessary file.
b. Compress database files.
c. Backup and move old files