Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-8874

Zabbix Agent WMI item to call WMI methods

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Trivial 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.

            Unassigned Unassigned
            james.cook000@gmail.com James Cook
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: