Alerts by perfmon + email sending (sendmail)
- Angelo Schalley
- Oct, 05, 2009
- Windows-Microsoft
- No Comments
Microsoft, Windows Server 2003, R2 Standard x64 Edition, Alerts with external software
In Perfmon/Performance Logs and Alerts/Alerts i created LogicalDisk\%Free Space alert with settings :
GENERAL :
– Alert when the value is: Under Limit : 1000
– Interwal : 1 hours
– Run Us : administrator_account
ACTION :
Log an entry in the application event log – marked
Run this program : low_disk_space_c.bat which include :
sendEmail.exe -f alert_account@mydomain.com -t myemail@mydomain.com -cc otheremail@mydomain.com otheremail@mydomain.com -u LOW DISK SPACE SERVER_NAME -m ERROR_TEXT -s localhost:25 -xu login -xp password -l patch_to_log_file\name.txt