fixed active-sessions.sh
This commit is contained in:
parent
9bd3a90acd
commit
a1bb84ab0e
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ALL_SESSIONS=$(netstat -tnp | grep sshd -c)
|
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)
|
ROOT_SESSIONS=$(netstat -tnp | grep sshd | grep root -c)
|
||||||
|
|
||||||
echo "# HELP node_active_sessions active sessions by type."
|
echo "# HELP node_active_sessions active sessions by type."
|
||||||
|
|
Reference in a new issue