Zabbix-agent needs valid home directory

Bug #1574501 reported by mrvanes
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
zabbix (Ubuntu)
Confirmed
Undecided
Unassigned

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 'system.run[/usr/local/sbin/count_upgradeable,wait]'
E: /nonexistent/.aptitude - mkdir (2: No such file or directory)
1

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

mrvanes (mrvanes)
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
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in zabbix (Ubuntu):
status: New → Confirmed
Revision history for this message
Stephan (world-wide) wrote :

I am affected by this as well. I have created a bug report at the Zabbix bug tracker for it:
https://support.zabbix.com/browse/ZBX-13433

Revision history for this message
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?

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.