Welcome to Pandora FMS Community › Forums › Community support › Advanced troubleshooting › [Solved] No WMI After Upgrade [Error with WMI Explorer]
-
[Solved] No WMI After Upgrade [Error with WMI Explorer]
Posted by Murigar on July 15, 2014 at 20:06After upgrade, WMI modules never initialize.
Upgrade steps performed. On working 5.0 SP4. Which was an updated appliance.
Below are my upgrade steps:
# /etc/init.d/pandora_server stop
# /etc/init.d/tentacle_serverd stop
# yum upgrade -y
(installs new RPMs, pandorafms_server, _console, _agent_unix)
# cat /var/www/html/pandora_console/extras/pandoradb_migrate_5.0.x_to_5.1.mysql.sql | mysql -uroot -pXXXXXXXXXXXXXX -D pandora
# /etc/init.d/pandora_server start
# /etc/init.d/tentacle_serverd start
# /usr/share/pandora_server/util/pandora_migrate_recon_scripts.pl pandora localhost pandora XXXXXXXXXXXXXX
(1 script migrated)If I execute the WMI command manually it works fine.
The log shows:
“2014-07-15 10:00:43 pandorafmxxx.xxxx.xxx [V9] Executing AM # 3133 WMI command ‘wmic -U “xxxxx/xxxxx”%”xxxxxx” –namespace=”ROOTCIMV2″ //xxx.xx.x.xx “select PercentFreeSpace from Win32_PerfFormattedData_PerfDisk_LogicalDisk WHERE name = ‘C:'”‘
2014-07-15 10:00:43 pandorafmxxx.xxxx.xxx [V10] Updating module Free Disk Space C: % (ID 3133) on error.Suggestions?
HerpDerper replied 9 years, 5 months ago 5 Members · 15 Replies -
15 Replies
-
-
::
Please keep in mind that I am providing a limited example. I have over 400 WMI modules in use in total. None of them will initialize after the upgrade.
Command:
[root@pandorafmsairporttest pandora]# wmic -U XXX/XXX%XXX –namespace=”ROOTCIMV2″ //x.x.x.x “select Name from Win32_PageFileUsage”Returns:
CLASS: Win32_PageFileUsage
Name
C:pagefile.sysScreenshot of module:
-
::
Below is the corresponding log file entry:
2014-07-23 14:39:57 pandorafmsairporttest.xxx.xxx.xxx [V9] Executing AM # 3126 WMI command ‘wmic -U “xx/xxx”%”xxx” –namespace=”ROOTCIMV2″ //x.x.x.x “select Name from Win32_PageFileUsage”‘
2014-07-23 14:39:57 pandorafmsairporttest.xxx.xxx.xxx [V10] Updating module Page File Location (ID 3126) on error.
-
-
::
Thank you for this discovery.
There is no specific reason why this is being used. But it is configured on all of my WMI modules.
From the GUI
In version 5.0 the back or forward slash “” “/” works.
In version 5.1 only the forward slash “/” works.From the CLI
Only the forward slash “/” works in both versions.Is version 5.0 translating this on execution?
Do you know any way to change all the modules “/”, or remove that field? I don’t see that filed in the “Massive operations.”
-
-
-
::
Oh Sorry,
id_tipo_modulo=3 is the type generic_data_string, not only WMI. Not exist any option to see only WMI modules in database. Only you can change it manually or if you have agents only with WMI modules, you can select the query as id_agent and change all modules at same time.
Regards
-
-
-
-
::
Thank you for this discovery.
There is no specific reason why this is being used. But it is configured on all of my WMI modules.
From the GUI
In version 5.0 the back or forward slash “” “/” works.
In version 5.1 only the forward slash “/” works.From the CLI
Only the forward slash “/” works in both versions.Is version 5.0 translating this on execution?
Do you know any way to change all the modules “/”, or remove that field? I don’t see that filed in the “Massive operations.”
Just a heads up to everyone looking. This fixed my WMI login errors on domain servers. For some reason if you use a normal backslash “” it dosnt work. Change it to a forward slash “/” and the WMI browser/queries will work.
For example: domain/administrator instead of domainadministrator
Tag to help others find this… took me FOREVER:
ERROR Unable to do WMI explorer -
-
-