master
conf 44 lines 1.48 KB
Raw
1
2 # This is a fast-reacting no-notification alarm ideal for custom dashboards or badges
3 template: portcheck_service_reachable
4 on: portcheck.status
5 class: Workload
6 type: Other
7 component: TCP endpoint
8 lookup: average -1m unaligned percentage of success
9 calc: ($this < 75) ? (0) : ($this)
10 every: 5s
11 units: up/down
12 summary: Portcheck status for ${label:host}:${label:port}
13 info: TCP host ${label:host} port ${label:port} liveness status
14 to: silent
15
16 template: portcheck_connection_timeouts
17 on: portcheck.status
18 class: Errors
19 type: Other
20 component: TCP endpoint
21 lookup: average -5m unaligned percentage of timeout
22 every: 10s
23 units: %
24 warn: $this >= 10 AND $this < 40
25 crit: $this >= 40
26 delay: down 5m multiplier 1.5 max 1h
27 summary: Portcheck timeouts for ${label:host}:${label:port}
28 info: Percentage of timed-out TCP connections to host ${label:host} port ${label:port} in the last 5 minutes
29 to: sysadmin
30
31 template: portcheck_connection_fails
32 on: portcheck.status
33 class: Errors
34 type: Other
35 component: TCP endpoint
36 lookup: average -5m unaligned percentage of no_connection,failed
37 every: 10s
38 units: %
39 warn: $this >= 10 AND $this < 40
40 crit: $this >= 40
41 delay: down 5m multiplier 1.5 max 1h
42 summary: Portcheck fails for ${label:host}:${label:port}
43 info: Percentage of failed TCP connections to host ${label:host} port ${label:port} in the last 5 minutes
44 to: sysadmin