|
|
@ -9,40 +9,45 @@ local commandaction="Alert" |
|
|
|
|
|
|
|
fn_alert_test(){ |
|
|
|
fn_script_log_info "Sending test alert" |
|
|
|
alertsubject="Alert - ${servicename} - Test" |
|
|
|
alertemoji="🚨" |
|
|
|
alertsubject="Alert - ${servicename}: Test" |
|
|
|
alertemoji="🚧" |
|
|
|
alertsound="1" |
|
|
|
alerturl="https://gameservermanagers.com" |
|
|
|
alertbody="Testing LinuxGSM Alert. No action to be taken." |
|
|
|
} |
|
|
|
|
|
|
|
fn_alert_restart(){ |
|
|
|
fn_script_log_info "Sending alert: Restarted: ${executable} not running" |
|
|
|
alertsubject="Alert - ${servicename} - Restarted" |
|
|
|
alertsubject="Alert - ${servicename}: Restarted" |
|
|
|
alertemoji="🚨" |
|
|
|
alertsound="2" |
|
|
|
alerturl="https://gameservermanagers.com" |
|
|
|
alertbody="${servicename} ${executable} not running" |
|
|
|
} |
|
|
|
|
|
|
|
fn_alert_restart_query(){ |
|
|
|
fn_script_log_info "Sending alert: Restarted: ${gsquerycmd}" |
|
|
|
alertsubject="Alert - ${servicename} - Restarted" |
|
|
|
alertsubject="Alert - ${servicename}: Restarted" |
|
|
|
alertemoji="🚨" |
|
|
|
alertsound="2" |
|
|
|
alerturl="https://gameservermanagers.com" |
|
|
|
alertbody="gsquery.py failed to query: ${gsquerycmd}" |
|
|
|
} |
|
|
|
|
|
|
|
fn_alert_update(){ |
|
|
|
fn_script_log_info "Sending alert: Updated" |
|
|
|
alertsubject="Alert - ${servicename} - Updated" |
|
|
|
alertsubject="Alert - ${servicename}: Updated" |
|
|
|
alertemoji="🎮" |
|
|
|
alertsound="1" |
|
|
|
alerturl="https://gameservermanagers.com" |
|
|
|
alertbody="${gamename} received update" |
|
|
|
} |
|
|
|
|
|
|
|
fn_alert_permissions(){ |
|
|
|
fn_script_log_info "Sending alert: Permissions error" |
|
|
|
alertsubject="Alert - ${servicename} - Permissions error" |
|
|
|
alertsubject="Alert - ${servicename}: Permissions error" |
|
|
|
alertemoji="❗" |
|
|
|
alertsound="2" |
|
|
|
alerturl="https://gameservermanagers.com" |
|
|
|
alertbody="${servicename} has permissions issues" |
|
|
|
} |
|
|
|