Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
DFS Replication and BackLog
Nagios XI
2015-10-10
- Nagios 3.x
- Nagios 4.x
- Nagios XI
GPL
21574
File | Description |
---|---|
DFS-Backlog.vbs | Backlog Check |
DFSR.vbs | Replication Check |
DFS_README | ReadMe |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
Author: Kevin Keck
ITDevops
ArgoTurbo Corporation
Check DFS Replication and Check DFS Backlog are VBS scripts written to check Windows Distributed File System for good status and backlog workflow.
DFS replication can be setup locally and will check all DFS groups setup on that server, it has one variable that can be passed to check the conflicts and deleted directory sizes in MB.
DFS Backlog needs to have the specified folder you want to check for backlog. Three variables are fed from Nagios, warning/critical (in number of files), and the folder name you want to check.
Keep in mind that external variables have to be setup in the Windows check utility you are using. I have mentioned the changes I had to make in the INI files along with the check command for either of the two I use.
Example:
Nagios service:
$USER1$/check_nrpe -u -H $HOSTADDRESS$ -p 5666 -c check_DFSR -t 180 -a $ARG1$
COMMAND: /usr/local/nagios/libexec/check_nrpe -u -H SERVERNAME -p 5667 -c check_DFSR -t 180 -a 600
OUTPUT: 14 Replication groups passed, all under 600MB synch difference.
$USER1$/check_nrpe -u -H $HOSTADDRESS$ -t 420 -p 5667 -c check_DFSBacklog -a $ARG1$ $ARG2$ $ARG3$
COMMAND: /usr/local/nagios/libexec/check_nrpe -u -H SERVERNAME -t 420 -p 5667 -c check_DFSBacklog -a FOLDERNAME 100 200
OUTPUT: OK - 0 -BackLog Count for FOLDERNAME 0 -BackLog Count for FOLDERNAME
NRPE:
dont_blame_nrpe=1
command[check_DFSR]=cscript.exe //NoLogo C:nrpe_nt.0.8b-binbinDFSR.vbs $ARG1$
command[check_DFSBacklog]=cscript.exe //NoLogo C:nrpe_nt.0.8b-binbinDFS-Backlog.vbs $ARG1$
NSClient:
[/settings/NRPE/server]
allow arguments=1
[/settings/external scripts/scripts]
check_DFSR = cscript.exe //NoLogo C:nrpe_nt.0.8b-binbinDFSR.vbs $ARG1$
check_DFSBacklog = cscript.exe //NoLogo C:nrpe_nt.0.8b-binbinDFS-Backlog.vbs $ARG1$
DFS replication can be setup locally and will check all DFS groups setup on that server, it has one variable that can be passed to check the conflicts and deleted directory sizes in MB.
DFS Backlog needs to have the specified folder you want to check for backlog. Three variables are fed from Nagios, warning/critical (in number of files), and the folder name you want to check.
Keep in mind that external variables have to be setup in the Windows check utility you are using. I have mentioned the changes I had to make in the INI files along with the check command for either of the two I use.
Example:
Nagios service:
$USER1$/check_nrpe -u -H $HOSTADDRESS$ -p 5666 -c check_DFSR -t 180 -a $ARG1$
COMMAND: /usr/local/nagios/libexec/check_nrpe -u -H SERVERNAME -p 5667 -c check_DFSR -t 180 -a 600
OUTPUT: 14 Replication groups passed, all under 600MB synch difference.
$USER1$/check_nrpe -u -H $HOSTADDRESS$ -t 420 -p 5667 -c check_DFSBacklog -a $ARG1$ $ARG2$ $ARG3$
COMMAND: /usr/local/nagios/libexec/check_nrpe -u -H SERVERNAME -t 420 -p 5667 -c check_DFSBacklog -a FOLDERNAME 100 200
OUTPUT: OK - 0 -BackLog Count for FOLDERNAME 0 -BackLog Count for FOLDERNAME
NRPE:
dont_blame_nrpe=1
command[check_DFSR]=cscript.exe //NoLogo C:nrpe_nt.0.8b-binbinDFSR.vbs $ARG1$
command[check_DFSBacklog]=cscript.exe //NoLogo C:nrpe_nt.0.8b-binbinDFS-Backlog.vbs $ARG1$
NSClient:
[/settings/NRPE/server]
allow arguments=1
[/settings/external scripts/scripts]
check_DFSR = cscript.exe //NoLogo C:nrpe_nt.0.8b-binbinDFSR.vbs $ARG1$
check_DFSBacklog = cscript.exe //NoLogo C:nrpe_nt.0.8b-binbinDFS-Backlog.vbs $ARG1$
Reviews (10)
byanthonyCHU, July 8, 2018
hello,
2016 Server don't use DFSR, now it's storage replica....
2016 Server don't use DFSR, now it's storage replica....
byStronix, March 14, 2018
Hello,I want to run your script on Windows Server 2016 but i have a error message who appears :
Line : 27
Caract : 1
Error : Subscript outside of the range
Code : 800A0009
Source : Error execution of Microsoft VBScript
Thank's you for your work !
Line : 27
Caract : 1
Error : Subscript outside of the range
Code : 800A0009
Source : Error execution of Microsoft VBScript
Thank's you for your work !
bybladezz, April 8, 2016
I have managed to get the DFS replication script to work , but having a vbscript runtime error: Subscript out of range when I run the command shown on the page for backlog.
as I'm not a coder not sure what the problem is.
as I'm not a coder not sure what the problem is.
byRookie23, February 9, 2016
I am getting this message when I want to try it from my nagios server. NSClient on Windows is 0.4.172, and set up is per your instructions here
Tried the script manually from command line in Windows, works really good.
Please if you can, contact me, I am quite clueless what to do
Tried the script manually from command line in Windows, works really good.
Please if you can, contact me, I am quite clueless what to do
I implemented DFS in my environment recently but was disappointed by the lack of monitoring tools available. But since I was already using Nagios, this was perfect! Really amazed by the quality of this plugin. Perfect reporting every time.
Thanks for your effort!
Thanks for your effort!
byGChildress1975, November 2, 2015
This plugin is very useful in our environment. We recently implemented DFS and looked to Nagios for alerting. This plugin does exactly what we need.
Thank you for spending the time to create this for other Nagios customers ArgoTurbo!!!
Thank you for spending the time to create this for other Nagios customers ArgoTurbo!!!
bybkhan20, October 22, 2015
This is super Helpful.
There was no way for us to be proactive in identifying issues with DFS replication. With this we can identify and resolve DFS replication and backlog issue way before our users are impacted.
Thanks Argoturbo
There was no way for us to be proactive in identifying issues with DFS replication. With this we can identify and resolve DFS replication and backlog issue way before our users are impacted.
Thanks Argoturbo
byHoodieWhatie, October 20, 2015
This is excellent!
So much easier than the alternative solutions.
Thank you for putting forth the time and effort on this one. Easy 5 Stars.
So much easier than the alternative solutions.
Thank you for putting forth the time and effort on this one. Easy 5 Stars.
byarindam, October 15, 2015
Nice add-on to check the DFS replication and DFS backlog if any in no time. Really appreciated Argoturbo for this awesome add-on.
Glad this was uploaded
We have had issues with DFS replication and backlog reporting for a while.
There was no plugin up until this point for nagios. Using powershell was good however not integrated and required constant maintenance.
Glad Argoturbo wrote this plugin.
We have had issues with DFS replication and backlog reporting for a while.
There was no plugin up until this point for nagios. Using powershell was good however not integrated and required constant maintenance.
Glad Argoturbo wrote this plugin.