Skip to content

Commit

Permalink
Fix severity patterns. Add command to get_probes()
Browse files Browse the repository at this point in the history
  • Loading branch information
lwindolf committed Jan 7, 2024
1 parent 9650021 commit ac7e493
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions probes/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
},
"who": {
"name" : "Active Users",
"command": "who",
"command": "who -q",
"initial": "True",
"refresh": 30,
"render" : {
"type" : "lines",
"severity": {
"warning" : ".+\n.+"
"warning" : "^# users=[^1]"
}
}
},
Expand Down Expand Up @@ -91,7 +91,7 @@
"render" : {
"type" : "lines",
"severity": {
"warning" : "warn|masked|maintenance",
"warning" : "(warn|masked|maintenance)",
"critical": "failed"
}
}
Expand All @@ -103,7 +103,7 @@
"render" : {
"type" : "lines",
"severity": {
"critical" : "error|fatal|critical",
"critical" : "(error|fatal|critical)",
"warning" : "\\w+"
}
}
Expand Down Expand Up @@ -351,7 +351,7 @@
"type" : "table",
"split": "\\s+",
"severity": {
"warning" : "pending|shutting-down"
"warning" : "(pending|shutting-down)"
}
}
},
Expand Down
1 change: 1 addition & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ function get_probes(socket) {
let p = probes[probe];
output[probe] = {
name: p.name,
command: p.command,
initial: p.initial,
refresh: p.refresh,
local: p.local,
Expand Down

0 comments on commit ac7e493

Please sign in to comment.