I have installed zabbix-agent2 but after install when I want to run after start service another it stop such as follow
[root@ho1 ~]# service zabbix-agent2 start
Starting Zabbix agent 2:
[root@ho1 ~]# Starting Zabbix Agent 2 (6.0.4)
Zabbix Agent2 hostname: [ho]
Press Ctrl+C to exit.
Zabbix Agent 2 stopped. (6.0.4)
and it shows follow error in log
2022/07/12 11:29:29.646446 using plugin 'ZabbixStats' (built-in) providing following interfaces: exporter, configurator
2022/07/12 11:29:29.646452 lowering the plugin ZabbixSync capacity to 1 as the configured capacity 100 exceeds limits
2022/07/12 11:29:29.646456 using plugin 'ZabbixSync' (built-in) providing following interfaces: exporter
2022/07/12 11:29:29.646567 Zabbix Agent2 hostname: [ho1]
2022/07/12 11:29:29.647559 cannot start agent: listen unix /tmp/agent.sock: bind: permission denied
2022/07/12 11:29:30.000411 Zabbix Agent 2 stopped. (6.0.4)
How can solve this issue ?
[root@ho1 ~]# service zabbix-agent2 start
Starting Zabbix agent 2:
[root@ho1 ~]# Starting Zabbix Agent 2 (6.0.4)
Zabbix Agent2 hostname: [ho]
Press Ctrl+C to exit.
Zabbix Agent 2 stopped. (6.0.4)
and it shows follow error in log
2022/07/12 11:29:29.646446 using plugin 'ZabbixStats' (built-in) providing following interfaces: exporter, configurator
2022/07/12 11:29:29.646452 lowering the plugin ZabbixSync capacity to 1 as the configured capacity 100 exceeds limits
2022/07/12 11:29:29.646456 using plugin 'ZabbixSync' (built-in) providing following interfaces: exporter
2022/07/12 11:29:29.646567 Zabbix Agent2 hostname: [ho1]
2022/07/12 11:29:29.647559 cannot start agent: listen unix /tmp/agent.sock: bind: permission denied
2022/07/12 11:29:30.000411 Zabbix Agent 2 stopped. (6.0.4)
How can solve this issue ?