S.I.G.M.A. Network s.r.l. | Via Vinicio Cortese 147/F 00128 Roma | P.IVA/C.F. IT05255401001
Registro Imprese Roma – R.E.A. RM-870189 | Capitale sociale i.v. €10.200,00
Copyright © S.I.G.M.A. Netrwork srl
Cookie | Durata | Descrizione |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |
Agentless Monitoring of Windows using WMI
This how-to will guide you to monitor your Windows server using WMI. This will allow you to do checks from op5 on Windows hosts without installing any agent in Windows.
FAQ
What is WMI?
In short: A way to do queries on a Windows host, much like SNMP but much more advanced. The Long version: WMI is a set of extensions to the Windows Driver Model that provides an operating system interface through which instrumented components provide information and notification. WMI is Microsoft’s implementation of the Web-Based Enterprise Management (WBEM) and Common Information Model (CIM) standards from the Distributed Management Task Force (DMTF) (source: Wikipedia).
Why should I use WMI?
1. It is agentless
2. You can monitor a lot more with WMI on windows host than with SNMP
3. You can create more complex questions
What prerequisites are there?
The windows host that should be monitored need to have WMI and a user that is allowed to do WMI queries. On the op5 monitor you need to install some rpm packages and a new check plug-in.
Installation guide
For this how-to to work you need to upgrade your plugin package to version 2.8.0, this will be release in week 36. If you use a distributed monitoring solution you need to do this on all your masters, pollers and peers.
Upgrade plug-in package
You need to upgrade your plug-in package to version 2.8.0 Either do a upgrade of your whole system
or upgrade only plugin-package
Install WMIC
For the wmi-plugin to work you need to install wmic on your op5 monitor server.
Test installation of WMI
Make sure WMI is installed and configure on the Windows host first.
Test installation of Check WMI Plus plugin
Go to /opt/plugin/
Configure WMI account information
It’s possible to add user and password to a central file “/opt/monitor/etc/resource.cfg”.
This allows you to partially hide the credentials from the op5 GUI and to update a single file if they need to be updated.
Note that you need to edit all of the WMI check_command to use $USER8$ and $USER9$ instead of $ARG1$ and $ARG2$. You will also have to rename the remaining arguments.
Example of an updated check_command:
If you wish to use the resource file, add the following to “/opt/monitor/etc/resource.cfg”:
Restart the op5 service
Add check commands
Add WMI checks on host
CPU
Memory
Page file Usage
Services
Disk Usage
Process CPU Usage
To check a process CPU usage does not have a check command, this has to be created first.
Now we can add the service check
Save and export configuration
There are two way to grant access to WMI for a remote user, either you add a user to the administrators group or you follow the steps below to grant access to WMI without using administrator rights.
This part shows how to set up remote WMI access on a Windows 2008 R2 SP1 server. This server was set up as a member server of a workgroup.
Create a new user
We create a new user and after that we will give the user access to do remote WMI queries.
Change user settings
Grant privileges to WMI
GPO Settings
Run one of the following three Microsoft Management Console (MMC) snap-ins:
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:
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 replacewith the SID you got from the command above.
Alternativly you can replacewith AU (Authenticated Users) if you don’t want to limit access only to one user.
Disable UAC
For some check you might need to disable or lower the UAC settings. For the standard this should not be needed.
Done!
Useful tools and links
WMI browser
Check WMI Plus homepage
Articoli recenti
Categorie
Recent Posts
Ciao mondo!
20 Settembre 2022Improving Your Technology
13 Novembre 2019Apply These 5 Secret Techniques
13 Novembre 2019Calendar