Zabbix-agent needs valid home directory

Bug #1574501 reported by mrvanes on 2016-04-25
This bug affects 4 people
Affects Status Importance Assigned to Milestone
zabbix (Ubuntu)

Bug Description

In Xenial, zabbix-agent installer generates zabbix user without valid home dir (/nonexistent). This breaks RemoteCommands that need a writeable homedir to complete:

e.g. I wrote a tiny script to count number of security upgrades waiting (using aptitude). This works on all precise and trusty servers, but failed on the new xenial install:

zabbix# zabbix_get -s webhostnew -k '[/usr/local/sbin/count_upgradeable,wait]'
E: /nonexistent/.aptitude - mkdir (2: No such file or directory)

Seting zabbix user homedir to /var/run/zabbix fixed the problem.

mrvanes (mrvanes) on 2016-04-30
summary: - Zabbig_agent needs valid home directory
+ Zabbig-agent needs valid home directory
summary: - Zabbig-agent needs valid home directory
+ Zabbix-agent needs valid home directory
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in zabbix (Ubuntu):
status: New → Confirmed
Stephan (world-wide) wrote :

I am affected by this as well. I have created a bug report at the Zabbix bug tracker for it:

Eduard von Feek (feek) wrote :

/var/run is a symlink to /run, which is a tmpfs. All files and directories there get deleted during a reboot. Any ideas how to mitigate this, so that e.g. SSH configuration in /var/run/zabbix/.ssh/ doesn't get deleted?

Stephan (world-wide) wrote :

upstream did set /var/lib/zabbix as home directory (but not created it). I suggest using this directory and ensuring it exists. This would be in line with other daemons like postfix or snmp. Vote for the above mentioned bug report to have it fixed upstream.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers