Thanks for the input, WillemDH.
Unfortunately, I can't code in Powershell and I'm still hoping to get WMI monitoring to work for DFS.
Regards,
-klee
Microsoft DFS monitor
Re: Microsoft DFS monitor
You may want to try running the wbemtest utility to troubleshoot the issue. I found a post that *may* help you get on the right track:
http://social.technet.microsoft.com/For ... Management
http://social.technet.microsoft.com/For ... Management
Be sure to check out our Knowledgebase for helpful articles and solutions!
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Microsoft DFS monitor
I was able to reproduce your problem, it occurs when you are using a non administrative user. I found the following steps from http://edcint.co.nz/checkwmiplus/?q=con ... owsfromop5 fixed the problem:
We need to add this step to the documentation you followed earlier:
http://assets.nagios.com/downloads/nagi ... ng_WMI.pdf
NOTE: You will need to change wmiuser to wmiagent (or whatever username you chose to create).Service Control Manager
For op5 Monitor to query a windows server for service information we need to give non-admin users access to the SCM.
First we need to determent the SID of the WMI-user, do this by opening a Command prompt in Windows and enter:
wmic useraccount where name='wmiuser' get sid
You will get the user SID, it will look something like: S-1-5-21-831218587-1591663529-496921927-1002
Now we have to give rights for the wmi-user to access scmanger remotely, run the following command and replace <SID> with the SID you got from the command above.
sc sdset SCMANAGER D:(A;;CCLCRPRC;;;<SID>)(A;;CCLCRPWPRC;;;SY)(A;;KA;;;BA)S:(AU;FA;KA;;;WD)(AU;OIIOFA;GA;;;WD)
Alternativly you can replace <SID> with AU (Authenticated Users) if you don’t want to limit access only to one user.
We need to add this step to the documentation you followed earlier:
http://assets.nagios.com/downloads/nagi ... ng_WMI.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Microsoft DFS monitor
Box293,
Thank you again for the detailed explanation. Your instructions were extremely helpful.
DFS monitoring using WMI Wizard is working perfectly now.
Thank you all very much. Please feel free to close thread.
Best,
-klee
Thank you again for the detailed explanation. Your instructions were extremely helpful.
DFS monitoring using WMI Wizard is working perfectly now.
Thank you all very much. Please feel free to close thread.
Best,
-klee