With monit services are restarted, ever since I’ve installed zabbix I
wanted the same functionallity. Turns out this is possible, but it
takes some configuration.
Also see the zabbix manual, where it gets interesting from page 160 onwards.
In zabbix go to Configuration->Actions.
Add a new ‘Action Operation’ in which you want to run a remote command.
- Operation type: remote command
- Remote command: host:script in my (test) case
elektron:/home/miekg/bin/zabbix_service {TRIGGER.NAME}: {STATUS}
And zabbix_service is now a shell script which will echo its
arguments to a file in /tmp.