sql server セッション監視をしたい

【環境】
windows server
sql server 2017 std
zabbix 4.0.41

sql server セッション監視を行いたいです。
以下、session.sqlです
’'''
--現在実行中のユーザーセッションのリストを取得
select session_id, login_name, host_name, program_name, status, last_request_start_time, last_request_end_time, cpu_time, memory_usage
from sys.dm_exec_sessions
where is_user_process = 1 and status = 'running'
’'''

どのようにすれば、SQL文を追記できますか。

コメント表示オプション

お好みのコメント表示方法を選び「設定の保存」をクリックすると変更が反映されます。
ユーザー TNK の写真

ZabbixサーバーからODBC接続ができる環境であるならば、ODBCで接
続して実行すれば良いのではないでしょうか?
Zabbixサーバーから直接アクセスできないのであれば、Zabbixエー
ジェントを経由して値を取得するよう、UserParameterを使用して
みてはいかがでしょうか?

https://www.zabbix.com/documentation/4.0/en/manual/config/items/itemtype...
https://www.zabbix.com/documentation/4.0/en/manual/config/items/userpara...