-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.linux.json
24 lines (24 loc) · 1.09 KB
/
config.linux.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
"slack": "https://hooks.slack.com/services/:token1/:token2",
"token": "secret-token123",
"alerts": {
"RAM Used": [
{"title": "Hostname", "command": "hostname"},
{"title": "Memory Summary", "command": "free -h"},
{"title": "ps - Ordered by MEM", "command": "ps ax --sort=-%mem -o pid,ruser=USER,%cpu=%CPU,%mem=%MEM,command | head -n 16"}
],
"CPU Used": [
{"title": "Hostname", "command": "hostname"},
{"title": "ps - Ordered by CPU", "command": "ps ax --sort=-%cpu -o pid,ruser=USER,%cpu=%CPU,%mem=%MEM,command | head -n 16"}
],
"Disk Space": [
{"title": "Hostname", "command": "hostname"},
{"title": "Disk Space Summary", "command": "df -h"},
{"title": "/srv Disk Space", "command": "cd /srv && du -h --max-depth=1 2> /dev/null | sort -hr | tail -n +2 | head"},
{"title": "/var Disk Space", "command": "cd /var && du -h --max-depth=1 2> /dev/null | sort -hr | tail -n +2 | head"}
]
},
"hosts": {
"somehostname": "100.200.300.400"
}
}