Saltstack Official MongoDB Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sensu.yml 456B

8 vuotta sitten
123456789
  1. {%- from "mongodb/map.jinja" import server with context -%}
  2. {%- if server.bind.address == '0.0.0.0' %}{%- set address = '127.0.0.1' %}{% else %}{%- set address = server.bind.address %}{% endif %}
  3. check:
  4. local_mongodb_mdb_{{ grains.fqdn }}:
  5. command: "PATH=$PATH:/etc/sensu/plugins check_mongodb.py -H {{ address }} -A connect -P {{ server.bind.port }}"
  6. interval: 60
  7. occurrences: 1
  8. subscribers:
  9. - {{ grains['fqdn']|replace('.', '-') }}