Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
linux:monitoring:zabbix:install [2019/11/06 12:34] jlucas [Zabbix frontend system prep] |
linux:monitoring:zabbix:install [2019/11/06 12:43] (current) jlucas |
||
---|---|---|---|
Line 166: | Line 166: | ||
doas make install | doas make install | ||
- | ====Zabbix frontend | + | ====Zabbix frontend |
- | ===Install | + | Install package(s) |
+ | |||
+ | doas pkg_add zabbix-web-4.0.11p0 | ||
+ | |||
+ | Update the **// | ||
+ | |||
+ | $DB[' | ||
+ | $DB[' | ||
+ | |||
+ | ====Install PHP-FPM & enable httpd==== | ||
+ | |||
+ | ===Install PHP=== | ||
doas pkg_add php-7.3.10 php-pgsql-7.3.10 php-gd-7.3.10 php-ldap-7.3.10 | doas pkg_add php-7.3.10 php-pgsql-7.3.10 php-gd-7.3.10 php-ldap-7.3.10 | ||
- | Enable | + | Enable PHP extension |
doas ln -sf / | doas ln -sf / | ||
Line 194: | Line 205: | ||
| | ||
types { | types { | ||
- | include "/ | + | |
} | } | ||
- | | + | server "HOSTNAME" { |
- | | + | listen on * tls port 443 |
- | listen on * port 80 | + | tls { |
- | + | | |
- | root "/htdocs" | + | key "/ |
- | directory index index.php | + | } |
- | + | | |
- | location " | + | directory |
- | fastcgi socket "/ | + | # Increase connection limits to extend the lifetime |
- | } | + | |
+ | connection { max request body 8388608 } | ||
+ | location "/ | ||
+ | block return 401 | ||
+ | } | ||
+ | | ||
+ | fastcgi socket "/ | ||
+ | } | ||
+ | location "/ | ||
+ | root "/ | ||
+ | request strip 2 | ||
+ | | ||
} | } | ||
Line 216: | Line 238: | ||
If you want to have a TLS secured connection, follow these instructions [[https:// | If you want to have a TLS secured connection, follow these instructions [[https:// | ||
- | ====Zabbix frontend from packages==== | ||
- | |||
- | Install package(s) | ||
- | |||
- | doas pkg_add zabbix-web-4.0.11p0 | ||
- | |||
- | Update the **// | ||
- | |||
- | $DB[' | ||
- | $DB[' | ||
====Zabbix frontend from source==== | ====Zabbix frontend from source==== |