|
|
@@ -104,10 +104,10 @@ elif [ "${postalert}" != "on" ]&&[ "${function_selfname}" == "command_test_alert
|
|
|
fn_print_warn_nl "More Info not enabled"
|
|
|
fn_script_log_warn "More Info alerts not enabled"
|
|
|
elif [ -z "${posttarget}" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
|
|
|
- fn_print_error_nl "posttarget not set"
|
|
|
+ fn_print_error "posttarget not set"
|
|
|
fn_script_error "posttarget not set"
|
|
|
elif [ -z "${postdays}" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
|
|
|
- fn_print_error_nl "postdays not set"
|
|
|
+ fn_print_error "postdays not set"
|
|
|
fn_script_error "postdays not set"
|
|
|
fi
|
|
|
|
|
|
@@ -117,7 +117,7 @@ elif [ "${discordalert}" != "on" ]&&[ "${function_selfname}" == "command_test_al
|
|
|
fn_print_warn_nl "Discord alerts not enabled"
|
|
|
fn_script_log_warn "Discord alerts not enabled"
|
|
|
elif [ -z "${discordtoken}" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
|
|
|
- fn_print_error_nl "Discord token not set"
|
|
|
+ fn_print_error "Discord token not set"
|
|
|
echo -e " * https://docs.linuxgsm.com/alerts/discord"
|
|
|
fn_script_error "Discord token not set"
|
|
|
fi
|
|
|
@@ -128,7 +128,7 @@ elif [ "${emailalert}" != "on" ]&&[ "${function_selfname}" == "command_test_aler
|
|
|
fn_print_warn_nl "Email alerts not enabled"
|
|
|
fn_script_log_warn "Email alerts not enabled"
|
|
|
elif [ -z "${email}" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
|
|
|
- fn_print_error_nl "Email not set"
|
|
|
+ fn_print_error "Email not set"
|
|
|
fn_script_log_error "Email not set"
|
|
|
fi
|
|
|
|
|
|
@@ -138,7 +138,7 @@ elif [ "${iftttalert}" != "on" ]&&[ "${function_selfname}" == "command_test_aler
|
|
|
fn_print_warn_nl "IFTTT alerts not enabled"
|
|
|
fn_script_log_warn "IFTTT alerts not enabled"
|
|
|
elif [ -z "${ifttttoken}" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
|
|
|
- fn_print_error_nl "IFTTT token not set"
|
|
|
+ fn_print_error "IFTTT token not set"
|
|
|
echo -e " * https://docs.linuxgsm.com/alerts/ifttt"
|
|
|
fn_script_error "IFTTT token not set"
|
|
|
fi
|
|
|
@@ -149,7 +149,7 @@ elif [ "${mailgunalert}" != "on" ]&&[ "${function_selfname}" == "command_test_al
|
|
|
fn_print_warn_nl "Mailgun alerts not enabled"
|
|
|
fn_script_log_warn "Mailgun alerts not enabled"
|
|
|
elif [ -z "${mailguntoken}" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
|
|
|
- fn_print_error_nl "Mailgun token not set"
|
|
|
+ fn_print_error "Mailgun token not set"
|
|
|
echo -e " * https://docs.linuxgsm.com/alerts/mailgun"
|
|
|
fn_script_error "Mailgun token not set"
|
|
|
fi
|
|
|
@@ -160,7 +160,7 @@ elif [ "${pushbulletalert}" != "on" ]&&[ "${function_selfname}" == "command_test
|
|
|
fn_print_warn_nl "Pushbullet alerts not enabled"
|
|
|
fn_script_log_warn "Pushbullet alerts not enabled"
|
|
|
elif [ -z "${pushbullettoken}" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
|
|
|
- fn_print_error_nl "Pushbullet token not set"
|
|
|
+ fn_print_error "Pushbullet token not set"
|
|
|
echo -e " * https://docs.linuxgsm.com/alerts/pushbullet"
|
|
|
fn_script_error "Pushbullet token not set"
|
|
|
fi
|
|
|
@@ -171,7 +171,7 @@ elif [ "${pushoveralert}" != "on" ]&&[ "${function_selfname}" == "command_test_a
|
|
|
fn_print_warn_nl "Pushover alerts not enabled"
|
|
|
fn_script_log_warn "Pushover alerts not enabled"
|
|
|
elif [ -z "${pushovertoken}" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
|
|
|
- fn_print_error_nl "Pushover token not set"
|
|
|
+ fn_print_error "Pushover token not set"
|
|
|
echo -e " * https://docs.linuxgsm.com/alerts/pushover"
|
|
|
fn_script_error "Pushover token not set"
|
|
|
fi
|
|
|
@@ -182,11 +182,11 @@ elif [ "${telegramalert}" != "on" ]&&[ "${function_selfname}" == "command_test_a
|
|
|
fn_print_warn_nl "Telegram Messages not enabled"
|
|
|
fn_script_log_warn "Telegram Messages not enabled"
|
|
|
elif [ -z "${telegramtoken}" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
|
|
|
- fn_print_error_nl "Telegram token not set."
|
|
|
+ fn_print_error "Telegram token not set."
|
|
|
echo -e " * https://docs.linuxgsm.com/alerts/telegram"
|
|
|
fn_script_error "Telegram token not set."
|
|
|
elif [ -z "${telegramchatid}" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
|
|
|
- fn_print_error_nl "Telegram chat id not set."
|
|
|
+ fn_print_error "Telegram chat id not set."
|
|
|
echo -e " * https://docs.linuxgsm.com/alerts/telegram"
|
|
|
fn_script_error "Telegram chat id not set."
|
|
|
fi
|
|
|
@@ -197,7 +197,7 @@ elif [ "${slackalert}" != "on" ]&&[ "${function_selfname}" == "command_test_aler
|
|
|
fn_print_warn_nl "Slack alerts not enabled"
|
|
|
fn_script_log_warn "Slack alerts not enabled"
|
|
|
elif [ -z "${slacktoken}" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
|
|
|
- fn_print_error_nl "Slack token not set"
|
|
|
+ fn_print_error "Slack token not set"
|
|
|
echo -e " * https://docs.linuxgsm.com/alerts/slack"
|
|
|
fn_script_error "Slack token not set"
|
|
|
fi
|