Add local check for Heka processes
Change-Id: I02ca86d59f71835e3975f32302213c768d7d262f
diff --git a/heka/meta/sensu.yml b/heka/meta/sensu.yml
new file mode 100644
index 0000000..2aeae8b
--- /dev/null
+++ b/heka/meta/sensu.yml
@@ -0,0 +1,25 @@
+check:
+ local_heka_log_collector_proc:
+ command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -a log_collector -u heka -c 1:1"
+ interval: 60
+ occurences: 1
+ subscribers:
+ - local-heka-log_collector
+ local_heka_metric_collector_proc:
+ command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -a metric_collector -u heka -c 1:1"
+ interval: 60
+ occurences: 1
+ subscribers:
+ - local-heka-metric_collector
+ local_heka_remote_collector_proc:
+ command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -a remote_collector -u heka -c 0:1"
+ interval: 60
+ occurences: 1
+ subscribers:
+ - local-heka-remote_collector
+ local_heka_aggregator_proc:
+ command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -a aggregator -u heka -c 0:1"
+ interval: 60
+ occurences: 1
+ subscribers:
+ - local-heka-aggregator
diff --git a/metadata/service/support.yml b/metadata/service/support.yml
index 8af2cd5..14a0a96 100644
--- a/metadata/service/support.yml
+++ b/metadata/service/support.yml
@@ -6,6 +6,6 @@
heka:
enabled: true
sensu:
- enabled: false
+ enabled: true
sphinx:
enabled: true