From 93fcbe2e39741b69e44703784cab8bf8cf7f6aad Mon Sep 17 00:00:00 2001 From: Matt Thompson Date: Fri, 5 Sep 2014 11:16:02 +0100 Subject: [PATCH] Add check for nova-api-metadata This adds a new maas_local check for the nova-api-metadata service. We also change the alarm status message for the nova_api_local_status alarm. --- rpc_deployment/playbooks/monitoring/maas_local.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/rpc_deployment/playbooks/monitoring/maas_local.yml b/rpc_deployment/playbooks/monitoring/maas_local.yml index dece09b80d..345845d299 100644 --- a/rpc_deployment/playbooks/monitoring/maas_local.yml +++ b/rpc_deployment/playbooks/monitoring/maas_local.yml @@ -201,6 +201,15 @@ check_timeout: "{{ maas_check_timeout }}" alarms: - { 'name': 'neutron_metering_agent_status', 'criteria': ':set consecutiveCount={{ maas_alarm_local_consecutive_count }} if (metric["neutron-metering-agent_status"] != 1) { return new AlarmStatus(CRITICAL, "neutron-metering-agent down"); }' } + +- hosts: nova_api_metadata + vars: + check_name: nova_api_metadata_local_check + check_details: file={{ check_name }}.py,args={{ ansible_ssh_host }} + check_period: "{{ maas_check_period }}" + check_timeout: "{{ maas_check_timeout }}" + alarms: + - { 'name': 'nova_api_metadata_local_status', 'criteria': ':set consecutiveCount={{ maas_alarm_local_consecutive_count }} if (metric["nova_api_metadata_local_status"] != 1) { return new AlarmStatus(CRITICAL, "API (metadata) unavailable"); }' } user: root roles: - maas_local @@ -212,7 +221,7 @@ check_period: "{{ maas_check_period }}" check_timeout: "{{ maas_check_timeout }}" alarms: - - { 'name': 'nova_api_local_status', 'criteria': ':set consecutiveCount={{ maas_alarm_local_consecutive_count }} if (metric["nova_api_local_status"] != 1) { return new AlarmStatus(CRITICAL, "API unavailable"); }' } + - { 'name': 'nova_api_local_status', 'criteria': ':set consecutiveCount={{ maas_alarm_local_consecutive_count }} if (metric["nova_api_local_status"] != 1) { return new AlarmStatus(CRITICAL, "API (os-compute) unavailable"); }' } user: root roles: - maas_local