@cryptotaxi247 / netdata-1 / commits / 1e2cafcd9

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

Ilya Mashchenko committed Apr 11, 2019 at 13:20 UTC 1e2cafcd9879601a486c4b393bb8b5a29bdfcbdb
2 files changed +15
health/Makefile.am
+1
@@ -61,6 +61,7 @@ dist_healthconfig_DATA = \
61 health.d/netfilter.conf \
62 health.d/nginx.conf \
63 health.d/nginx_plus.conf \
64 + health.d/phpfpm.conf \
65 health.d/portcheck.conf \
66 health.d/postgres.conf \
67 health.d/qos.conf \
health/health.d/phpfpm.conf new
+14
@@ -0,0 +1,14 @@
1 +
2 +# make sure phpfpm is running
3 +
4 +template: phpfpm_last_collected_secs
5 + on: phpfpm.requests
6 + calc: $now - $last_collected_t
7 + units: seconds ago
8 + every: 10s
9 + warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
10 + crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every))
11 + delay: down 5m multiplier 1.5 max 1h
12 + info: number of seconds since the last successful data collection
13 + to: webmaster
14 +