Browse Source

use server.bind.port intead of default

sensu
vmikes 8 years ago
parent
commit
958cb733de
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mongodb/meta/sensu.yml

+ 1
- 1
mongodb/meta/sensu.yml View File

@@ -2,7 +2,7 @@
{%- if server.bind.address == '0.0.0.0' %}{%- set address = '127.0.0.1' %}{% else %}{%- set address = server.bind.address %}{% endif %}
check:
remote_mongodb_mdb_{{ grains.fqdn }}:
command: "PATH=$PATH:/etc/sensu/plugins check_mongodb.py -H {{ address }} -A connect -P 27017"
command: "PATH=$PATH:/etc/sensu/plugins check_mongodb.py -H {{ address }} -A connect -P {{ server.bind.port }}"
interval: 60
occurrences: 1
subscribers:

Loading…
Cancel
Save