@ -69,34 +69,34 @@ payload="{
\" params\" : { "
\" params\" : { "
if [ " ${ discordalert } " = = "on" ] ; then
if [ " ${ discordalert } " = = "on" ] ; then
payload = " ${ payload } \"discord alert\": \" ${ discordalert } \", "
payload = " ${ payload } \"alert\": \"discord\", "
fi
fi
if [ " ${ emailalert } " = = "on" ] ; then
if [ " ${ emailalert } " = = "on" ] ; then
payload = " ${ payload } \"email alert\": \" ${ emailalert } \", "
payload = " ${ payload } \"alert\": \"email\", "
fi
fi
if [ " ${ gotifyalert } " = = "on" ] ; then
if [ " ${ gotifyalert } " = = "on" ] ; then
payload = " ${ payload } , \"gotify alert\": \" ${ gotifyalert } \", "
payload = " ${ payload } , \"alert\": \"gotify\", "
fi
fi
if [ " ${ iftttalert } " = = "on" ] ; then
if [ " ${ iftttalert } " = = "on" ] ; then
payload = " ${ payload } , \"ifttt alert\": \" ${ iftttalert } \", "
payload = " ${ payload } , \"alert\": \"ifttt\", "
fi
fi
if [ " ${ mailgunalert } " = = "on" ] ; then
if [ " ${ mailgunalert } " = = "on" ] ; then
payload = " ${ payload } \"mailgun alert\": \" ${ mailgunalert } \", "
payload = " ${ payload } \"alert\": \"mailgun\", "
fi
fi
if [ " ${ pushbulletalert } " = = "on" ] ; then
if [ " ${ pushbulletalert } " = = "on" ] ; then
payload = " ${ payload } \"pushbullet alert\": \" ${ pushbulletalert } \", "
payload = " ${ payload } \"alert\": \"pushbullet\", "
fi
fi
if [ " ${ pushoveralert } " = = "on" ] ; then
if [ " ${ pushoveralert } " = = "on" ] ; then
payload = " ${ payload } \"pushover alert\": \" ${ pushoveralert } \", "
payload = " ${ payload } \"alert\": \"pushover\", "
fi
fi
if [ " ${ rocketchatalert } " = = "on" ] ; then
if [ " ${ rocketchatalert } " = = "on" ] ; then
payload = " ${ payload } \"rocketchat alert\": \" ${ rocketchatalert } \", "
payload = " ${ payload } \"alert\": \"rocketchat\", "
fi
fi
if [ " ${ slackalert } " = = "on" ] ; then
if [ " ${ slackalert } " = = "on" ] ; then
payload = " ${ payload } \"slack alert\": \" ${ slackalert } \", "
payload = " ${ payload } \"alert\": \"slack\", "
fi
fi
if [ " ${ telegramalert } " = = "on" ] ; then
if [ " ${ telegramalert } " = = "on" ] ; then
payload = " ${ payload } \"telegram alert\": \" ${ telegramalert } \", "
payload = " ${ payload } \"alert\": \"telegram\", "
fi
fi