Hey guys,
I need a little help reformatting a report that I have been using for showing All Alert History for the past 4 days in my current deployment. The problem I have is the report worked prior to upgrading to NPM v11.5, however it doesn't work now. I am a complete novice when it comes to SQL so please forgive the primitive nature of the old query. I have found this thread Note about SQL table changes with NPM 11.5 or SAM 6.2 release that mentions changing AlertLog to AlertHistory and LogDateTime to TimeStamp but when I update the string it still isn't working. Does anyone have any pointers for updating it to pull the same info from the old database structure? We use this report for determining problem devices that need to have added scrutiny b/c they are alerting on a regular basis. Thanks for any help in advance.
PJ Martin
select a.LogDateTime, b.AlertName, a.ObjectName, a.ActionType, a.Message from alertlog a inner join AlertDefinitions b on a.AlertDefID=b.AlertDefID where ( DateDiff(dd, LogDateTime, getDate()))<4 order by LogDateTime Desc