Index | Thread | Search

From:
Renaud Allard <renaud@allard.it>
Subject:
Small issue with net/zabbix web
To:
ports <ports@openbsd.org>
Cc:
robert@openbsd.org
Date:
Wed, 11 Sep 2024 16:11:10 +0200

Download raw body.

Thread
Hello,

When I install the package zabbix-web, it installs the file 
/var/www/zabbix/conf/zabbix.conf.php with some default variables. So, by 
default, it tries to connect to MySQL DB on default unix socket without 
any password. This means that if you try to run 
https://server/zabbix/setup.php (without having MySQL listening on a 
unix socket without password), it will throw a custom error "no such 
file or directory". This is extremely hard to debug why because it 
doesn't log any useful error message and doesn't relate to database. 
Also, there is no mention of that in the package README file.

Since the preferred way of configuring zabbix seems to be through 
setup.php, it might be a good idea to remove that default config to 
prevent clueless errors. Or maybe at least mention it in the package README.

What do you think?

Best Regards