Netcool/Probe: Checking Number of events processed by Probe

We can track number of events processed by the Probe in the Netcool.

Add this code at the end of the rules file and HUP the Probe process using command Kill -HUP " Process PID"


if ( match(%counter,"") )
{
%counter = 1
%start_time=getdate
}
else
{
%end_time=getdate
$time_elapsed = real(int(%end_time) - int(%start_time))

if (int($time_elapsed) > 59 )
{
$current_load = real(%counter) / real($time_elapsed)
log(info,"Events per second = " + $current_load + " " + (%counter) + " [ " + $time_elapsed + " ]")
%counter = 1
%start_time=getdate
}
else
{
%counter = int(%counter) + 1
}
}