openbsd-ports/net/zabbix/patches/patch-misc_conf_zabbix_proxy_conf
ajacoutot 29da65e8ea Clean up this port:
* add missing dependency on php5-gd
* remove all hardcoded paths
* rework README.OpenBSD
* add empty zabbix.conf.php file that is writable by the www user so
that the configuration wizard can tweak this file
* protect configuration files, they may contain passwords
* fix configuration so that it works by default which is the purpose of
porting these kinds of apps

ok sthen@, ok jasper@ on a previous version of the diff
2009-07-12 19:51:51 +00:00

54 lines
1.5 KiB
Plaintext

$OpenBSD: patch-misc_conf_zabbix_proxy_conf,v 1.2 2009/07/12 19:51:51 ajacoutot Exp $
--- misc/conf/zabbix_proxy.conf.orig Fri Apr 3 16:44:06 2009
+++ misc/conf/zabbix_proxy.conf Thu Jul 2 10:00:27 2009
@@ -123,28 +123,28 @@ Timeout=5
#UnavailableDelay=60
# Name of PID file
-PidFile=/var/tmp/zabbix_proxy.pid
+PidFile=/var/run/zabbix/zabbix_proxy.pid
# Name of log file
# If not set, syslog is used
-LogFile=/tmp/zabbix_proxy.log
+#LogFile=/tmp/zabbix_proxy.log
# Maximum size of log file in MB. Set to 0 to disable automatic log rotation.
#LogFileSize=1
# Location for custom alert scripts
-AlertScriptsPath=/home/zabbix/bin/
+AlertScriptsPath=${SYSCONFDIR}/zabbix/scripts/
# Location of external scripts
-#ExternalScripts=/etc/zabbix/externalscripts
+ExternalScripts=${SYSCONFDIR}/zabbix/externalscripts
# Location of 'fping. Default is /usr/sbin/fping
# Make sure that fping binary has root permissions and SUID flag set
-#FpingLocation=/usr/sbin/fping
+FpingLocation=${LOCALBASE}/sbin/fping
# Location of fping6. Default is /usr/sbin/fping6
# Make sure that fping binary has root permissions and SUID flag set
-#Fping6Location=/usr/sbin/fping6
+Fping6Location=${LOCALBASE}/sbin/fping6
# Temporary directory. Default is /tmp
#TmpDir=/tmp
@@ -163,7 +163,7 @@ DBName=proxy
# Database user
-DBUser=root
+DBUser=zabbix
# Database password
# Comment this line if no password used
@@ -172,4 +172,4 @@ DBUser=root
# Connect to MySQL using Unix socket?
-#DBSocket=/tmp/mysql.sock
+DBSocket=/var/www/var/run/mysql/mysql.sock