Ask the Community
Groups
How To: Enable WMI to Monitor in KNM - Connect IT Community | Kaseya
<main> <article class="userContent"> <p>This is a how to guide to monitor WMI with KNM.</p> <p>WMi can be used to monitor many monitors for Windows machines. The monitors are:</p> <ul><li>Active Directory</li> <li>Bandwidth Utilization</li> <li>CPU Utilization</li> <li>Directory Property</li> <li>Disk Utilization</li> <li>Eventlog</li> <li>File Change</li> <li>Log File</li> <li>Memory Utilization</li> <li>Process Status</li> <li>Swap File Utilization</li> <li>Windows Performance</li> <li>Windows Service Status</li> <li>WMI Query</li> </ul><p>Before you can assign WMI monitors to Windows assets, you must make sure that WMI is enabled on the machine. To do this, please check the following.</p> <p><strong>Make sure the Windows Management Instrumentation service is running.</strong></p> <p><img src="/attachments/token/xwazS51zLwKQ2zHIshoVH3qgk/?name=1.png" alt="1.png" class="embedImage-img importedEmbed-img"></img></p> <p><strong>Verify that WMI is enabled for the account you want to use to monitor it</strong></p> <p>Open the Computer Management window on the device. Expand Services and Applications. Right click WMI Control and select Properties. In the Security tab, highlight Root and click the Security button. Make sure Remote Enable is checked for the user or user group you want to use.</p> <p><img src="/attachments/token/WRbmaXCEPAvoc98t0rNpak4kf/?name=2.png" alt="2.png" class="embedImage-img importedEmbed-img"></img></p> <p><strong>Make sure your firewall accepts inbound requests to the WMI service</strong></p> <p>Run this command in the command prompt:</p> <p>netsh advfirewall firewall set rule group="windows management instrumentation (wmi)" new enable=yes</p> <p><strong>Testing WMI</strong></p> <p><strong><br></strong>To test that WMI works, open run on a Windows machine and type:</p> <p>wbemtest.exe</p> <p>This is a built in Windows utility to make WMI queries directly to the machine. When you first run the utility, click the Connect... button.</p> <p><img src="/attachments/token/8N3Ea8mSqJJ2lFlRJRBUoCIEb/?name=3.PNG" alt="3.PNG" class="embedImage-img importedEmbed-img"></img></p> <p>To test WMI locally, click the Connect button again. To monitor WMI from another device, use this format in the Namespace text field:</p> <p>\\<ip_address>\root\cimv2</p> <p>where <ip_address> is the IP of the machine you want to test WMI.</p> <p><img src="/attachments/token/uWzRKvgeo7cthXAjy1gxUJD0N/?name=4.PNG" alt="4.PNG" class="embedImage-img importedEmbed-img"></img></p> <p>Once connected, click the Enum Classes... button and select the Recursive radial button.</p> <p><img src="/attachments/token/XSZMmWixwS36db1UCZ83ZzWp1/?name=5.png" alt="5.png" class="embedImage-img importedEmbed-img"></img></p> <p>If successful, you will be able to monitor the device using WMI.</p> <p><img src="/attachments/token/mPvc9Z3rO501Us0rQuVvlOjca/?name=6.png" alt="6.png" class="embedImage-img importedEmbed-img"></img></p> <p><strong>Enabling WMI on the asset in KNM</strong></p> <p>To enable WMI on the asset in KNM, click the Edit link on the right side of the screen to enter the Edit Asset page. Then go to the Advanced tab and make sure the option Use WMI is checked.</p> <p><img src="/attachments/token/igA8KbY9mbXyyUe7HSkm86IUl/?name=7.png" alt="7.png" class="embedImage-img importedEmbed-img"></img></p> <p>If you want to monitor WMI on the agent machine where the gateway is installed, the Use WMI option <strong>MUST BE DISABLED</strong>. This is because the gateway does not need to authenticate WMI when using localhost.</p> </article> </main>