My TEMS in on Windows and I have used the Perl Scripting to email the alert to the users :::
I am passing this in the Action tab of the situation:
CustomizedAction.pl NTLogicalDiskSpaceCritical &{NT_Logical_Disk.Server_Name} &{NT_Logical_Disk.Disk_Name} &{NT_Logical_Disk.%_Used} &{NT_Logical_Disk.%_Free} &{NT_Logical_Disk.Timestamp} &{NT_Logical_Disk.Total_Size} &{NT_Logical_Disk.Free_Megabytes}
Now this CustomizedAction.pl is a script file on TEMS Server which contains Several functions, one of those function is NTLogicalDiskSpaceCritical which contains following code.
elsif ($action eq "NTLogicalDiskSpaceCritical") {
open (MT, ">c:\\windows\\NTLogicalDiskSpaceCritical$hostNameActual$variable2.txt");
print MT "Dear Application Administrator, \n\nIBM Tivoli Monitoring Reports a Windows Disk Space Critical on " , $ARGV[1],".";
print MT "\n\n Server Name: ", $ARGV[1];
print MT "\n Disk Name: ", $variable1;
print MT "\n Disk Used: ", $variable2,"%";
print MT "\n Disk Free: ", $variable3,"%";
print MT "\n Total Disk Size: ", $variable5, " MB or ", sprintf("%.2f",$variable5/1024) , " GB";
print MT "\n Remaining Space: ", $variable6, " MB or ", sprintf("%.2f",$variable6/1024) , " GB";
print MT "\n Time Stamp: ", $date,"/",$month,"/",$year," ",$hour,":",$minute,":",$second;
print MT "\n\nThis is a system generated email. Please donot reply directly to this email. \n\nFor further assistance, contact the IBM System Administrator at +92-21-2463308-10. \n\nIBM System Administration Team.";
close (MT);
# send the email using the mail template file
system("c:\\windows\\system32\\sendemail -f ITM.MONITORING\@ITM.COM -t $emails -cc windows.sysadmin\@hblpk.com -u ***ITM ALERT*** Windows Disk Space Critical on $ARGV[1] -o message-file=c:\\windows\\NTLogicalDiskSpaceCritical$hostNameActual$variable2.txt -s 192.168.0.53");
}
-----------------------------------------------*************************************--------------------------------------
Now if, I have to go for DB agents i.e: Oracle, DB2, SQL & for Active Directory then there will more than 300 situations on which I have to go for the action and to check the parameters.
Well, If there is no other way of sending email or there is no email engine that can connect with ITM then I have to proceed in this way :) no worries :) :) :)
Rgds,
Pervaiz