fixed active-sessions.sh

This commit is contained in:
Samuel Philipp 2021-05-21 19:07:42 +02:00
parent 9bd3a90acd
commit a1bb84ab0e
Signed by: samuel-p
GPG Key ID: 2AD495D17760CB4E
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
ALL_SESSIONS=$(netstat -tnp | grep sshd -c)
SU_SESSIONS=$(ps aux | grep ' [s]u' -c)
SU_SESSIONS=$(ps aux | grep ' [s][u] ' -c)
ROOT_SESSIONS=$(netstat -tnp | grep sshd | grep root -c)
echo "# HELP node_active_sessions active sessions by type."