highgroove / scout-plugins

Plugins for the Scout Server Monitoring and Reporting Tool

This URL has Read+Write access

scout-plugins / disk_usage / disk_usage.yml
100644 40 lines (38 sloc) 0.823 kb
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
options:
  command:
    name: df Command
    notes: The command used to display free disk space
    default: "df -h"
  filesystem:
    name: Filesystem
    notes: The filesystem to check usage, if none specified, uses the first listed
    default:
      
metadata:
  used:
    label: Disk Space Used
    units: GB
    precision: 0
  size:
    label: Disk Size
    units: GB
    precision: 0
  capacity:
    label: Disk Capacity
    units: %
    precision: 0
  avail:
    label: Disk Space Available
    units: GB
    precision: 0
    larger_is_better: true
 
triggers:
  - type: peak
    dname: capacity
    max_value: 85
  # available disk space decreases by 10% compared to last week
  - type: trend
    dname: avail
    direction: DOWN
    percentage_change: 10
    duration: 60
    window_reference: LAST_WEEK