added ufw command for snmp and zabbix-agent
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user