Skip to content
Snippets Groups Projects
Commit efec9792 authored by root's avatar root
Browse files

Make shell file resilient for Ubuntu18

parent 238553ed
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ STATUS_OK="0" ...@@ -15,7 +15,7 @@ STATUS_OK="0"
STATUS_WARNING="1" STATUS_WARNING="1"
STATUS_CRITICAL="2" STATUS_CRITICAL="2"
STATUS_UNKNOWN="3" STATUS_UNKNOWN="3"
ps_state=$(ps aux |grep "fail2ban.sock" |grep -v grep| wc -l) ps_state=$(ps aux |grep "fail2ban-server" |grep -v grep| wc -l)
PROGPATH=`dirname $0` PROGPATH=`dirname $0`
fail2ban_client=$(which fail2ban-client) fail2ban_client=$(which fail2ban-client)
jail_count=$($fail2ban_client status|grep "Number" |cut -f 2) jail_count=$($fail2ban_client status|grep "Number" |cut -f 2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment