Hi @rawkode,
I had a problem when i placed the above script in Kapacitor configuration file. I am using the sandbox and the kapacitor Docker is exiting exiting instantly after restarting the sandbox and i have posted the question in here.
Thanks