Auto restart Linux service using zabbix
Configuration Those remote commands that are executed on Zabbix agent (custom scripts) must be first enabled in the respective zabbix_agentd.conf . Make sure that the EnableRemoteCommands parameter is set to 1 and uncommented. Restart agent daemon if changing this parameter. Remote commands do not work with active Zabbix agents. Then, when configuring a new action in Configuration→Actions : In the Operations tab, select the Remote command operation type Select the remote command type ( IPMI , Custom script, SSH , Telnet, Global script) Enter the remote command For example: sudo /etc/init.d/apache restart In this case, Zabbix will try to restart an Apache process. With this command, make sure that the command is executed on Zabbix agent (mark the respective radio button against Execute on ). Note the use of sudo - Zabbix user does not have permissions to restart system services by default. See below for hints on how to configure sudo . Zabbix agent ...