Recommended Posts

XKJNGZ

Uses Powershell to make WMI queries to get the current backlog file count for each outbound DFSR partner on each DFSR share.  These queries can be expensive if the backlog is large, so the polling interval is set to 10 minutes.  If there is no backlog, the script finishes quickly.  No default alerting is set, but I would recommend adding a threshold to be notified of potential replication issues.

 

NOTE* - The collector must be able to reach both DFSR partners and will use the same credentials to make the queries for both.

  • Upvote 1
Link to post
Share on other sites
  • 4 weeks later...
  • 1 year later...
  • 9 months later...
  • 3 months later...

Installed and setup your datasource.

It is collecting data.

I would like to be Alerted if DFS Replication stops between any 2 servers.

What type of alert setup would you recommend?

Thanks in advance.

 

On 6/13/2017 at 1:20 PM, Brandon said:

XKJNGZ

Uses Powershell to make WMI queries to get the current backlog file count for each outbound DFSR partner on each DFSR share.  These queries can be expensive if the backlog is large, so the polling interval is set to 10 minutes.  If there is no backlog, the script finishes quickly.  No default alerting is set, but I would recommend adding a threshold to be notified of potential replication issues.

 

NOTE* - The collector must be able to reach both DFSR partners and will use the same credentials to make the queries for both.

 

Link to post
Share on other sites

Hi @John Biniewski,

The alert thresholds are largely going to depend on how large your share are.  You can set the alert threshold to something quite low like 10, and wait for an alert, but unfortunately, this is one of those times when you'll need to revisit your thresholds to determine what is normal for your environment(s).  Wish I could be more help here.

Link to post
Share on other sites

Hi @Nicklas Karlsson and @Jonathan Hill,

So you guys are running into an issue where the datasource isn't finding any instances.  That's no good!

The datasource uses remote Powershell commands from the Windows collector to the target server.  I would probably start by using an RDP session to a collector and running the script from an elevated PS session.  Before you run it, you'll need to modify the script to use whatever creds you have set up on that target server.

For a quick test, just check to see if these two wmi calls return anything from the remote system:

$hostname = <target Server>

gwmi -Namespace "root\MicrosoftDFS" -ComputerName $hostName -Query 'SELECT * FROM DfsrReplicatedFolderInfo'
gwmi -Namespace "root\MicrosoftDFS" -ComputerName $hostName -Query 'SELECT * FROM DfsrConnectionConfig WHERE Inbound = "False"'

 

If these two work, DM me and we can try to figure out what the issue is.  I'm guessing we're running into a character limit and I need to account for that.

 

Thanks!

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.