Summary(pl.UTF-8): Zabbix - oprogramowanie do monitorowania sieci
Name: zabbix
Version: 5.0.7
-Release: 0.2
+Release: 0.3
License: GPL v2+
Group: Networking/Utilities
Source0: https://cdn.zabbix.com/zabbix/sources/stable/5.0/%{name}-%{version}.tar.gz
You should create database for Zabbix.
Running these should be fine in most cases:
+
mysqladmin create zabbix
zcat %{_docdir}/%{name}-server-mysql-%{version}/schema.sql.gz | mysql zabbix
zcat %{_docdir}/%{name}-server-mysql-%{version}/images.sql.gz | mysql zabbix
Running these should be fine in most cases:
- createuser zabbix
- createdb -O zabbix zabbix
- zcat %{_docdir}/%{name}-server-postgresql-%{version}/schema.sql.gz | psql -u zabbix zabbix
- zcat %{_docdir}/%{name}-server-postgresql-%{version}/images.sql.gz | psql -u zabbix zabbix
- zcat %{_docdir}/%{name}-server-postgresql-%{version}/data.sql.gz | psql -u zabbix zabbix
+ createuser -U postgres zabbix
+ createdb -U postgres -O zabbix zabbix
+ zcat %{_docdir}/%{name}-server-postgresql-%{version}/schema.sql.gz | psql -U zabbix zabbix
+ zcat %{_docdir}/%{name}-server-postgresql-%{version}/images.sql.gz | psql -U zabbix zabbix
+ zcat %{_docdir}/%{name}-server-postgresql-%{version}/data.sql.gz | psql -U zabbix zabbix
EOF
fi
ln -sf %{_sbindir}/zabbix_server-postgresql %{_sbindir}/zabbix_server || :