Skip to content

Start zabbix proxy server tunnel

Ramses edited this page Jun 14, 2021 · 1 revision

Another service needs to be created, one per tunnel, in /etc/init/, the service will then download the script to start a tunnel from GitHub using cURL and execute it:

description "start zabbix tunnel"

author "MSF OCB"
start on syno.volume.ready
stop on runlevel [06]

nice 0

respawn
respawn limit 5 10

pre-start script
    echo starting zabbix tunnel
end script

script
    exec curl -L https://github.com/MSF-OCB/remote-tunnels/raw/master/synology/start_tunnel_zabbix_proxy_to_server.sh | \
      bash -s -- 7105 zbx_tnl /root/id_tunnel &
end script

post-stop script
    echo stopped zabbix tunnel

You can start/stop/get status of such a service, by typing

$ sudo initctl status start_zabbix_tunnel
Clone this wiki locally