[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 <boris@steki.net> 2014-06-20 17:42:51 UTC --- New created user called zabbixs is used for java gateway AND server process To mitigate this issue change in /etc/zabbix/zabbix-server.conf location of logs to /var/log/zabbixs/ as that is where server should log its output scriptlet bellow should do it for you sed -i 's@LogFile=/var/log/zabbix/@LogFile=/var/log/zabbixs/@g' /etc/zabbix/zabbix-server.conf sed -i 's@PidFile=/var/run/zabbix/@PidFile=/var/run/zabbixs/@g' /etc/zabbix/zabbix-server.conf This fix is only for 12.3 and 13.1 NOT for newer releases as /var/run is moved to /run in future releases Please investigate difference between your zabbix-server.conf and zabbix-servr.conf.rpmnew too -- 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#c Boris Manojlovic <boris@steki.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |cesarmartins_2004-linux@yah | |oo.com.br -- 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#c2 Boris Manojlovic <boris@steki.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |CLOSED CC| |boris@steki.net InfoProvider|cesarmartins_2004-linux@yah | |oo.com.br | Resolution| |FIXED --- Comment #2 from Boris Manojlovic <boris@steki.net> 2014-07-04 13:21:01 UTC --- Latest update 2.2.4 should fix your issue trough use of %post so please installing package (will close issue now as i tested it for my machines) Always compare .rpmnew configs and your own and apply changes from new files If you think issue is not closed please re-open -- 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.
participants (1)
-
bugzilla_noreply@novell.com