Documentos de Académico
Documentos de Profesional
Documentos de Cultura
----mysql
# mysql -uroot -p
password
mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
mysql> create user zabbix@localhost identified by 'sistemas588';
mysql> grant all privileges on zabbix.* to zabbix@localhost;
mysql> quit;
/etc/apache2/sites-available
nano 000-default. conf
nano default
cd /etc/php/7.4/apache2/
ls
nano php.ini
post_max_size 16M
max_execution_time 300
max_input_time 300
date.timezone America/Bogota
sudo systemctl restart apache2
----------------------------------
opcion2-------------------------------------------
---Add the PostgreSQL APT repository to Ubuntu Linux.
add-apt-repository ppa:timescale/timescaledb-ppa
apt-get update
---Install PostgreSQL
psql --version
sudo -u postgres psql
SELECT version();
SHOW server_version;
groupadd zabbix
useradd -g zabbix -s /bin/bash zabbix
---Create a PostgreSQL database named Zabbix and set the owner as the Zabbix user.
cd /tmp
sudo -u postgres createdb -O zabbix -E Unicode -T template0 zabbix
mkdir /downloads
cd /downloads
wget https://ufpr.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/
4.4.7/zabbix-4.4.7.tar.gz
echo "CREATE EXTENSION IF NOT EXISTS timescaledb CASCADE;" | sudo -u postgres psql
zabbix
---Install the Apache web server and all the required packages.
---Find the location of the php.ini file on your system. Edit the php.ini file.
updatedb
locate php.ini
cd /etc/php/7.4/apache2/
nano php.ini
max_execution_time = 300
memory_limit = 256M
post_max_size = 32M
max_input_time = 300
date.timezone = America/Sao_Paulo
---Opcional
mkdir /downloads/go -p
cd /downloads/go
wget https://dl.google.com/go/go1.13.1.linux-amd64.tar.gz
tar -C /usr/local -zxvf go1.13.1.linux-amd64.tar.gz
---The GOLANG software was installed under the /usr/local folder. In order to work
properly, the GO software expect the system to have a set of environment variables.
Let's create a file to automate the required environment variables configuration.
cd /etc/profile.d/
nano go.sh
#/bin/bash
export GOROOT=/usr/local/go
export GOPATH=$GOROOT/work
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
---Reboot your computer.
apt-get update
apt-get install build-essential libmysqlclient-dev libssl-dev libsnmp-dev libevent-
dev libopenipmi-dev libcurl4-openssl-dev libxml2-dev libssh2-1-dev libpcre3-dev
libldap2-dev libiksemel-dev libcurl4-openssl-dev libgnutls28-dev
--- Access the Zabbix package folder, compile and install the Zabbix server
# wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-
release_6.0-1+ubuntu20.04_all.deb
# dpkg -i zabbix-release_6.0-1+ubuntu20.04_all.deb
# apt update
updatedb
locate zabbix_server.conf
cd /etc/zabbix/
mv zabbix_server.conf zabbix_server.conf.bk
cat zabbix_server.conf.bk | grep -v "^#" | uniq > zabbix_server.conf
nano zabbix_server.conf
LogFile=/tmp/zabbix_server.log
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=sistemas588
Timeout=4
LogSlowQueries=3000
StatsAllowedIP=127.0.0.1
cd /usr/local/etc/
nano zabbix_server.conf
LogFile=/tmp/zabbix_server.log
DBHost=localhost
DBName=zabbix
DBUser=zabbix
DBPassword=sistemas588
Timeout=4
LogSlowQueries=3000
StatsAllowedIP=127.0.0.1
telcozabbix