|
|
@ -27,11 +27,11 @@ fn_alert_log(){ |
|
|
|
|
|
|
|
fn_alert_test(){ |
|
|
|
fn_script_log_info "Sending test alert" |
|
|
|
alertsubject="Alert - ${selfname} - Test" |
|
|
|
alerttitle="Alert - ${selfname} - Test" |
|
|
|
alertemoji="🚧" |
|
|
|
alertsound="1" |
|
|
|
alerturl="not enabled" |
|
|
|
alertdescription="Testing LinuxGSM Alert. No action to be taken." |
|
|
|
alertmessage="Testing LinuxGSM Alert. No action to be taken." |
|
|
|
# Green |
|
|
|
alertcolourhex="#cdcd00" |
|
|
|
alertcolourdec="13487360" |
|
|
@ -39,11 +39,11 @@ fn_alert_test(){ |
|
|
|
|
|
|
|
fn_alert_restart(){ |
|
|
|
fn_script_log_info "Sending alert: Restarted: ${selfname}, ${executable} is not running" |
|
|
|
alertsubject="Alert - ${selfname} - Restarted" |
|
|
|
alerttitle="Alert - ${selfname} - Restarted" |
|
|
|
alertemoji="🚨" |
|
|
|
alertsound="2" |
|
|
|
alerturl="not enabled" |
|
|
|
alertdescription="${selfname} is not running. Game Server has been restarted." |
|
|
|
alertmessage="${selfname} is not running. Game Server has been restarted." |
|
|
|
# Red |
|
|
|
alertcolourhex="#cd0000" |
|
|
|
alertcolourdec="13434880" |
|
|
@ -51,11 +51,11 @@ fn_alert_restart(){ |
|
|
|
|
|
|
|
fn_alert_restart_query(){ |
|
|
|
fn_script_log_info "Sending alert: Restarted: ${selfname}" |
|
|
|
alertsubject="Alert - ${selfname} - Restarted" |
|
|
|
alerttitle="Alert - ${selfname} - Restarted" |
|
|
|
alertemoji="🚨" |
|
|
|
alertsound="2" |
|
|
|
alerturl="not enabled" |
|
|
|
alertdescription="Unable to query ${selfname}. Game server has been restarted" |
|
|
|
alertmessage="Unable to query ${selfname}. Game server has been restarted" |
|
|
|
# Red |
|
|
|
alertcolourhex="#cd0000" |
|
|
|
alertcolourdec="13434880" |
|
|
@ -63,11 +63,11 @@ fn_alert_restart_query(){ |
|
|
|
|
|
|
|
fn_alert_update(){ |
|
|
|
fn_script_log_info "Sending alert: Updated: ${selfname}" |
|
|
|
alertsubject="Alert - ${selfname} - Updated" |
|
|
|
alerttitle="Alert - ${selfname} - Updated" |
|
|
|
alertemoji="🎮" |
|
|
|
alertsound="1" |
|
|
|
alerturl="not enabled" |
|
|
|
alertdescription="${selfname} has received an update" |
|
|
|
alertmessage="${selfname} has received an update" |
|
|
|
# Green |
|
|
|
alertcolourhex="#00cd00" |
|
|
|
alertcolourdec="52480" |
|
|
@ -75,11 +75,11 @@ fn_alert_update(){ |
|
|
|
|
|
|
|
fn_alert_check_update(){ |
|
|
|
fn_script_log_info "Sending alert: Update available" |
|
|
|
alertsubject="Alert - ${selfname} - Update available" |
|
|
|
alerttitle="Alert - ${selfname} - Update available" |
|
|
|
alertemoji="🎮" |
|
|
|
alertsound="1" |
|
|
|
alerturl="not enabled" |
|
|
|
alertdescription="Update availablefor ${selfname}" |
|
|
|
alertmessage="Update availablefor ${selfname}" |
|
|
|
# Blue |
|
|
|
alertcolourhex="#1e90ff" |
|
|
|
alertcolourdec="2003199" |
|
|
@ -87,11 +87,11 @@ fn_alert_check_update(){ |
|
|
|
|
|
|
|
fn_alert_permissions(){ |
|
|
|
fn_script_log_info "Sending alert: Permissions error" |
|
|
|
alertsubject="Alert - ${selfname}: Permissions error" |
|
|
|
alerttitle="Alert - ${selfname}: Permissions error" |
|
|
|
alertemoji="❗" |
|
|
|
alertsound="2" |
|
|
|
alerturl="not enabled" |
|
|
|
alertdescription="${selfname} has permissions issues" |
|
|
|
alertmessage="${selfname} has permissions issues" |
|
|
|
# Red |
|
|
|
alertcolourhex="#cd0000" |
|
|
|
alertcolourdec="13434880" |
|
|
@ -99,11 +99,11 @@ fn_alert_permissions(){ |
|
|
|
|
|
|
|
fn_alert_config(){ |
|
|
|
fn_script_log_info "Sending alert: New _default.cfg" |
|
|
|
alertsubject="Alert - ${selfname} - New _default.cfg" |
|
|
|
alerttitle="Alert - ${selfname} - New _default.cfg" |
|
|
|
alertemoji="📄" |
|
|
|
alertsound="1" |
|
|
|
alerturl="not enabled" |
|
|
|
alertdescription="${selfname} has received a new _default.cfg. Check file for changes." |
|
|
|
alertmessage="${selfname} has received a new _default.cfg. Check file for changes." |
|
|
|
# Blue |
|
|
|
alertcolourhex="#1e90ff" |
|
|
|
alertcolourdec="2003199" |
|
|
@ -111,11 +111,11 @@ fn_alert_config(){ |
|
|
|
|
|
|
|
fn_alert_wipe(){ |
|
|
|
fn_script_log_info "Sending alert: Wiped: ${selfname} wiped" |
|
|
|
alertsubject="Alert - ${selfname} - Wiped" |
|
|
|
alerttitle="Alert - ${selfname} - Wiped" |
|
|
|
alertemoji="💿" |
|
|
|
alertsound="1" |
|
|
|
alerturl="not enabled" |
|
|
|
alertdescription="${selfname} as been wiped." |
|
|
|
alertmessage="${selfname} as been wiped." |
|
|
|
# Green |
|
|
|
alertcolourhex="#00cd00" |
|
|
|
alertcolourdec="52480" |
|
|
|