Browse Source

Fail2ban service support

Serghey Rodin 11 năm trước cách đây
mục cha
commit
48f5ff64d5
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 9 0
      bin/v-list-sys-services

+ 9 - 0
bin/v-list-sys-services

@@ -199,6 +199,15 @@ if [ ! -z "$service" ] && [ "$service" != 'remote' ]; then
     str="$str STATE='$state' CPU='0' MEM='0' RTIME='0'"
 fi
 
+# Fail2ban
+service=$FIREWALL_EXTENSION
+if [ ! -z "$service" ] && [ "$service" != 'remote' ]; then
+    get_srv_state $service
+    str="$str\nNAME='$service' SYSTEM='job scheduler' STATE='$state'"
+    str="$str CPU='$cpu' MEM='$mem' RTIME='$rtime'"
+fi
+
+
 # Defining config
 echo -e "$str" > $tmp_file
 conf=$tmp_file