I would like to change the user and group zabbix runs as. It is not available ./configure --help, nor can i find it in conf files?
Ad Widget
Collapse
howto change zabbix user/group???
Collapse
X
-
oh,oh its hard coded, here is how i did it.
to change user/group from zabbix to monitor example
groupmod -n monitor zabbix ; usermod -l monitor zabbix
change this line, in these files
src/zabbix_agent/zabbix_agentd.c:191: pwd = getpwnam("zabbix");
src/zabbix_server/server.c:251: pwd = getpwnam("zabbix");
run make in the already configured and installed zabbix src dir and copy these files to their location.
cp ./src/zabbix_agent/zabbix_agentd /usr/local/zabbix/bin/
cp ./src/zabbix_server/zabbix_server /usr/local/zabbix/bin/
Comment