|
Huntland Services Ltd Tel: +44 (0)1392-490518
|
List Alert Performance(Sp1)
|
|||||||||||||||||||||
|
If an Agent has been offline for a while it is not reporting events and alerts. However it is an illusion to think that when it next connects it will have nothing to report. Agents queue their information in local buffers (except alerts) and dump this content when the connection resumes. If the absence is protracted, the capacity of the buffer may be exceeded (By Default 3MB changeable via Mom Configuration settings). In this case some events will be lost. However because the NT/Win2k/.Net logs are persistent, the Mom Agent can 'bookmark' the last event it reported. When it connects again it simply carries on from where it left off. If the log files are vary active, this could result in the reporting of many thousand of events and their corresponding alerts in a very short space of time. This could cause the DCAM to choke and take many minutes to eventually clear the backlog. If you want to see if this is happening you could call up each Alert and check the time interval between when the causal event first happened, i.e. the event was written to the event log, the time this was detected (could be several days later if the buffer was full), the time it got written to the Database and the time its spent hanging around in its current state. Or you could just run this script to see the same analysis for all the open alerts for a given agent. This way you could routinely check to see if there are any latency problems. Actually there is a standard Mom report for this but does not have the same level of detail.
ListAlertPerformance.vbsRun from a command prompt, the script takes two parameters, the name of a (any) Mom DCAM Server and the name of the Agent computer you're interested in. The script is hard coded to select only those alerts that are not resolved otherwise there might be many thousands. Cscript.exe ListAlertPerformance.vbs myDCAMServer myAgentComputer
Results
Custom TaskThis script is an ideal candidate to be included in the Mom Admin Console as a Custom Task. Using a Custom Task you can Right Mouse Click on a Computer Object and have the script run automatically for that computer. To do this create the Custom Task so that the first parameter is the name of the DCAM and the second parameter is the $computer$ variable extracted from the item that has the current focus. For information about how to configure WMI scripts as Custom Tasks see Creating A Custom Task. elsewhere on this site.
|
||||||||||||||||||||||