Skip to content

Commit

Permalink
Better who alert (eliminate duplicates). Add who runbook
Browse files Browse the repository at this point in the history
  • Loading branch information
lwindolf committed Jun 5, 2024
1 parent c9d8eba commit 14d7c40
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"main": "server.js",
"description": "WurmTerm, a friendly wurm walking along your SSH sessions. Backend service.",
"license": "GPL-3.0",
"version": "0.9.8",
"version": "0.9.9",
"repository": {
"type": "git",
"url": "https://github.com/lwindolf/wurmterm-backend.git"
Expand Down
8 changes: 4 additions & 4 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 -q",
"command": "who | cut -d' ' -f 1 | sort -u | xargs",
"initial": "True",
"refresh": 30,
"render" : {
"type" : "lines",
"severity": {
"warning" : "^# users=[^1]"
"warning" : " "
}
}
},
Expand All @@ -59,7 +59,7 @@
"command": "varnishstat -1",
"if" : "netstat",
"matches": "varnishd",
"type" : "service",
"type" : "service",
"render" : {
"type" : "table",
"split": "\\s+"
Expand All @@ -69,7 +69,7 @@
"command": "printf 'stats\nquit\n' | nc localhost 11211 | /bin/egrep 'STAT (version|threads|bytes|curr_connections)'",
"if" : "netstat",
"matches": "memcached",
"type" : "service",
"type" : "service",
"render" : {
"type" : "table",
"split": "\\s+"
Expand Down
8 changes: 8 additions & 0 deletions runbooks/who.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Active Users

This alert is to inform you that there might be other admins on a system.
If you know of each other this is fine.

To view details

who -a

0 comments on commit 14d7c40

Please sign in to comment.