Update index.py

This commit is contained in:
Mr Chen
2024-07-18 12:18:21 +08:00
parent 520f46441e
commit cf2d53fe0d
+2
View File
@@ -215,6 +215,8 @@ def openPort():
try:
import firewall_api
firewall_api.firewall_api().addAcceptPortArgs('18888', 'zabbix-web', 'port')
firewall_api.firewall_api().addAcceptPortArgs('10051', 'zabbix-server', 'port')
firewall_api.firewall_api().addAcceptPortArgs('10050', 'zabbix-agent', 'port')
return port
except Exception as e:
return "Release failed {}".format(e)