LoadPlugin python
<Plugin python>
  LogTraces true
  Interactive false
  Import "collectd_rabbitmq.collectd_plugin"
  <Module "collectd_rabbitmq.collectd_plugin">
    Username "nagios-monitoring"
    Password "{{ (env == 'production')|ternary(rabbitmq_monitoring_password_production, rabbitmq_monitoring_password_staging) }}"
    Realm "RabbitMQ Management"
    Host "localhost"
    Port "15672"
{% if env != 'production' %}
    VHostPrefix "stg"
{% endif %}
    <Ignore "queue">
      Regex "celery%40"
      Regex "celeryev.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
      Regex "^federation%3A%20"
      Regex "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
    </Ignore>
  </Module>
</Plugin>
