// ***************************************************************************************
//
// Alarm Notification Scripts
//
// ***************************************************************************************
notification file tm_file {
// change filename for site specific value
filename:="d:\teleweb\tm.txt";
}
script con_it
{
rule check
{
if ( $commonMIBSeverity = 1 or $commonMIBSeverity = 2 or $commonMIBSeverity = 3 or $commonMIBSeverity = 4)
{
send( con,
"(",
$CurrentPCTime,
") | ",
$commonMIBComponentAddress,
" | ",
$commonMIBErrCode,
" | ",
$commonMIBAlarmData,
" | ( ",
$commonMIBSeverity,
" ",
$commonMIBAlarmType,
" ",
$commonMIBProbableCause,
" )"
);
}
}
}
script log_it
{
rule check
{
if ( $CurrentTrapDevice = "COMMON_MIB_DEVICE")
{
send( tm_file,
$CurrentPCTime,
";",
$commonMIBErrCode,
";",
$commonMIBAlarmData,
";",
$commonMIBSeverity,
";",
$commonMIBAlarmType,
";",
$commonMIBProbableCause,
";",
$commonMIBComponentAddress,
";",
$commonMIBComponentID,
";",
$commonMIBSeqNumber,
";",
$commonMIBDateAndTime,
";"
);
}
}
}