Module Expr Str ImportFrom alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body Expr Str If CompareIn Str NameLoad body Return Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Str NameLoad body Expr Str Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad If NameLoad body If CompareNotEq SubscriptLoad NameLoad Index Str NameLoad body Expr Call SubscriptLoad NameLoad Index Str NameLoad NameLoad Assign SubscriptStore NameLoad Index Str Dict Str Str Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad If SubscriptLoad NameLoad Index Str body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index Str Dict Str Str Str Str Assign SubscriptStore NameLoad Index Str NameLoad Return NameLoad If Call SubscriptLoad NameLoad Index Str NameLoad NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Dict Str Str Str Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list
N/A N/A 
State to manage monitoring in Zenoss.

.. versionadded:: 2016.3.0

This state module depends on the 'zenoss' Salt execution module.

Allows for setting a state of minions in Zenoss using the Zenoss API. Currently Zenoss 4.x is supported.

.. code-block:: yaml

    enable_monitoring:
      zenoss.monitored:
        - name: web01.example.com
        - device_class: /Servers/Linux
        - collector: localhost
        - prod_state: 1000
 __future__ absolute_import N/A logging N/A log N/A N/A logging getLogger __name__ __virtual__ N/A N/A N/A N/A N/A 
    Only load if the Zenoss execution module is available.
     N/A N/A zenoss.add_device __salt__ N/A N/A zenoss N/A monitored N/A N/A name device_class collector prod_state N/A None localhost None N/A N/A 
    Ensure a device is monitored. The 'name' given will be used for Zenoss device name and should be resolvable.

    .. code-block:: yaml

        enable_monitoring:
          zenoss.monitored:
            - name: web01.example.com
            - device_class: /Servers/Linux
            - collector: localhost
            - prod_state: 1000
     N/A ret N/A N/A N/A ret N/A name name N/A device N/A N/A __salt__ N/A zenoss.find_device name N/A device N/A N/A N/A ret N/A result True N/A N/A ret N/A changes None N/A N/A ret N/A comment N/A N/A {0} is already monitored format name N/A prod_state N/A N/A N/A N/A device N/A productionState prod_state N/A N/A N/A N/A __salt__ N/A zenoss.set_prod_state prod_state name N/A N/A ret N/A changes N/A old new N/A N/A prodState == {0} format N/A device N/A productionState N/A N/A prodState == {0} format prod_state N/A N/A ret N/A comment N/A N/A {0} is already monitored but prodState was incorrect, setting to Production format name N/A ret N/A N/A __opts__ N/A test N/A N/A N/A ret N/A comment N/A N/A The state of "{0}" will be changed. format name N/A N/A ret N/A changes N/A old new monitored == False monitored == True N/A N/A ret N/A result None N/A ret N/A N/A N/A __salt__ N/A zenoss.add_device name device_class collector prod_state N/A N/A N/A ret N/A result True N/A N/A ret N/A changes N/A old new monitored == False monitored == True N/A N/A ret N/A comment N/A N/A {0} has been added to Zenoss format name N/A N/A N/A ret N/A result False N/A N/A ret N/A changes None N/A N/A ret N/A comment N/A N/A Unable to add {0} to Zenoss format name N/A ret N/A