Ad Widget

Collapse

Please add support for SIGHUP to Linux agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mbrackeva
    Junior Member
    • Feb 2016
    • 27

    #1

    Please add support for SIGHUP to Linux agent

    In case you don't have a software distribution tool on your Linux/Unix environment, it's fairly easy to build one yourself using the Zabbix agent. The only issue is that you still need to restart the agent after having made configuration changes. That puts you in a catch-22 situation where you can stop the agent but not start it again as you need it to be running in order to do that.

    So you still need some external program to restart the agent. I fixed it using "at" to schedule the agent restart in the very near future. But I found out that not all our Linux servers have the atd daemon installed.
    On OS versions supporting systemd the issue can be solved by simply stopping the agent in a non-clean way (e.g. SIGINT). Standard the agent installs with a systemd script implementing an automatic restart of the agent in such a case. But most of our systems are still SysV init.

    This problem wouldn't exist if the agent supported the SIGHUP signal to re-read its config. In that case you don't need a restart. If this could be implemented, it would be greatly appreciated!
Working...