summaryrefslogtreecommitdiffstats
path: root/health/health.d/boinc.conf
blob: 8604abee968df9cca920e09b6d95890bd84ef93a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Alarms for various BOINC issues.

# Warn on any compute errors encountered.
 template: boinc_compute_errors
       on: boinc.states
    class: Computing
component: BOINC
     type: Errors
       os: *
    hosts: *
 families: *
   lookup: average -10m unaligned of comperror
    units: tasks
    every: 1m
     warn: $this > 0
     crit: $this > 1
    delay: up 1m down 5m multiplier 1.5 max 1h
     info: average number of compute errors over the last 10 minutes
       to: sysadmin

# Warn on lots of upload errors
 template: boinc_upload_errors
       on: boinc.states
    class: Computing
component: BOINC
     type: Errors
       os: *
    hosts: *
 families: *
   lookup: average -10m unaligned of upload_failed
    units: tasks
    every: 1m
     warn: $this > 0
     crit: $this > 1
    delay: up 1m down 5m multiplier 1.5 max 1h
     info: average number of failed uploads over the last 10 minutes
       to: sysadmin

# Warn on the task queue being empty
 template: boinc_total_tasks
       on: boinc.tasks
    class: Computing
component: BOINC
     type: Utilization
       os: *
    hosts: *
 families: *
   lookup: average -10m unaligned of total
    units: tasks
    every: 1m
     warn: $this < 1
     crit: $this < 0.1
    delay: up 5m down 10m multiplier 1.5 max 1h
     info: average number of total tasks over the last 10 minutes
       to: sysadmin

# Warn on no active tasks with a non-empty queue
 template: boinc_active_tasks
       on: boinc.tasks
    class: Computing
component: BOINC
     type: Utilization
       os: *
    hosts: *
 families: *
   lookup: average -10m unaligned of active
     calc: ($boinc_total_tasks >= 1) ? ($this) : (inf)
    units: tasks
    every: 1m
     warn: $this < 1
     crit: $this < 0.1
    delay: up 5m down 10m multiplier 1.5 max 1h
     info: average number of active tasks over the last 10 minutes
       to: sysadmin