[Bug 883601] New: server:monitoring/zabbix: Bug
https://bugzilla.novell.com/show_bug.cgi?id=883601 https://bugzilla.novell.com/show_bug.cgi?id=883601#c0 Summary: server:monitoring/zabbix: Bug Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: x86-64 OS/Version: openSUSE 12.3 Status: NEW Severity: Major Priority: P5 - None Component: 3rd party software AssignedTo: boris@steki.net ReportedBy: cesarmartins_2004-linux@yahoo.com.br QAContact: opensuse-communityscreening@forge.provo.novell.com CC: nix@opensuse.org Found By: Customer Blocker: --- Hi, I just update my zabbix-server from version 2.2.3-3.1 to 2.2.3-11.1 (with zypper up) and it not started , where give error of permission: (5/7) Installing: zabbix-server-2.2.3-11.1 ............................................................................................................................................................................................[done] Additional rpm output: warning: /etc/zabbix/zabbix-server.conf created as /etc/zabbix/zabbix-server.conf.rpmnew redirecting to systemctl try-restart zabbix-server root@jdivm04:/etc/init.d # ./zabbix-server start redirecting to systemctl start Starting zabbix server zabbix-server [26168]: cannot open [/var/log/zabbix/zabbix-server.log]: [13] Permission denied failed r I check the /etc/init.d/zabbix-server and compare with last version and notice they try start the zabbix server with wrong(?) new user : zabbixs which is for Java Daemon .... I just back the old version of script and start without problems. root@jdivm04:/etc/init.d # diff -u zabbix-server ~/zabbix-server.backup.bad --- zabbix-server 2014-06-20 11:17:44.300018284 -0300 +++ /root/zabbix-server.backup.bad 2014-06-20 11:17:33.861017259 -0300 @@ -78,9 +78,13 @@ echo -n "Starting zabbix server " ## Start daemon with startproc(8). If this fails ## the return value is set appropriately by startproc. - /usr/bin/install -dm0770 $(dirname $PidFile) 2> /dev/null - chown root.zabbix $(dirname $PidFile) - /sbin/startproc -p $PidFile $ZABBIX_SERVER_BIN + if [ ! -d $(dirname $PidFile) ]; then + install -dm0770 $(dirname $PidFile) 2> /dev/null + chown root.zabbixs $(dirname $PidFile) + fi + # start as zabbixd user to mitigate security issue with + # agent reading zabbix server configuration + /sbin/startproc -u zabbixs -g zabbixs -p $PidFile $ZABBIX_SERVER_BIN # Remember status and be verbose rc_status -v root@jdivm04:/etc/init.d # grep zabbix /etc/passwd zabbix:x:111:114:Zabbix Daemon:/home/zabbix:/bin/bash zabbixagent:x:498:114:Zabbix Agent Daemon:/home/zabbix:/bin/bash zabbixs:x:497:496:Zabbix Java Daemon:/var/lib/zabbixs:/bin/false -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=883601
https://bugzilla.novell.com/show_bug.cgi?id=883601#c1
--- Comment #1 from Boris Manojlovic
https://bugzilla.novell.com/show_bug.cgi?id=883601
https://bugzilla.novell.com/show_bug.cgi?id=883601#c
Boris Manojlovic
https://bugzilla.novell.com/show_bug.cgi?id=883601
https://bugzilla.novell.com/show_bug.cgi?id=883601#c2
Boris Manojlovic
participants (1)
-
bugzilla_noreply@novell.com