Closed killmasta93 closed 2 years ago
Short answer - no, not possible.
Longer explanation. You want for a Zabbix to retrieve the blocking user (User name? Login name? SPID? AppName? HostName?) and the query which is a head blocker (?). So you want to receive two values into one field. Now, how big is a blocking query? I mean, how many symbols, characters, (n)varchars it will span? 100? 200? 500? 1000? Zabbix manual shows me that if you select Type of information Text (long text data), text data limits will be 255 characters. Best case scenario - you will get the beginning of the blocking query, worst case scenario - item will become unsupported. Lets say, you managed to get the info you needed into zabbix - what would be your course of action after receiving alert about blocking? You would still need to log into SQL server, kill that blocking query, right? My suggestions. 1. Use zabbix blocking alert to get alerts. 2. User https://www.brentozar.com/archive/2014/03/extended-events-doesnt-hard/ to capture blocking alerts, to log them and to have a possibility to analyze them. Good luck
Hi, Would it be possible that when it get blocked to show which query is doing the blocking and the user that is blocking it?
maybe something like this?