~# service supervisor status
● supervisor.service - Supervisor process control system for UNIX
Loaded: loaded (/lib/systemd/system/supervisor.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-12-04 14:05:31 MSK; 5 days ago
...
Now you can install go-zabbix-supervisord.
~# go get -u github.com/cardinalit/go-zabbix-supervisord
After installing the dependencies, the executable will be installed in $GOBIN path.
The executable will be called go-zabbix-supervisord. You can check it:
~# go-zabbix-supervisord help [-h | --help]
Usage of go-zabbix-supervisord:
-sock string
The full path to the socket
(default "/tmp/supervisor.sock")
You should create (or copy from my repository) sudoers.d exception file for zabbix user, containing the following text: