Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Monitor Distributor Agent in Transnational Replication

$
0
0

Hi,

I wanted to monitor the Distributor Agent's running status in Transnational Replication. I want to get alert when it is stopped.

Tried to create alert for the same. But its not working as expected (does not see any occurrence even when Distribution Agent is stopped).

USE [msdb]
GO
EXEC msdb.dbo.sp_update_alert @name=N'Dist Agent Stopped', 
@message_id=0, 
@severity=0, 
@enabled=1, 
@delay_between_responses=0, 
@include_event_description_in=1, 
@database_name=N'', 
@notification_message=N'Distributor agent is not running', 
@event_description_keyword=N'', 
@performance_condition=N'Replication Agents|Running|Distribution|=|0', 
@wmi_namespace=N'', 
@wmi_query=N'', 
@job_id=N'00000000-0000-0000-0000-000000000000'
GO

EXEC msdb.dbo.sp_update_notification @alert_name=N'Dist Agent Stopped', @operator_name=N'XYZ', @notification_method = 1
GO


Thank you,

Udham Singh


Viewing all articles
Browse latest Browse all 4054

Trending Articles



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