%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/states/uptime.pyc

�
���^c@@s8dZddlmZmZmZd�Zd�ZdS(u�
Monitor Web Server with Uptime
==============================

`Uptime <https://github.com/fzaninotto/uptime>`_ is an open source
remote monitoring application using Node.js, MongoDB, and Twitter
Bootstrap.

.. warning::

    This state module is beta. It might be changed later to include
    more or less automation.

.. note::

    This state module requires a pillar to specify the location of
    your uptime install

    .. code-block:: yaml

        uptime:
          application_url: "http://uptime-url.example.org"

Example:

.. code-block:: yaml

    url:
      uptime.monitored
    url/sitemap.xml:
      uptime.monitored:
         - polling: 600 # every hour

i(tabsolute_importtprint_functiontunicode_literalscC@s
dtkS(u3
    Only load if the uptime module is present
    uuptime.checks_list(t__salt__(((s6/usr/lib/python2.7/site-packages/salt/states/uptime.pyt__virtual__(scK@s
i|d6id6dd6dd6}tdd|�r`t|d<dj|�|d<i|d<|Std	s�td
||�}|r�t|d<d}|j|�|d<i|d6|d<q	t|d<d
j|�|d<i|d<n%d}|jddd|j|��|S(uq
    Makes sure an URL is monitored by uptime. Checks if URL is already
    monitored, and if not, adds it.

    unameuchangesuresultuucommentuuptime.check_existstnameuURL {0} is already monitoredutestu
uptime.createu(Successfully added the URL {0} to uptimeu
url_monitoreduFailed to add {0} to uptimeu&URL {0} is going to be added to uptimetresulttcommentN(tNoneRtTruetformatt__opts__tFalsetupdate(Rtparamstrett
url_monitoredtmsg((s6/usr/lib/python2.7/site-packages/salt/states/uptime.pyt	monitored/s("





N(t__doc__t
__future__RRRRR(((s6/usr/lib/python2.7/site-packages/salt/states/uptime.pyt<module>#s	

Zerion Mini Shell 1.0