Configuring WMI on win 2003, Vista, Server 2008:
Enabling DCOM
Windows Management Instrumentation (WMI) uses DCOM to communicate with monitored target computers. Therefore, for Application Performance Monitor to use WMI, DCOM must be enabled and properly configured.
To enable DCOM permissions for your Application Performance Monitor credentials:
1. Log on to the computer you want to monitor with an administrator account.
2. Navigate to Start > Control Panel > Administrative Tools > Component Services. You need to switch to the Classic View of the Control Panel to use this navigation path. You can also launch this console by double-clicking comexp.msc in the /windows/system32 directory. Configuring WMI on Windows Vista and Windows Server 2008 for Application Performance Monitor ¤ 3
3. Expand Component Services > Computers.
4. Right-click My Computer, and then select Properties.
5. Select the COM Security tab, and then click Edit Limits in the Access Permissions grouping.
6. Ensure the user account you want to use to collect WMI statistics has Local Access and Remote Access, and then click OK.
7. Click Edit Default, and then ensure the user account you want to use to collect WMI statistics has Local Access and Remote Access,
8. Click OK.
9. Click Edit Limits in the Launch and Activation Permissions grouping.
10. Ensure the user account you want to use to collect WMI statistics has Local Launch, Remote Launch, Local Activation, and Remote Activation, and then click OK.
11. Click Edit Default, and then ensure the user account you want to use to collect WMI statistics Local Launch, Remote Launch, Local Activation, and Remote Activation.
12. Click OK.
Enabling Account Privileges in WMI
The account you specify in the Credentials Library must possess security access to the namespace and subnamespaces of the monitored target computer. To enable these privileges, complete the following procedure.
To enable namespace and subnamespaces privileges:
1. Log on to the computer you want to monitor with an administrator account.
2. Navigate to Start > Control Panel > Administrative Tools > Computer Management > Services and Applications. You need to switch to the Classic View of the Control Panel to use this navigation path.
3. Click WMI Control, and then right-click and select Properties.
4. Select the Security tab, and then expand Root and click CIMV2.
5. Click Security and then select the user account used to access this computer and ensure you grant the following permissions:
Enable Account
Remote Enable
6. Click Advanced, and then select the user account used to access this computer.
7. Click Edit, select This namespace and subnamespaces in the Apply to field, and then click OK.
8. Click OK on the Advanced Security Settings for CIMV2 window.
9. Click OK on the Security for Root\CIMV2 window.
10. Click Services in the left navigation pane of Computer Management.
11. Select Windows Management Instrumentation in the Services result pane, and then click Restart. 4 ¤ Configuring WMI on Windows Vista and Windows Server 2008 for Application Performance Monitor
Allowing WMI through the Windows Firewall
You must allow WMI traffic through the firewall of the monitored application server. The following procedure walks you through allowing WMI through the Windows Firewall.
To allow WMI traffic through the Windows Firewall:
1. Log on to the computer you want to monitor with an administrator account.
2. Navigate to Start > Control Panel > Security Center. You need to switch to the Classic View of the Control Panel to use this navigation path.
3. Click Windows Firewall in the left navigation pane.
4. Click Allow a program through Windows Firewall in the left navigation pane.
5. Check Windows Management Instumentation (WMI), and then click OK."
Thanks
Chris
From: marc ritorto [mailto:***@gmail.com]
Sent: 06 April 2011 20:10
To: General OpenNMS Discussion
Subject: Re: [opennms-discuss] Wmi monitoring
guys
any furthur thoughs on the wmi. It seems as if I just setup a wmi service.
How do I setup further queries
--_000_F69E06B480F9B74E8056BCAE90E2F33A0B974B95EXCH2010imforti_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Book Antiqua";
panose-1:2 4 6 2 5 3 5 3 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
p.default, li.default, div.default
{mso-style-name:default;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.pa49, li.pa49, div.pa49
{mso-style-name:pa49;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.pa1, li.pa1, div.pa1
{mso-style-name:pa1;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.pa58, li.pa58, div.pa58
{mso-style-name:pa58;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi Marc,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Someone on here sent me these notes about setting up WMI which have been really useful. The only gotcha is that they only seem to work ok on Server 2003 – I
haven’t been able to get WMI to work properly on server 2008R2.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:10.0pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">“</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#2C2C29">First, in collectd-configuration.xml,
for the WMI service change the status from off to </span><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:red">on</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#2C2C29">.</span><span style="color:#333333"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom:10.0pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#2C2C29"> </span><span style="color:#333333"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom:10.0pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#2C2C29">Second, add credentials to wmi-config.xml for a user that is remotely allowed to access your servers </span><span style="color:#333333"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:#333333"> </span><span style="color:#333333"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:#333333"><?xml version="1.0"?></span><span style="color:#333333"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:#333333"><wmi-config retry="2" timeout="1500" </span><span style="color:#333333"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:#333333"> username="elsayedm" domain="JUSTFIRMA.DE" password="***@just:"> </span><span style="color:#333333"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:#333333"> </span><span style="color:#333333"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:#333333"> <definition username="elsayedm" domain="JUSTFIRMA.DE" password="***@just:"></span><span style="color:#333333"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:#333333"> <specific xmlns="">192.168.251.100</specific></span><span style="color:#333333"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:#333333"> </definition> </span><span style="color:#333333"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:#333333"> </span><span style="color:#333333"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom:10.0pt"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:#333333"></wmi-config></span><span style="color:#333333"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom:10.0pt"><span style="color:#333333"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-bottom:10.0pt"><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:#2C2C29">Third , add the following XML chunk to the capsd-configuration.xml file, inside the <capsd-configuration> section.</span><span style="color:#333333"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:#333333"> </span><span style="color:#333333"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:#333333"><!-- WMI Monitoring --></span><span style="color:#333333"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:#333333"> <protocol-plugin protocol="WMI-test-AntiVR" class-name="org.opennms.netmgt.capsd.plugins.WmiPlugin" scan="on" user-defined="false"></span><span style="color:#333333"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:#333333"> <property key="timeout" value="2000" /></span><span style="color:#333333"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:#333333"> <property key="retry" value="2" /></span><span style="color:#333333"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:#333333"> <property key="matchType" value="all"/></span><span style="color:#333333"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"Courier New";color:#333333"> <property key ="wql" value="Select State