Enable alarms on libivrt

Change-Id: I0ae08eac1c35e96f8272ccfe244238ea0466a13a
diff --git a/nova/meta/heka.yml b/nova/meta/heka.yml
index 9230945..c6cd75c 100644
--- a/nova/meta/heka.yml
+++ b/nova/meta/heka.yml
@@ -63,6 +63,18 @@
         periods: 0
         function: last
     {%- endif %}
+    {%- if pillar.nova.compute is defined %}
+    libvirt_check:
+      description: 'Libvirt cannot be checked'
+      severity: down
+      rules:
+      - metric: libvirt_check
+        relational_operator: '=='
+        threshold: 0
+        window: 60
+        periods: 0
+        function: last
+    {%- endif %}
   alarm:
     {%- if pillar.nova.compute is defined %}
     nova_logs_compute:
@@ -71,6 +83,12 @@
       - nova_logs_error
       dimension:
         service: nova-logs-compute
+    libvirt_check:
+      alerting: enabled
+      triggers:
+      - libvirt_check
+      dimension:
+        service: libvirt-check
     {%- endif %}
     {%- if pillar.nova.controller is defined %}
     nova_logs:
@@ -277,6 +295,17 @@
       dimension:
         service: nova-data
         nagios_host: 01-service-clusters
+    nova_libvirt:
+      policy: majority_of_node_members
+      group_by: hostname
+      alerting: enabled
+      match:
+        service: libvirt-check
+      members:
+      - libvirt_check
+      dimension:
+        service: nova-data
+        nagios_host: 01-service-clusters
     nova_logs:
       policy: status_of_members
       group_by: hostname
@@ -373,6 +402,7 @@
         service: nova-data
       members:
       - nova_logs_compute
+      - nova_libvirt
       - nova_total_free_vcpu
       - nova_total_free_memory
       - nova_compute