fiz a instalaçao do zabbix e do grafana,apos efetuar o dowload do plugin do zabbizx em meu servidor nao foi possivel iniciar na area manutençao>plugins>zabbix o serviço grafana foi reiniciado com sucesso
segue em anexo o sriprt completo do que foi feito desde a instalaçao do zabbix ate o grafana
proxmox server (baixar)
rodar no rufus
baixar ubuntu server
rodar no rufus
nano /etc/zabbix/zabbix_server.conf
(para editar apague o hashtag)
(para salvar selecione cntrl+x e depois Y,para cancelar cntrl+x e depois N)
(apos salvar de mais um enter apra sair da ediçao)
fiz a instalaçao do zabbix e do grafana,apos efetuar o dowload do plugin do zabbizx em meu servidor nao foi possivel iniciar na area manutençao>plugins>zabbix o serviço grafana foi reiniciado com sucesso segue em anexo o sriprt completo do que foi feito desde a instalaçao do zabbix ate o grafana
proxmox server (baixar) rodar no rufus baixar ubuntu server rodar no rufus
sudo -s wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_7.0-2+ubuntu22.04_all.deb dpkg -i zabbix-release_7.0-2+ubuntu22.04_all.deb apt update apt install zabbix-server-pgsql zabbix-frontend-php php8.1-pgsql zabbix-apache-conf zabbix-sql-scripts zabbix-agent apt-get upgrade -y
sudo apt update sudo apt install postgresql sudo systemctl start postgresql.service sudo systemctl status postgresql.service
sudo -u postgres createuser --pwprompt zabbix sudo -u postgres createdb -O zabbix zabbix
zcat /usr/share/zabbix-sql-scripts/postgresql/server.sql.gz | sudo -u zabbix psql zabbix
nano /etc/zabbix/zabbix_server.conf (para editar apague o hashtag) (para salvar selecione cntrl+x e depois Y,para cancelar cntrl+x e depois N) (apos salvar de mais um enter apra sair da ediçao)
systemctl restart zabbix-server zabbix-agent apache2 systemctl enable zabbix-server zabbix-agent apache2
ligando graphana no zabbix instalar no mesmo servidor do zabbix usando os comandos:
bash sudo apt-get install -y apt-transport-https software-properties-common wget sudo mkdir -p /etc/apt/keyrings/ wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg > /dev/null echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list sudo apt-get update sudo apt-get install grafana sudo apt-get install grafana-enterprise
para iniciar o servidor
sudo systemctl daemon-reload sudo systemctl start grafana-server sudo systemctl status grafana-server
sudo systemctl enable grafana-server.service
sudo systemctl edit grafana-server.service (abre a ediçao do sistema para alterar CAP_NET_BIND_SERVICE
[Service]
Give the CAP_NET_BIND_SERVICE capability
CapabilityBoundingSet=CAP_NET_BIND_SERVICE AmbientCapabilities=CAP_NET_BIND_SERVICE
A private user cannot have process capabilities on the host's user
namespace and thus CAP_NET_BIND_SERVICE has no effect.
PrivateUsers=false
sudo systemctl restart grafana-server
grafana-cli plugins install alexanderzobnin-zabbix-app systemctl start grafana-server