summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorIlya Mashchenko <ilyamaschenko@gmail.com>2019-04-11 13:20:06 +0300
committerGitHub <noreply@github.com>2019-04-11 13:20:06 +0300
commit1e2cafcd9879601a486c4b393bb8b5a29bdfcbdb (patch)
tree24261337917ad56b6dbfd082db173549b576b1b5 /health
parent0c9f1488b241c53583d2505015314ac09ebc0f25 (diff)
phpfpm collector: add last_collected_secs health check (#5836)
##### Summary Fixes: #5820 ssia ##### Component Name [/collectors/python.d.plugin/phpfpm ](https://github.com/netdata/netdata/tree/master/collectors/python.d.plugin/phpfpm) [/health/health.d](https://github.com/netdata/netdata/tree/master/health/health.d) ##### Additional Information
Diffstat (limited to 'health')
-rw-r--r--health/Makefile.am1
-rw-r--r--health/health.d/phpfpm.conf14
2 files changed, 15 insertions, 0 deletions
diff --git a/health/Makefile.am b/health/Makefile.am
index 9b69b485bd..0180111880 100644
--- a/health/Makefile.am
+++ b/health/Makefile.am
@@ -61,6 +61,7 @@ dist_healthconfig_DATA = \
health.d/netfilter.conf \
health.d/nginx.conf \
health.d/nginx_plus.conf \
+ health.d/phpfpm.conf \
health.d/portcheck.conf \
health.d/postgres.conf \
health.d/qos.conf \
diff --git a/health/health.d/phpfpm.conf b/health/health.d/phpfpm.conf
new file mode 100644
index 0000000000..ec7ae74de3
--- /dev/null
+++ b/health/health.d/phpfpm.conf
@@ -0,0 +1,14 @@
+
+# make sure phpfpm is running
+
+template: phpfpm_last_collected_secs
+ on: phpfpm.requests
+ 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))
+ delay: down 5m multiplier 1.5 max 1h
+ info: number of seconds since the last successful data collection
+ to: webmaster
+