Skip to content

Commit 48f5ff6

Browse files
committed
Fail2ban service support
1 parent 7bab19c commit 48f5ff6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bin/v-list-sys-services

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,15 @@ if [ ! -z "$service" ] && [ "$service" != 'remote' ]; then
199199
str="$str STATE='$state' CPU='0' MEM='0' RTIME='0'"
200200
fi
201201

202+
# Fail2ban
203+
service=$FIREWALL_EXTENSION
204+
if [ ! -z "$service" ] && [ "$service" != 'remote' ]; then
205+
get_srv_state $service
206+
str="$str\nNAME='$service' SYSTEM='job scheduler' STATE='$state'"
207+
str="$str CPU='$cpu' MEM='$mem' RTIME='$rtime'"
208+
fi
209+
210+
202211
# Defining config
203212
echo -e "$str" > $tmp_file
204213
conf=$tmp_file

0 commit comments

Comments
 (0)