[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opennms-install
Subject:    [opennms-install] OpenNMS / WMI - Problem with WMI Windows Server 2012
From:       "Madden, Joe" <Joe.Madden () mottmac ! com>
Date:       2015-08-12 14:09:59
Message-ID: 2ACCBDBE58DC76418489A048925F7FF6018E7E35A9 () UKMB01 ! mottmac ! group ! int
[Download RAW message or body]

Hi All,

I've been trying to configure OpenNMS on a Windows server 2012 to no avil. =
The server configuration is essentially out the box with some apps installe=
d, WMI has been configured in accordance with http://www.opennms.org/wiki/W=
MIConfiguration.

WMI Will work, if I use the Administrator username and password (So ruling =
out the firewall here), however I have configured an additional account for=
 monitoring purposes, added it to the administrators group, and performed t=
he registry tweaks as suggested by the WMI configuration page in the wiki.

The error I get back from a windows host to WMI is :

Get-WmiObject -Credential opennms -ComputerName atomdb Win32_BIOS | fl Stat=
us
Get-WmiObject : Access is denied. (Exception from HRESULT: 0x80070005 (E_AC=
CESSDENIED))
At line:1 char:14
+ Get-WmiObject <<<<  -Credential opennms -ComputerName atomdb Win32_BIOS |=
 fl Status
    + CategoryInfo          : NotSpecified: (:) [Get-WmiObject], Unauthoriz=
edAccessException
    + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.=
PowerShell.Commands.GetWmiObjectCommand

And the check WMI script:

checkwmi -matchType all -wmiClass Win32_BIOS -wmiObject Status -op EQ -valu=
e OK -domain workgroup ###
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further d=
etails.
org.opennms.protocols.wmi.WmiException: Failed to establish COM session wit=
h host '192.168.242.146': Access is denied, please check whether the [domai=
n-username-password] are correct. Also, if not already done please check th=
e GETTING STARTED and FAQ sections in readme.htm. They provide information =
on how to correctly configure the Windows machine for DCOM access, so as to=
 avoid such exceptions.  [0x00000005]
        at org.opennms.protocols.wmi.WmiClient.connect(WmiClient.java:263)
        at org.opennms.protocols.wmi.WmiManager.init(WmiManager.java:264)
        at org.opennms.protocols.wmi.CheckWmi.main(CheckWmi.java:149)
Caused by: org.jinterop.dcom.common.JIException: Access is denied, please c=
heck whether the [domain-username-password] are correct. Also, if not alrea=
dy done please check the GETTING STARTED and FAQ sections in readme.htm. Th=
ey provide information on how to correctly configure the Windows machine fo=
r DCOM access, so as to avoid such exceptions.  [0x00000005]
        at org.jinterop.winreg.smb.JIWinRegStub.winreg_OpenKey(JIWinRegStub=
.java:197)
        at org.jinterop.dcom.core.JIProgId.getIdFromWinReg(JIProgId.java:13=
1)
        at org.jinterop.dcom.core.JIProgId.getCorrespondingCLSID(JIProgId.j=
ava:162)
        at org.jinterop.dcom.core.JIComServer.<init>(JIComServer.java:413)
        at org.opennms.protocols.wmi.WmiClient.connect(WmiClient.java:232)
        ... 2 more
Caused by: org.jinterop.dcom.common.JIRuntimeException: Access is denied, p=
lease check whether the [domain-username-password] are correct. Also, if no=
t already done please check the GETTING STARTED and FAQ sections in readme.=
htm. They provide information on how to correctly configure the Windows mac=
hine for DCOM access, so as to avoid such exceptions.  [0x00000005]
        at org.jinterop.winreg.IJIWinReg$openKey.read(IJIWinReg.java:939)
        at ndr.NdrObject.decode(NdrObject.java:36)
        at rpc.ConnectionOrientedEndpoint.call(ConnectionOrientedEndpoint.j=
ava:137)
        at rpc.Stub.call(Stub.java:113)
        at org.jinterop.winreg.smb.JIWinRegStub.winreg_OpenKey(JIWinRegStub=
.java:191)
        ... 6 more



At least the errors are consistence. Any ideas on what specific to check?

Joe


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" \
CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 \
(filtered medium)"><style><!-- /* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:"Lucida Console";
	panose-1:2 11 6 9 4 5 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
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-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.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>Hi All,<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I&#8217;ve been trying to \
configure OpenNMS on a Windows server 2012 to no avil. The server configuration is \
essentially out the box with some apps installed, WMI has been configured in \
accordance with <a href="http://www.opennms.org/wiki/WMIConfiguration">http://www.opennms.org/wiki/WMIConfiguration</a>. \
<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>WMI Will \
work, if I use the Administrator username and password (So ruling out the firewall \
here), however I have configured an additional account for monitoring purposes, added \
it to the administrators group, and performed the registry tweaks as suggested by the \
WMI configuration page in the wiki.<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>The error I get back from a \
windows host to WMI is :<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p \
class=MsoNormal>Get-WmiObject -Credential opennms -ComputerName atomdb Win32_BIOS | \
fl Status<o:p></o:p></p><p class=MsoNormal>Get-WmiObject : Access is denied. \
(Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))<o:p></o:p></p><p \
class=MsoNormal>At line:1 char:14<o:p></o:p></p><p class=MsoNormal>+ Get-WmiObject \
&lt;&lt;&lt;&lt;&nbsp; -Credential opennms -ComputerName atomdb Win32_BIOS | fl \
Status<o:p></o:p></p><p class=MsoNormal>&nbsp;&nbsp;&nbsp; + \
CategoryInfo&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : NotSpecified: \
(:) [Get-WmiObject], UnauthorizedAccessException<o:p></o:p></p><p \
class=MsoNormal>&nbsp;&nbsp;&nbsp; + FullyQualifiedErrorId : \
System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.GetWmiObjectCommand<o:p></o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>And the check WMI \
script:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:9.0pt;font-family:"Lucida \
Console"'>checkwmi -matchType all -wmiClass Win32_BIOS -wmiObject Status -op EQ \
-value OK -domain workgroup ###<o:p></o:p></span></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:9.0pt;font-family:"Lucida \
Console"'>SLF4J: Failed to load class \
&quot;org.slf4j.impl.StaticLoggerBinder&quot;.<o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:9.0pt;font-family:"Lucida Console"'>SLF4J: Defaulting to \
no-operation (NOP) logger implementation<o:p></o:p></span></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:9.0pt;font-family:"Lucida \
Console"'>SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further \
details.<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span \
style='font-size:9.0pt;font-family:"Lucida \
Console"'>org.opennms.protocols.wmi.WmiException: Failed to establish COM session \
with host '192.168.242.146': Access is denied, please check whether the \
[domain-username-password] are correct. Also, if not already done please check the \
GETTING STARTED and FAQ sections in readme.htm. They provide information on how to \
correctly configure the Windows machine for DCOM access, so as to avoid such \
exceptions.&nbsp; [0x00000005]<o:p></o:p></span></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:9.0pt;font-family:"Lucida \
Console"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.opennms.protocols.wmi.WmiClient.connect(WmiClient.java:263)<o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:9.0pt;font-family:"Lucida \
Console"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.opennms.protocols.wmi.WmiManager.init(WmiManager.java:264)<o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:9.0pt;font-family:"Lucida \
Console"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.opennms.protocols.wmi.CheckWmi.main(CheckWmi.java:149)<o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:9.0pt;font-family:"Lucida Console"'>Caused by: \
org.jinterop.dcom.common.JIException: Access is denied, please check whether the \
[domain-username-password] are correct. Also, if not already done please check the \
GETTING STARTED and FAQ sections in readme.htm. They provide information on how to \
correctly configure the Windows machine for DCOM access, so as to avoid such \
exceptions.&nbsp; [0x00000005]<o:p></o:p></span></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:9.0pt;font-family:"Lucida \
Console"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.jinterop.winreg.smb.JIWinRegStub.winreg_OpenKey(JIWinRegStub.java:197)<o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:9.0pt;font-family:"Lucida \
Console"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.jinterop.dcom.core.JIProgId.getIdFromWinReg(JIProgId.java:131)<o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:9.0pt;font-family:"Lucida \
Console"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.jinterop.dcom.core.JIProgId.getCorrespondingCLSID(JIProgId.java:162)<o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:9.0pt;font-family:"Lucida \
Console"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.jinterop.dcom.core.JIComServer.&lt;init&gt;(JIComServer.java:413)<o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:9.0pt;font-family:"Lucida \
Console"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.opennms.protocols.wmi.WmiClient.connect(WmiClient.java:232)<o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:9.0pt;font-family:"Lucida \
Console"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ... 2 \
more<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span \
style='font-size:9.0pt;font-family:"Lucida Console"'>Caused by: \
org.jinterop.dcom.common.JIRuntimeException: Access is denied, please check whether \
the [domain-username-password] are correct. Also, if not already done please check \
the GETTING STARTED and FAQ sections in readme.htm. They provide information on how \
to correctly configure the Windows machine for DCOM access, so as to avoid such \
exceptions.&nbsp; [0x00000005]<o:p></o:p></span></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:9.0pt;font-family:"Lucida \
Console"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.jinterop.winreg.IJIWinReg$openKey.read(IJIWinReg.java:939)<o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:9.0pt;font-family:"Lucida \
Console"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
ndr.NdrObject.decode(NdrObject.java:36)<o:p></o:p></span></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:9.0pt;font-family:"Lucida \
Console"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
rpc.ConnectionOrientedEndpoint.call(ConnectionOrientedEndpoint.java:137)<o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:9.0pt;font-family:"Lucida \
Console"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
rpc.Stub.call(Stub.java:113)<o:p></o:p></span></p><p class=MsoNormal \
style='text-autospace:none'><span style='font-size:9.0pt;font-family:"Lucida \
Console"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.jinterop.winreg.smb.JIWinRegStub.winreg_OpenKey(JIWinRegStub.java:191)<o:p></o:p></span></p><p \
class=MsoNormal style='text-autospace:none'><span \
style='font-size:9.0pt;font-family:"Lucida \
Console"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ... 6 \
more<o:p></o:p></span></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p \
class=MsoNormal>At least the errors are consistence. Any ideas on what specific to \
check?<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p \
class=MsoNormal>Joe<span style='mso-fareast-language:EN-GB'><o:p></o:p></span></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>


[Attachment #4 (--===============7877851538497748621==)]
------------------------------------------------------------------------------


_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic