@cryptotaxi247 / netdata-1 / commits / 3d9306f62

Add alarms to portcheck plugin

Chris committed Feb 25, 2018 at 18:31 UTC 3d9306f62be0c0e05529f97babad3ab788e29b9e
1 file changed +60
conf.d/health.d/portcheck.conf new
+60
@@ -0,0 +1,60 @@
1 +template: portcheck_last_collected_secs
2 +families: *
3 + on: portcheck.error
4 + calc: $now - $last_collected_t
5 + every: 10s
6 + units: seconds ago
7 + warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
8 + crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every))
9 + delay: down 5m multiplier 1.5 max 1h
10 + info: number of seconds since the last successful data collection
11 + to: sysadmin
12 +
13 +# This is a fast-reacting no-notification alarm ideal for custom dashboards or badges
14 +template: service_reachable
15 +families: *
16 + on: portcheck.error
17 + lookup: average -1m unaligned percentage of success
18 + calc: ($this < 75) ? (0) : ($this)
19 + every: 5s
20 + units: up/down
21 + info: at least 75% successful connections during last 60 seconds, ideal for badges
22 + to: silent
23 +
24 +template: connection_timeouts
25 +families: *
26 + on: portcheck.error
27 + lookup: average -5m unaligned percentage of timeout
28 + every: 10s
29 + units: %
30 + warn: $this >= 10 AND $this < 40
31 + crit: $this >= 40
32 + delay: down 5m multiplier 1.5 max 1h
33 + info: average of timeouts during the last 5 minutes
34 + to: sysadmin
35 +
36 +template: connection_fails
37 +families: *
38 + on: portcheck.error
39 + lookup: average -5m unaligned percentage of failed
40 + every: 10s
41 + units: %
42 + warn: $this >= 10 AND $this < 40
43 + crit: $this >= 40
44 + delay: down 5m multiplier 1.5 max 1h
45 + info: average of failed connections during the last 5 minutes
46 + to: sysadmin
47 +
48 +# need help...
49 +
50 +#template: connection_latency
51 +#families: *
52 +# on: portcheck.latency
53 +# lookup: average -2m unaligned of connect
54 +# every: 5s
55 +# units: %
56 +# warn: $this >= 5 AND $this < 40
57 +# crit: $this >= 40
58 +# delay: down 5m multiplier 1.5 max 1h
59 +# info:
60 +# to: sysadmin