Page 1 of 1

WMI error

Posted: Sat May 02, 2020 7:12 am
by tbs-infrastructure
I was moving our current NagiosXI from Centos 6 to Ubuntu 18.04, the all process went without issues. However, after restore I've noticed that all the services that were using WMI do not work, in fact when I try to add a new Asset using WMI I get:

WMI Error Output:

UNKNOWN - The WMI query had problems. The error text from wmic is: [wmi/wmic.c:196:main()] ERROR: Login to remote object.

NTSTATUS: NT_STATUS_NET_WRITE_FAULT - NT_STATUS_NET_WRITE_FAULT

The same credentials were used on the centos 6 without any issues, further, if I run the following command:
wmic -U domain/username%password //njv-ts01 "Select * from Win32_ComputerSystem"

the output is:
CLASS: Win32_ComputerSystem
AdminPasswordStatus|AutomaticManagedPagefile|AutomaticResetBootOption|AutomaticResetCapability|BootOptionOnLimit|BootOptionOnWatchDog|BootROMSupported|BootStatus|BootupState|Caption|ChassisBootupState|ChassisSKUNumber|CreationClassName|CurrentTimeZone|DaylightInEffect|Description|DNSHostName|Domain|DomainRole|EnableDaylightSavingsTime|FrontPanelResetStatus|HypervisorPresent|InfraredSupported|InitialLoadInfo|InstallDate|KeyboardPasswordStatus|LastLoadInfo|Manufacturer|Model|Name|NameFormat|NetworkServerModeEnabled|NumberOfLogicalProcessors|NumberOfProcessors|OEMLogoBitmap|OEMStringArray|PartOfDomain|PauseAfterReset|PCSystemType|PCSystemTypeEx|PowerManagementCapabilities|PowerManagementSupported|PowerOnPasswordStatus|PowerState|PowerSupplyState|PrimaryOwnerContact|PrimaryOwnerName|ResetCapability|ResetCount|ResetLimit|Roles|Status|SupportContactDescription|SystemFamily|SystemSKUNumber|SystemStartupDelay|SystemStartupOptions|SystemStartupSetting|SystemType|ThermalState|TotalPhysicalMemory|UserName|WakeUpType|Workgroup
1|False|True|True|3|3|True|(0,0,0,0,0,0,0,0,0,0)|Normal boot|NJV-TS01|3|(null)|Win32_ComputerSystem|-240|True|AT/AT COMPATIBLE|NJV-TS01|intranet.totalbanksolutions.com|3|True|3|True|False|NULL|(null)|3|(null)|VMware, Inc.|VMware Virtual Platform|NJV-TS01|(null)|True|8|2|NULL|([MS_VM_CERT/SHA1/27d66596a61c48dd3dc7216fd715126e33f59ae7],Welcome to the Virtual Machine)|True|3932100000|1|1|NULL|False|0|0|3|(null)|Windows User|1|-1|-1|(LM_Workstation,LM_Server,NT,Server_NT)|OK|NULL|(null)|(null)|0|NULL|0|x64-based PC|3|17179332608|(null)|6|(null)

I was able to replicate this behavior on another instance of NagiosXI running Ubuntu 18.04.

Re: WMI error

Posted: Mon May 04, 2020 8:15 am
by tbs-infrastructure
Issue solved.
You can close this.
Thanks,

Re: WMI error

Posted: Mon May 04, 2020 10:10 am
by jbrunkow
Excellent! Thankyou for letting us know.

Please let us know if you have any more questions.

Re: WMI error

Posted: Mon May 04, 2020 10:11 am
by cdienger
Glad to hear!

Can you share what the problem and solution were?