fixed active-sessions.sh
This commit is contained in:
parent
2b49637246
commit
afc5dd6c7a
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ALL_SESSIONS=$(ps auxwww | grep sshd: | grep -v grep -c)
|
ALL_SESSIONS=$(ps auxwww | grep sshd: | grep -v 'grep\|listen' -c)
|
||||||
ROOT_SESSIONS=$(ps auxwww | grep sshd: | grep -v grep | grep 'root\|priv' -c)
|
ROOT_SESSIONS=$(ps auxwww | grep sshd: | grep -v 'grep\|listen' | grep 'root\|priv' -c)
|
||||||
|
|
||||||
echo "# HELP node_active_sessions active sessions by type."
|
echo "# HELP node_active_sessions active sessions by type."
|
||||||
echo "# TYPE node_active_sessions gauge"
|
echo "# TYPE node_active_sessions gauge"
|
||||||
|
|
Reference in a new issue