added ufw command for snmp and zabbix-agent

This commit is contained in:
2021-01-03 14:06:24 -05:00
parent 657d7efa3d
commit 469885b997
2 changed files with 5 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ if [ ${OS} == 'Debian' ]; then
apt update
# install the agent
apt install -y zabbix-agent
# firewall-cmd
ufw allow zabbix-agent
elif [ ${OS} == 'Ubuntu' ]; then
# Install the repository configuration package. This package contains apt (software package manager) configuration files.
@@ -46,6 +48,8 @@ elif [ ${OS} == 'Ubuntu' ]; then
apt update
# install the agent
apt install -y zabbix-agent
# firewall-cmd
ufw allow zabbix-agent
elif [ ${OS} == 'CentOS' ]; then
# Install the repository configuration package. This package contains yum (software package manager) configuration files.