From 799b757b96707500fb7394cc246d4f11a01eb2cf Mon Sep 17 00:00:00 2001 From: Ilya Mashchenko Date: Thu, 1 Jul 2021 15:26:27 +0300 Subject: health: remove pythond modules specific last_collected alarms (#11307) --- health/Makefile.am | 2 -- health/health.d/elasticsearch.conf | 15 --------------- health/health.d/haproxy.conf | 13 ------------- health/health.d/varnish.conf | 12 ------------ 4 files changed, 42 deletions(-) delete mode 100644 health/health.d/elasticsearch.conf delete mode 100644 health/health.d/varnish.conf diff --git a/health/Makefile.am b/health/Makefile.am index f5ec7dcaec..2a180c6ff2 100644 --- a/health/Makefile.am +++ b/health/Makefile.am @@ -41,7 +41,6 @@ dist_healthconfig_DATA = \ health.d/dnsmasq_dhcp.conf \ health.d/dns_query.conf \ health.d/dockerd.conf \ - health.d/elasticsearch.conf \ health.d/entropy.conf \ health.d/exporting.conf \ health.d/fping.conf \ @@ -89,7 +88,6 @@ dist_healthconfig_DATA = \ health.d/tcp_resets.conf \ health.d/udp_errors.conf \ health.d/unbound.conf \ - health.d/varnish.conf \ health.d/vcsa.conf \ health.d/vernemq.conf \ health.d/vsphere.conf \ diff --git a/health/health.d/elasticsearch.conf b/health/health.d/elasticsearch.conf deleted file mode 100644 index dfec133b82..0000000000 --- a/health/health.d/elasticsearch.conf +++ /dev/null @@ -1,15 +0,0 @@ - -# make sure elasticsearch is running - - template: elasticsearch_last_collected - on: elasticsearch.cluster_health_status - class: Latency - type: Search engine -component: Elasticsearch - calc: $now - $last_collected_t - units: seconds ago - every: 10s - warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every)) - crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every)) - info: number of seconds since the last successful data collection - to: sysadmin diff --git a/health/health.d/haproxy.conf b/health/health.d/haproxy.conf index c1375351e5..a0ab52bca8 100644 --- a/health/health.d/haproxy.conf +++ b/health/health.d/haproxy.conf @@ -21,16 +21,3 @@ component: HAProxy crit: $this > 0 info: average number of failed haproxy backends over the last 10 seconds to: sysadmin - - template: haproxy_last_collected - on: haproxy_hb.down - class: Latency - type: Web Proxy -component: HAProxy - calc: $now - $last_collected_t - units: seconds ago - every: 10s - warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every)) - crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every)) - info: number of seconds since the last successful data collection - to: sysadmin diff --git a/health/health.d/varnish.conf b/health/health.d/varnish.conf deleted file mode 100644 index 4d12a6666b..0000000000 --- a/health/health.d/varnish.conf +++ /dev/null @@ -1,12 +0,0 @@ - alarm: varnish_last_collected - on: varnish.uptime - class: Latency - type: Web Proxy -component: Varnish - calc: $now - $last_collected_t - units: seconds ago - every: 10s - warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every)) - crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every)) - info: number of seconds since the last successful data collection - to: sysadmin -- cgit v1.2.3