On 19.11.2024 17:18, Angel Villa wrote:
Greetings, do you know anything about this problem?

This is clearly not a OpenBSD problem and should be posted to misc@
instead of bugs@.


If you followed the documentation under

/usr/local/share/doc/pkg-readmes/

as well as paid attention to the zabbix_server.conf example for your
setup [1], everything should run fine. From checking your config below,
i'd say you've set the wrong socket for your database in

/etc/zabbix/zabbix_server.conf

For PostgreSQL you only need:

DBHost=/path/to/psql/socket
DBName=zabbix
DBUser=zabbix
DBPassword=StRoNgPaSsWoRd

[1] /usr/local/share/examples/zabbix/zabbix_server.conf


I'm trying to get Zabbix Server up and running on OpenBSD and it's not
working...
...
...SNIP...
...
# grep -Ev ^'(#|$)' /etc/zabbix/zabbix_server.conf
LogFile=/var/log/zabbix/server.log
DBHost=
DBName=zabbix
DBUser=zabbix
DBPassword=StRoNgPaSsWoRd
DBSocket=/var/www/var/run/mysql/mysql.sock  <--------------- DROP THAT LINE
Timeout=4
AlertScriptsPath=/etc/zabbix/alertscripts/
FpingLocation=/usr/local/sbin/fping
Fping6Location=/usr/local/sbin/fping6
LogSlowQueries=3000
StatsAllowedIP=127.0.0.1

# rcctl enable zabbix_server
# rcctl start zabbix_server
zabbix_server(ok)

# tail -f /var/log/zabbix/server.log    
 88219:20241119:150837.786 Starting Zabbix Server. Zabbix 6.4.18 (revision
f3bc25b1ce1).
 88219:20241119:150837.787 ****** Enabled features ******
 88219:20241119:150837.788 SNMP monitoring:       YES
 88219:20241119:150837.788 IPMI monitoring:         NO
 88219:20241119:150837.788 Web monitoring:         YES
 88219:20241119:150837.788 VMware monitoring:     YES
 88219:20241119:150837.788 SMTP authentication:   YES
 88219:20241119:150837.788 ODBC:                   NO
 88219:20241119:150837.789 SSH support:           YES
 88219:20241119:150837.790 IPv6 support:           YES
 88219:20241119:150837.790 TLS support:           YES
 88219:20241119:150837.790 ******************************
 88219:20241119:150837.791 using configuration file: /etc/zabbix/
zabbix_server.conf
 88219:20241119:150838.014 Cannot upgrade database: the database must
correspond to version 2.0 or later. Exiting ...
 88219:20241119:150838.014 Zabbix Server stopped. Zabbix 6.4.18 (revision
f3bc25b1ce1).


Thanks for your attention and any help!

--
M. Ángel Villa G.
US +1 (786) 233-9240 | CO +57 (300) 283-6546
[email protected]
https://angelcontents.blogspot.com

"We are all atheists about most of the gods that societies have ever believed
in. Some of us just go one god further" - Richard Dawkins

--
Mark Patruck ( mark at wrapped.cx )
GPG key 0xF2865E51 / 187F F6D3 EE04 1DCE 1C74  F644 0D3C F66F F286 5E51
https://www.wrapped.cx

Reply via email to