-
Change Request
-
Resolution: Unresolved
-
Trivial
-
None
-
None
-
None
-
None
-
Any Zabbix Version
We can get wmi items with 'wmi.get' and get all wmi objects with 'wmi.getall' which is handy.
Would it be possible to have an item that allows wmi methods to be called such as 'wmi.call'.
A use case for example would be the following item which uses powershell to call a method to retrieve the 'pending reboot' state for patching.
system.run[powershell -Command "Invoke-WmiMethod -Namespace 'ROOT\ccm\ClientSDK' -Class 'CCM_ClientUtilities' -Name 'DetermineIfRebootPending' | Select -Property IsHardRebootPending | ConvertTo-Json"]
It would be nice somehow to be able to perform this natively with a key such as 'wmi.call.method[NameSpace,Class,Name,Parameters.....]'....
Its a simple example, however I would think security, and input parameters would have to be considered.