@@ -1,5 +1,7 @@ | |||
applications: | |||
- mongodb | |||
classes: | |||
- service.mongodb.support | |||
parameters: | |||
_param: | |||
mongodb_server_replica_set: default |
@@ -1,5 +1,7 @@ | |||
applications: | |||
- mongodb | |||
classes: | |||
- service.mongodb.support | |||
parameters: | |||
mongodb: | |||
server: |
@@ -0,0 +1,11 @@ | |||
parameters: | |||
mongodb: | |||
_support: | |||
collectd: | |||
enabled: false | |||
heka: | |||
enabled: false | |||
sensu: | |||
enabled: true | |||
sphinx: | |||
enabled: false |
@@ -0,0 +1,9 @@ | |||
{%- from "linux/map.jinja" import network with context -%} | |||
{%- if grains.ipv4[0] == '127.0.0.1' %}{%- set address = grains.ipv4[1] %}{% else %}{%- set address = grains.ipv4[0] %}{% endif %} | |||
check: | |||
remote_mongodb_mdb_{{ network.fqdn }}: | |||
command: "PATH=$PATH:/etc/sensu/plugins check_mongodb.py -H {{ address }} -A connect -P 27017" | |||
interval: 60 | |||
occurrences: 1 | |||
subscribers: | |||
- local-mongodb-server |