Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problema no plugin zabbix #1870

Open
shurtugalelda opened this issue Aug 30, 2024 · 1 comment
Open

problema no plugin zabbix #1870

shurtugalelda opened this issue Aug 30, 2024 · 1 comment

Comments

@shurtugalelda
Copy link

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

@zoltanbedi
Copy link
Member

Can you rewrite your issue in english please?

@zoltanbedi zoltanbedi moved this to Awaiting Response in OSS Big Tent Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Awaiting Response
Development

No branches or pull requests

2 participants