??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó
àUdac @` så d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d d
l Z d
Z y d d
l Z e
Z Wn# e k
r™ e j ƒ Z e Z n Xd d l m Z m Z d „ Z d
„ Z d „ Z e d k rá e ƒ n d
S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust communityt supported_bys¨
module: pingdom
short_description: Pause/unpause Pingdom alerts
description:
- This module will let you pause/unpause Pingdom alerts
version_added: "1.2"
author:
- "Dylan Silva (@thaumos)"
- "Justin Johns (!UNKNOWN)"
requirements:
- "This pingdom python library: https://github.com/mbabineau/pingdom-python"
options:
state:
description:
- Define whether or not the check should be running or paused.
required: true
choices: [ "running", "paused" ]
checkid:
description:
- Pingdom ID of the check.
required: true
uid:
description:
- Pingdom user ID.
required: true
passwd:
description:
- Pingdom user password.
required: true
key:
description:
- Pingdom API key.
required: true
notes:
- This module does not yet have support to add/remove checks.
sO
# Pause the check with the ID of 12345.
- pingdom:
uid: example@example.com
passwd: password123
key: apipassword123
checkid: 12345
state: paused
# Unpause the check with the ID of 12345.
- pingdom:
uid: example@example.com
passwd: password123
key: apipassword123
checkid: 12345
state: running
N( t
AnsibleModulet missing_required_libc C` sV t j | | | ƒ } | j | d t ƒ| j | ƒ } | j } | j } t | | f S( Nt paused( t pingdomt PingdomConnectiont modify_checkt Truet get_checkt nameR t False( t checkidt uidt passwdt keyt ct checkR t result( ( sF /usr/lib/python2.7/site-packages/ansible/modules/monitoring/pingdom.pyt pauseT s c C` sV t j | | | ƒ } | j | d t ƒ| j | ƒ } | j } | j } t | | f S( NR
( R R R
R R R R ( R R R R R R R R ( ( sF /usr/lib/python2.7/site-packages/ansible/modules/monitoring/pingdom.pyt unpause` s c C` sž t d t d t d t d d d d d g ƒ d t d t ƒ d
t d t ƒ d t d t d t ƒ d
t d t d t ƒ ƒ ƒ } t s | j d t d ƒ d t ƒ n | j d } | j d } | j d
} | j d } | j d
} | d k sù | d k rt | | | | ƒ \ } } } n | d k s2| d k rSt | | | | ƒ \ } } } n | d k r~| j d | d | d | ƒ n | j
d | d | d | ƒ d S( Nt
argument_spect statet requiredt choicest runningR
t startedt stoppedR R R t no_logR t msgR t exceptioni R R ( R t dictR t HAS_PINGDOMt fail_jsonR t PINGDOM_IMP_ERRt paramsR R t exit_json( t moduleR R R R R t rcR R ( ( sF /usr/lib/python2.7/site-packages/ansible/modules/monitoring/pingdom.pyt mainl s* !
!!t __main__( t
__future__R R R t typet
__metaclass__t ANSIBLE_METADATAt
DOCUMENTATIONt EXAMPLESt tracebackt NoneR( R R R&