Bug 1081584 - zabbix cant write to /var/run/zabbix/, because it doesn't exist
Summary: zabbix cant write to /var/run/zabbix/, because it doesn't exist
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: zabbix
Version: 20
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: ---
Assignee: Volker Fröhlich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-27 16:01 UTC by Igor Gnatenko
Modified: 2014-09-25 10:34 UTC (History)
7 users (show)

Fixed In Version: zabbix-2.0.13-1.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-25 10:34:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Igor Gnatenko 2014-03-27 16:01:19 UTC
Description of problem:


Version-Release number of selected component (if applicable):
zabbix-agent-2.0.10-2.fc20.x86_64

How reproducible:
always

Steps to Reproduce:
1. yum install zabbix-agent
2. systemctl start zabbix-agent

Actual results:
zabbix_agentd [25676]: cannot create PID file [/var/run/zabbix/zabbix_agentd.pid]: [2] No such file or directory

Expected results:
all works fine

Additional info:
Workaround:
# mkdir /var/run/zabbix/
# chown zabbix:zabbix /var/run/zabbix/ -R

I think .spec should own /var/run/zabbix/ or something

Comment 1 Jason Bradley Nance 2014-08-30 14:04:14 UTC
Regarding the workaround, I believe it should be:

$ sudo mkdir /var/run/zabbix
$ sudo chown root:zabbix /var/run/zabbix
$ sudo chmod 0775 /var/run/zabbix
$ sudo chcon -u system_u -t zabbix_var_run_t /var/run/zabbix

This issue exists for the zabbix22 packages on EPEL for EL7 as well.

Comment 2 Fedora Update System 2014-09-11 06:43:42 UTC
zabbix-2.0.13-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/zabbix-2.0.13-1.fc20

Comment 3 lnie 2014-09-11 08:09:04 UTC
zabbix-2.0.13-1.fc20 works

Comment 4 Fedora Update System 2014-09-12 14:30:49 UTC
Package zabbix-2.0.13-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing zabbix-2.0.13-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-10752/zabbix-2.0.13-1.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2014-09-25 10:34:32 UTC
zabbix-2.0.13-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.