- juggler_check:
  args:
    __force__: True
    host: '{{ host }}'
    responsible: '{{ responsible }}'
    namespace: '{{ namespace }}'
    service: UNREACHABLE
    active: icmpping
    active_kwargs:
    flap:
      stable: 120
      critical: 180
    aggregator: timed_more_than_limit_is_problem
    aggregator_kwargs:
      ignore_nodata: 1
      limits:
        - time_start: 12
          time_end: 22
          day_start: 1
          day_end: 5
          crit: 35%
          warn: 20%
        - time_start: 12
          time_end: 22
          day_start: 6
          day_end: 7
          crit: 35%
          warn: 20%
        - time_start: 23
          time_end: 11
          day_start: 1
          day_end: 7
          crit: 35%
          warn: 20%
    tags:
      - 'qloud-ext.{{ prj }}'
      - 'qloud-ext.{{ prj }}.{{ app }}'
      - 'qloud-ext.{{ prj }}.{{ app }}.{{ env }}'
      - 'qloud-ext.{{ prj }}.{{ app }}.{{ env }}.{{ component }}'
    children: '{{children}}'
- juggler_check:
  args:
    __force__: True
    host: '{{ host }}'
    responsible: '{{ responsible }}'
    namespace: '{{ namespace }}'
    service: META
    aggregator: timed_more_than_limit_is_problem
    aggregator_kwargs:
      ignore_nodata: 0
      unreach_service:
        - check: ":UNREACHABLE"
      unreach_mode: force_ok
      limits:
        - time_start: 12
          time_end: 22
          day_start: 1
          day_end: 5
          crit: 5%
          warn: 0
        - time_start: 12
          time_end: 22
          day_start: 6
          day_end: 7
          crit: 10%
          warn: 0
        - time_start: 23
          time_end: 11
          day_start: 1
          day_end: 7
          crit: 10%
          warn: 0
    tags:
      - 'qloud-ext.{{ prj }}'
      - 'qloud-ext.{{ prj }}.{{ app }}'
      - 'qloud-ext.{{ prj }}.{{ app }}.{{ env }}'
      - 'qloud-ext.{{ prj }}.{{ app }}.{{ env }}.{{ component }}'
    children: '{{children}}'
- juggler_check:
  args:
    __force__: True
    host: '{{ host }}'
    responsible: '{{ responsible }}'
    namespace: '{{ namespace }}'
    service: cron
    aggregator: timed_more_than_limit_is_problem
    aggregator_kwargs:
      ignore_nodata: 0
      unreach_mode: force_ok
      unreach_service:
        - check: ":META"
        - check: ":UNREACHABLE"
      limits:
        - time_start: 12
          time_end: 22
          day_start: 1
          day_end: 5
          crit: 0
          warn: 0
        - time_start: 12
          time_end: 22
          day_start: 6
          day_end: 7
          crit: 10%
          warn: 0
        - time_start: 23
          time_end: 11
          day_start: 1
          day_end: 7
          crit: 10%
          warn: 0
    flap: '{{ flap_300_0 }}'
    tags:
      - 'qloud-ext.{{ prj }}'
      - 'qloud-ext.{{ prj }}.{{ app }}'
      - 'qloud-ext.{{ prj }}.{{ app }}.{{ env }}'
      - 'qloud-ext.{{ prj }}.{{ app }}.{{ env }}.{{ component }}'
    children: '{{children}}'
- juggler_check:
  args:
    __force__: True
    host: '{{ host }}'
    responsible: '{{ responsible }}'
    namespace: '{{ namespace }}'
    service: unispace
    aggregator: timed_more_than_limit_is_problem
    aggregator_kwargs:
      ignore_nodata: 0
      unreach_mode: force_ok
      unreach_service:
        - check: ":UNREACHABLE"
        - check: ":META"
      limits:
        - time_start: 0
          time_end: 23
          day_start: 1
          day_end: 7
          crit: 0
          warn: 0
    tags:
      - 'qloud-ext.{{ prj }}'
      - 'qloud-ext.{{ prj }}.{{ app }}'
      - 'qloud-ext.{{ prj }}.{{ app }}.{{ env }}'
      - 'qloud-ext.{{ prj }}.{{ app }}.{{ env }}.{{ component }}'
    children: '{{children}}'

- juggler_check:
  args:
    __force__: True
    host: '{{ host }}'
    responsible: '{{ responsible }}'
    namespace: '{{ namespace }}'
    service: cpu_usage
    aggregator: timed_more_than_limit_is_problem
    aggregator_kwargs:
      ignore_nodata: 0
      unreach_mode: force_ok
      unreach_service:
        - check: ":UNREACHABLE"
      limits:
        - time_start: 0
          time_end: 23
          day_start: 1
          day_end: 7
          crit: 30%
          warn: 20%
    tags:
      - 'qloud-ext.{{ prj }}'
      - 'qloud-ext.{{ prj }}.{{ app }}'
      - 'qloud-ext.{{ prj }}.{{ app }}.{{ env }}'
      - 'qloud-ext.{{ prj }}.{{ app }}.{{ env }}.{{ component }}'
    children: '{{children}}'

- juggler_check:
  args:
    __force__: True
    host: '{{ host }}'
    responsible: '{{ responsible }}'
    namespace: '{{ namespace }}'
    service: network_usage
    aggregator: timed_more_than_limit_is_problem
    aggregator_kwargs:
      ignore_nodata: 0
      unreach_mode: force_ok
      unreach_service:
        - check: ":UNREACHABLE"
      limits:
        - time_start: 0
          time_end: 23
          day_start: 1
          day_end: 7
          crit: 25%
          warn: 20%
    tags:
      - 'qloud-ext.{{ prj }}'
      - 'qloud-ext.{{ prj }}.{{ app }}'
      - 'qloud-ext.{{ prj }}.{{ app }}.{{ env }}'
      - 'qloud-ext.{{ prj }}.{{ app }}.{{ env }}.{{ component }}'
    children: '{{children}}'

- juggler_check:
  args:
    __force__: True
    host: '{{ host }}'
    responsible: '{{ responsible }}'
    namespace: '{{ namespace }}'
    service: ssh
    active: ssh
    aggregator: timed_more_than_limit_is_problem
    aggregator_kwargs: '{{ timed_more_than_limit_is_problem_kwargs_35_26 }}'
    tags:
      - 'qloud-ext.{{ prj }}'
      - 'qloud-ext.{{ prj }}.{{ app }}'
      - 'qloud-ext.{{ prj }}.{{ app }}.{{ env }}'
      - 'qloud-ext.{{ prj }}.{{ app }}.{{ env }}.{{ component }}'
    children: '{{children}}'
