First attemp - MultipleMikrotik

This commit is contained in:
root 2023-03-28 13:41:35 +02:00
parent fe44673d6e
commit d0a10235e5
2 changed files with 2 additions and 3 deletions

View File

@ -144,8 +144,7 @@ echo "--- "
echo "--- Port: $port "
echo "--- Local Interface: tzsp$num"
echo "--- SERVICEs:"
echo "--- --- ----: Mikrocata:"
echo "--- --- --- --- --- ---: Edit '/usr/local/bin/mikrocataTZSP$num.py' with your info and then reload service --> 'systemctl restart mikrocatamikrocataTZSP$num.service'"
echo "--- --- ----: Mikrocata: Edit '/usr/local/bin/mikrocataTZSP$num.py' with your info and then reload service --> 'systemctl restart mikrocataTZSP$num.service'"
echo "--- --- --- : Interface: TZSPreplay$port@tzsp$num.service --> 'systemctl status TZSPreplay$port@tzsp$num.service'"
echo "--- "
num=$(( $num + 1 ))

View File

@ -136,7 +136,7 @@ def add_to_tik(alerts):
# Remove duplicate src_ips.
for event in {item['src_ip']: item for item in alerts}.values():
if str(event["alert"]["severity"]) not in SEVERITY:
if str(event["alert"]["severity"]) not in SEVERITY:
print("pass severity: " + str(event["alert"]["severity"]))
break