add region ability for checks
Change-Id: I54bd34cae75d90d757819619abca4d18ddf2031a
This commit is contained in:
parent
1a0a64ac2e
commit
80e1002ba8
|
@ -1,3 +1,5 @@
|
|||
{%- from "cinder/map.jinja" import controller with context %}
|
||||
{%- set region = controller.identity.region %}
|
||||
check:
|
||||
local_cinder_api_proc:
|
||||
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -C cinder-api -u cinder -c 1:1024"
|
||||
|
@ -24,7 +26,7 @@ check:
|
|||
subscribers:
|
||||
- remote-network
|
||||
remote_openstack_cinder_volume:
|
||||
command: "PATH=$PATH:/usr/local/bin oschecks-check_cinder_volume --auth_url='http://:::openstack.host:::::::openstack.port:::/v2.0' --username :::openstack.user::: --password :::openstack.password::: --tenant :::openstack.tenant:::"
|
||||
command: "PATH=$PATH:/usr/local/bin oschecks-check_cinder_volume --auth_url='http://:::openstack.host:::::::openstack.port:::/v2.0' --username :::openstack.user::: --password :::openstack.password::: --tenant :::openstack.tenant::: --region_name {{ region }}"
|
||||
interval: 300
|
||||
occurrences: 1
|
||||
subscribers:
|
||||
|
|
Loading…
Reference in New Issue