%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/states/ |
Current File : //lib/python2.7/site-packages/salt/states/serverdensity_device.pyo |
� ���^c @@ s{ d Z d d l m Z m Z m Z d d l Z d d l Z d d l m Z e j e � Z d � Z d e e d d � Z d S( u Monitor Server with Server Density ================================== .. versionadded:: 2014.7.0 `Server Density <https://www.serverdensity.com/>`_ Is a hosted monitoring service. .. warning:: This state module is beta. It might be changed later to include more or less automation. .. note:: This state module requires a pillar for authentication with Server Density To install a v1 agent: .. code-block:: yaml serverdensity: api_token: "b97da80a41c4f61bff05975ee51eb1aa" account_url: "https://your-account.serverdensity.io" To install a v2 agent: .. code-block:: yaml serverdensity: api_token: "b97da80a41c4f61bff05975ee51eb1aa" account_name: "your-account" .. note:: Although Server Density allows duplicate device names in its database, this module will raise an exception if you try monitoring devices with the same name. Example: .. code-block:: yaml 'server_name': serverdensity_device.monitored i ( t absolute_importt unicode_literalst print_functionN( t sixc C@ sX t d � } t d � } i } y | d | d <| d | d <| d d k rf i d d 6d d 6} n"