Closed alexanderzobnin closed 8 years ago
After start, zas_agent will change user/group. The default user/group for the daemon is zabbix/zabbix do you have those user/group in your system ?
Also, can you check lsof -i|grep 10060 before and after you start. Basically, what I am looking for, the evidences if other instance of zas_agent not exited cleanly and still grab the port. What will happens if you'll try to bind to 10061 ?
I've added some checkups. Please start an agent and look in logfile if you have an error during the bind. Because if you do, the agent shall exit now.
@vulogov I have no any errors - log file aren't created. I just see started process, but port is not bound. If I run zas agent without --daemonize
it's all right.
@vulogov I tried just now but the same issue - no log file created and port not bound.
@vulogov I also have zabbix:zabbix
user/group on my server (zabbix instance runnig here). I use CentOS 7 and python 2.7.5.
What about lsof -i|grep 10060 ? Or bind to a 10061 ?
I see the problem
Same problem when I trying to bind to any unused port.
The problem is in read access rights to the configuration file. Main process were tried to read /etc/zas_scenario.conf and if it can not, it catches the trace. Creating a checking code and ensure if there is a traceback here, daemon shall exit.
BTW, thank you for the bug reports.
@vulogov Now --daemonize
works! Many thanks!
This tool is really helps me. I need to perform zabbix instance with multiple hosts ang groups for my project demo (Grafana plugin for zabbix). You can look at generated data here.
Sure, one of the reasons this tool exists is demo, development and a testing. Good luck, let me know if anything else is broken.
Resolved.
When zas_agent is started normally all works fine. But if I try to start with
--daemonize
agent can't bind address. But procees is running: