Details
Assignee
UnassignedUnassignedReporter
Cyrille BolluCyrille BolluComponents
Affects versions
Priority
Major
Details
Details
Assignee
Unassigned
UnassignedReporter
Cyrille Bollu
Cyrille BolluComponents
Affects versions
Priority
PagerDuty
PagerDuty
PagerDuty
Created March 15, 2013 at 11:25 AM
Updated July 26, 2023 at 2:17 PM
I'm trying to setup wmi monitoring (as explained here http://www.opennms.org/wiki/WMI) but can't pass the checkwmi step.
My windows box seems to be correctly configured since a command like "wmic /user:xxxxx /password:jkdfsdkfj /node:10.8.0.18 process" works from my desktop.
But running the following command returns me the following result:
root@opennms:/usr/share/opennms/bin# ./checkwmi -matchType all -wmiClass Win32_BIOS -wmiObject Status -op EQ -value OK -domain . dsveiw Administrator 'password'
org.opennms.protocols.wmi.WmiException: Failed to establish COM session with host 'dsview.fw.belnet.be': Exception occurred. [0x80020009]
at org.opennms.protocols.wmi.WmiClient.connect(WmiClient.java:258)
at org.opennms.protocols.wmi.WmiManager.init(WmiManager.java:255)
at org.opennms.protocols.wmi.CheckWmi.main(CheckWmi.java:143)
Caused by: org.jinterop.dcom.impls.automation.JIAutomationException: Exception occurred. [0x80020009]
at org.jinterop.dcom.impls.automation.JIDispatchImpl.invoke(JIDispatchImpl.java:333)
at org.jinterop.dcom.impls.automation.JIDispatchImpl.callMethodA(JIDispatchImpl.java:520)
at org.jinterop.dcom.impls.automation.JIDispatchImpl.callMethodA(JIDispatchImpl.java:526)
at org.jinterop.dcom.impls.automation.JIDispatchImpl.callMethodA(JIDispatchImpl.java:477)
at org.opennms.protocols.wmi.WmiClient.connect(WmiClient.java:234)
... 2 more
Caused by: org.jinterop.dcom.common.JIRuntimeException: Exception occurred. [0x80020009]
at org.jinterop.dcom.core.JICallBuilder.readResult(JICallBuilder.java:1079)
at org.jinterop.dcom.core.JICallBuilder.read(JICallBuilder.java:957)
at ndr.NdrObject.decode(NdrObject.java:36)
at rpc.ConnectionOrientedEndpoint.call(ConnectionOrientedEndpoint.java:137)
at rpc.Stub.call(Stub.java:113)
at org.jinterop.dcom.core.JIComServer.call(JIComServer.java:901)
at org.jinterop.dcom.core.JIComServer.call(JIComServer.java:856)
at org.jinterop.dcom.core.JIComObjectImpl.call(JIComObjectImpl.java:266)
at org.jinterop.dcom.core.JIComObjectImpl.call(JIComObjectImpl.java:153)
at org.jinterop.dcom.impls.automation.JIDispatchImpl.invoke(JIDispatchImpl.java:315)
... 6 more
FLASH UPDATE: AAARGGHHHH THE FOLLOWING CHECKWMI COMMAND WORKS:
./checkwmi -matchType all -wmiClass Win32_BIOS -wmiObject Status -op EQ -value OK -domain . 10.8.0.18 Administrator 'password'
Checking: for Status Op: EQ Val: OK
Check results: OK (1)
Result for (1) Win32_BIOS\Status: OK
root@opennms:/usr/share/opennms/bin#
SO USING THE IP ADDRESS WORKS!!!!
Sorry for the uppercase I've spent hours trying to figure out the problem......