fixed active-sessions.sh

master
Samuel Philipp 1 year ago
parent 9bd3a90acd
commit a1bb84ab0e
Signed by: samuel-p
GPG Key ID: 2AD495D17760CB4E
  1. 2
      node_exporter/active-sessions.sh

@ -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."

Loading…
Cancel
Save