Hi,
I was trying to implement best practices given here.
https://www.zabbix.com/documentation...best_practices
1) On Ubuntu 18, I tried to run zabbix agent with a different user namely zabbix-agent using 3 steps given in the url but couldn't succeed.
Then i tried steps given by JayC at https://www.zabbix.com/forum/zabbix-...t-user-account
But no success. zabbix agent couldn't start with error.
/etc/init.d/zabbix-agent script is not able to create /var/run/zabbix-agent directory, when i manually created it. agent did start but fully. stuck at activating (start) and still looking for /run/zabbix/ directory. strange.
-----------------------------------------
root@capz-zabbix03:~# systemctl status zabbix-agent.service
● zabbix-agent.service - Zabbix Agent
Loaded: loaded (/lib/systemd/system/zabbix-agent.service; enabled; vendor preset: enabled)
Active: activating (start) since Thu 2018-12-13 07:41:56 CST; 1min 28s ago
Process: 3102 ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE (code=exited, status=0/SUCCESS)
Tasks: 6 (limit: 4915)
CGroup: /system.slice/zabbix-agent.service
├─3113 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
├─3114 /usr/sbin/zabbix_agentd: collector [idle 1 sec]
├─3115 /usr/sbin/zabbix_agentd: listener #1 [waiting for connection]
├─3116 /usr/sbin/zabbix_agentd: listener #2 [waiting for connection]
├─3117 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection]
└─3118 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]
Dec 13 07:41:56 capz-zabbix03 systemd[1]: Starting Zabbix Agent...
Dec 13 07:41:56 capz-zabbix03 systemd[1]: zabbix-agent.service: Can't open PID file /run/zabbix/zabbix_agentd.pid (yet?) after start: No
-----------------------------------------
has anyone successfully implemented this ?
2) If i keep "Server=127.0.0.1" in zabbix_agentd.conf and block inbound 10050 port from internet to my zabbix server then will it still be necessary to run agent as a different user?
I was trying to implement best practices given here.
https://www.zabbix.com/documentation...best_practices
1) On Ubuntu 18, I tried to run zabbix agent with a different user namely zabbix-agent using 3 steps given in the url but couldn't succeed.
Then i tried steps given by JayC at https://www.zabbix.com/forum/zabbix-...t-user-account
But no success. zabbix agent couldn't start with error.
/etc/init.d/zabbix-agent script is not able to create /var/run/zabbix-agent directory, when i manually created it. agent did start but fully. stuck at activating (start) and still looking for /run/zabbix/ directory. strange.
-----------------------------------------
root@capz-zabbix03:~# systemctl status zabbix-agent.service
● zabbix-agent.service - Zabbix Agent
Loaded: loaded (/lib/systemd/system/zabbix-agent.service; enabled; vendor preset: enabled)
Active: activating (start) since Thu 2018-12-13 07:41:56 CST; 1min 28s ago
Process: 3102 ExecStart=/usr/sbin/zabbix_agentd -c $CONFFILE (code=exited, status=0/SUCCESS)
Tasks: 6 (limit: 4915)
CGroup: /system.slice/zabbix-agent.service
├─3113 /usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf
├─3114 /usr/sbin/zabbix_agentd: collector [idle 1 sec]
├─3115 /usr/sbin/zabbix_agentd: listener #1 [waiting for connection]
├─3116 /usr/sbin/zabbix_agentd: listener #2 [waiting for connection]
├─3117 /usr/sbin/zabbix_agentd: listener #3 [waiting for connection]
└─3118 /usr/sbin/zabbix_agentd: active checks #1 [idle 1 sec]
Dec 13 07:41:56 capz-zabbix03 systemd[1]: Starting Zabbix Agent...
Dec 13 07:41:56 capz-zabbix03 systemd[1]: zabbix-agent.service: Can't open PID file /run/zabbix/zabbix_agentd.pid (yet?) after start: No
-----------------------------------------
has anyone successfully implemented this ?
2) If i keep "Server=127.0.0.1" in zabbix_agentd.conf and block inbound 10050 port from internet to my zabbix server then will it still be necessary to run agent as a different user?
Comment