Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

SQL 2008R2 -> Performance Condition alert for CPU Threshold event

$
0
0

I am trying to use SQLServer Agent alert for Resoure governor setup. I would like to be alerted when CPU threshold -> REQUEST_MAX_CPU_TIME_SEC >  20 -> is crossed for any particular query. I am in RTM version for SQL2008R2. For some reason the alert never occurs thru SQL Agent Alert.

Here is my alert configuration

EXEC msdb.dbo.sp_add_alert 
	@name=N'CPU Alert', 
	@message_id = 0, 
	@severity = 0, 
	@enabled = 1, 
	@delay_between_responses = 60, 
	@include_event_description_in = 1, 
	@notification_message = N'Email from alert CPU', 
	@category_name = N'[Uncategorized]', 
	@performance_condition = N'MSSQL$XXXXXX:Workload Group Stats|Max request cpu time (ms)|default|>|1', 
	@job_id = N'00000000-0000-0000-0000-000000000000'

THe same alert is working if I put < 5, I am able to notified by email. But when I put > I dont see any alert.


I have tried changing the default setting for resource governor to various #s (1, 5, 20, 600) . But for any change, if i use perf condition > 5, i dont get any alert. If i use < 5 then i get alerts...

Is it a bug, or am i missing something...

Any help will be much appreciated...


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>