Bug 1081584

Summary: zabbix cant write to /var/run/zabbix/, because it doesn't exist
Product: [Fedora] Fedora Reporter: Igor Gnatenko <ignatenko>
Component: zabbixAssignee: Volker Fröhlich <volker27>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 20CC: brett.lentz, dan, ignatenko, jbnance, lnie, nelsonab, volker27
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: zabbix-2.0.13-1.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-25 10:34:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.