zabbix
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| zabbix [2024/06/01 05:25] – created protocol | zabbix [2026/01/22 08:25] (current) – [Grafana] protocol | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== Templates repo ===== | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | ===== HT authentication through zabbix users from DB ===== | ||
| + | |||
| < | < | ||
| Line 7: | Line 13: | ||
| systemctl restart apache2 | systemctl restart apache2 | ||
| apt install libaprutil1-dbd-mysql -y | apt install libaprutil1-dbd-mysql -y | ||
| + | |||
| + | nano / | ||
| < | < | ||
| Line 16: | Line 24: | ||
| DBDExptime 300 | DBDExptime 300 | ||
| </ | </ | ||
| + | |||
| < | < | ||
| Line 27: | Line 36: | ||
| </ | </ | ||
| + | < | ||
| + | AuthType None | ||
| + | Require all granted | ||
| + | </ | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Grafana ===== | ||
| + | |||
| + | < | ||
| + | sudo apt-get install -y apt-transport-https software-properties-common wget | ||
| + | wget -q -O - https:// | ||
| + | echo "deb https:// | ||
| + | sudo apt-get update | ||
| + | sudo apt-get install grafana -y | ||
| + | sudo systemctl daemon-reload | ||
| + | sudo systemctl start grafana-server | ||
| + | sudo systemctl enable grafana-server.service | ||
| + | grafana-cli plugins install alexanderzobnin-zabbix-app | ||
| + | sudo systemctl restart grafana-server | ||
| + | |||
| + | Set the URL to http:// | ||
| + | |||
| + | |||
| + | |||
| + | nano / | ||
| + | |||
| + | ProxyRequests On | ||
| + | # | ||
| + | ProxyPreserveHost On | ||
| + | ProxyPass /grafana http:// | ||
| + | ProxyPassReverse /grafana http:// | ||
| + | |||
| + | |||
| + | nano / | ||
| - | < | + | http_addr = 127.0.0.1 |
| - | | + | root_url = %(protocol)s:// |
| - | | + | serve_from_sub_path |
| - | DBDMin 1 | + | |
| - | DBDKeep 8 | + | |
| - | DBDMax 16 | + | |
| - | DBDExptime 300 | + | |
| - | </ | + | |
| - | < | + | a2enmod proxy proxy_http rewrite headers proxy_wstunnel |
| - | | + | a2enconf grafana |
| - | AuthName " | + | /etc/init.d/ |
| - | AuthBasicProvider socache dbd | + | / |
| - | AuthnCacheProvideFor dbd | + | |
| - | AuthnCacheContext Authentication | + | |
| - | Require valid-user | + | |
| - | AuthDBDUserPWQuery " | + | |
| - | </ | + | |
| </ | </ | ||
zabbix.1717230307.txt.gz · Last modified: by protocol
