diff --git a/monitoring/README.md b/monitoring/README.md index bf9ebf2..3073846 100644 --- a/monitoring/README.md +++ b/monitoring/README.md @@ -1,7 +1,11 @@ # Installing the Zabbix server -Change default passwords, ports and set listet IP (ports `8080/tpc` and `10051/tcp` will be open on all interfaces, use a firewall or specify the address of the required interface), then run: +Change default passwords, ports and set listen IP (ports `8080/tcp` and `10051/tcp` will be open on all interfaces, use a firewall or specify the address of the required interface), then run: ```bash +wget https://github.com/tornadocash/tornado-relayer/raw/master/monitoring/zabbix.tar.gz +mkdir $HOME/monitoring/ +tar -xzf zabbix.tar.gz -C $HOME/monitoring/ +cd $HOME/monitoring/ docker-compose up -d ``` @@ -9,15 +13,22 @@ docker-compose up -d Download package from repository [https://repo.zabbix.com/zabbix/5.2/ubuntu/pool/main/z/zabbix/](https://repo.zabbix.com/zabbix/5.2/ubuntu/pool/main/z/zabbix/) and run: ```bash -dpkg -i zabbix-agent_5.2.*.deb +sudo dpkg -i zabbix-agent_5.2.*.deb +sudo usermod -aG docker zabbix ``` -Change default values in `/etc/zabbix/zabbix_agent2.conf` +Change default values in `/etc/zabbix/zabbix_agent2.conf`: * `Hostname` the same as in the zabbix-server web interface; * `Server` and `ServerActive` set zabbix server IP or DNS name; * `ListenIP` to local network IP available from zabbix server or set firewall rules to restrict access to port `10050`; * uncomment `Plugins.Docker.Endpoint=unix:///var/run/docker.sock`. +Then run: +```bash +sudo systemctl enable zabbix-agent2.service +sudo systemctl restart zabbix-agent2.service +``` + # Adding the host Log into your Zabbix server (defaul login and passord: `Admin` - `zabbix`) and click on the Configuration tab and then the Hosts tab. Click the Create host button near the top right corner. In the resulting page, change the Host name and IP ADDRESS sections to match the information for your remote server. Set `{$URL}` macros to relayer host, example `http://localhost/v1/status` or `https://domain.name/v1/status`. diff --git a/monitoring/zabbix.tar.gz b/monitoring/zabbix.tar.gz new file mode 100644 index 0000000..0b6f7cf Binary files /dev/null and b/monitoring/zabbix.tar.gz differ