Page 1 of 1

Is anyone monitoring DFSR backlog successfully?

Posted: Mon Apr 13, 2015 11:35 am
by jsharris
We are trying to monitor our DFSR backlog but can't seem to get the plugin from the Nagios Exchange working (Microsoft DFS Monitor; http://exchange.nagios.org/directory/Ad ... or/details). Running the script returns a backlog of 0 every time even when we just enter a bunch of random characters for the variables.

To test we are trying to run the winexe command contained in the check script (with the necessary variables supplied manually) and can't make it work. Here is the command being used:

Code: Select all

/usr/local/bin/winexe -U DOMAIN/administrator%password //DFSSVR "dfsrdiag backlog /receivingmember:RSVR /sendingmember:SSVR /rgname:REPLG /rfname:REPLF"
Every time it returns the following error:

Code: Select all

[winexe/winexe.c:225:on_ctrl_pipe_read()] Error: error Creating process(dfsrdiag backlog /receivingmember:RSVR /sendingmember:SSVR /rgname:REPLG /rfname:REPLF) 2
We can successfully run simple commands such as hostname and ipconfig through winexe but not the dfsrdiag backlog command. It does not seem to be an authentication problem as that returns a different error (Failed to open connection - NT_STATUS_LOGON_FAILURE).

Has anyone had any success with this plugin to work or come up with an alternative means of monitoring DFSR backlog?

Thanks in advance to all.

Re: Is anyone monitoring DFSR backlog successfully?

Posted: Mon Apr 13, 2015 12:43 pm
by lmiltchev
This is a 3rd party plugin. We are not familiar with it and it is going to take some time to test it. I would recommend asking the developer directly. You can post a question/comment here:

http://exchange.nagios.org/directory/Ad ... or/details

If you had a custom script that you could run on the Windows box (which would give you the info that you need), you could call it in XI via NCPA or NSClient++ .

Re: Is anyone monitoring DFSR backlog successfully?

Posted: Tue Apr 21, 2015 12:36 pm
by jsharris
How would I go about feeding the results of the custom script back into Nagios for it to report as normal/warning/critical?

Re: Is anyone monitoring DFSR backlog successfully?

Posted: Tue Apr 21, 2015 2:09 pm
by lmiltchev
Well, you will need to include exit codes logic in the script, then define the command in nsclient.ini, for example:

Code: Select all

myscript = cmd /c echo scripts\custom_script.ps1; exit $LastExitCode | powershell.exe -command -
Test the check from XI:

Code: Select all

./check_nrpe -H <client ip> -c myscript