httpcheck.conf 1.28 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 template: httpcheck_web_service_unreachable
 families: *
       on: httpcheck.status
    class: Errors
     type: Web Server
component: HTTP endpoint
     calc: ($httpcheck_no_web_service_connections >= $httpcheck_web_service_timeouts) ? ($httpcheck_no_web_service_connections) : ($httpcheck_web_service_timeouts)
    units: %
    every: 10s
     warn: ($httpcheck_no_web_service_connections >= 30 OR $httpcheck_web_service_timeouts >= 30) AND ($httpcheck_no_web_service_connections < 50 OR $httpcheck_web_service_timeouts < 50)
     crit: $httpcheck_no_web_service_connections >= 50 OR $httpcheck_web_service_timeouts >= 50
    delay: down 5m multiplier 1.5 max 1h
     info: ratio of failed requests either due to timeouts or no connection over the last 5 minutes
       to: webmaster

16
17
18
19
20
21
22
23
24
25
26
27
28
29
 template: httpcheck_web_service_slow
 families: *
       on: httpcheck.responsetime
    class: Latency
     type: Web Server
component: HTTP endpoint
   lookup: median -3m unaligned of time
    units: ms
    every: 10s
     warn: ($this > ($httpcheck_1h_web_service_response_time * 2) )
     crit: ($this > ($httpcheck_1h_web_service_response_time * 3) )
    delay: down 5m multiplier 1.5 max 1h
     info: median HTTP response time over the last 3 minutes, compared to the average over the last hour
       to: webmaster