Browse Source

Merge branch 'release/170803'

Daniel Gibbs 8 years ago
parent
commit
24b54a495a
100 changed files with 3983 additions and 1447 deletions
  1. BIN
      images/screens/DST_menu.png
  2. BIN
      images/screens/DST_title.png
  3. BIN
      images/screens/DSTconsole.png
  4. BIN
      images/screens/DSTconsolecommand.png
  5. BIN
      images/screens/Tmux.png
  6. BIN
      images/screens/steamcmd.png
  7. BIN
      images/screens/steamguard.jpg
  8. 34 2
      lgsm/config-default/config-lgsm/arkserver/_default.cfg
  9. 34 2
      lgsm/config-default/config-lgsm/arma3server/_default.cfg
  10. 34 2
      lgsm/config-default/config-lgsm/bb2server/_default.cfg
  11. 35 3
      lgsm/config-default/config-lgsm/bf1942server/_default.cfg
  12. 34 2
      lgsm/config-default/config-lgsm/bmdmserver/_default.cfg
  13. 34 2
      lgsm/config-default/config-lgsm/boserver/_default.cfg
  14. 34 2
      lgsm/config-default/config-lgsm/bsserver/_default.cfg
  15. 34 2
      lgsm/config-default/config-lgsm/ccserver/_default.cfg
  16. 34 2
      lgsm/config-default/config-lgsm/cod2server/_default.cfg
  17. 34 2
      lgsm/config-default/config-lgsm/cod4server/_default.cfg
  18. 34 2
      lgsm/config-default/config-lgsm/codserver/_default.cfg
  19. 34 2
      lgsm/config-default/config-lgsm/coduoserver/_default.cfg
  20. 34 2
      lgsm/config-default/config-lgsm/codwawserver/_default.cfg
  21. 34 2
      lgsm/config-default/config-lgsm/coserver/_default.cfg
  22. 34 2
      lgsm/config-default/config-lgsm/csczserver/_default.cfg
  23. 34 2
      lgsm/config-default/config-lgsm/csgoserver/_default.cfg
  24. 34 2
      lgsm/config-default/config-lgsm/csserver/_default.cfg
  25. 34 2
      lgsm/config-default/config-lgsm/cssserver/_default.cfg
  26. 34 2
      lgsm/config-default/config-lgsm/dabserver/_default.cfg
  27. 34 2
      lgsm/config-default/config-lgsm/dmcserver/_default.cfg
  28. 34 2
      lgsm/config-default/config-lgsm/dodserver/_default.cfg
  29. 34 2
      lgsm/config-default/config-lgsm/dodsserver/_default.cfg
  30. 34 3
      lgsm/config-default/config-lgsm/doiserver/_default.cfg
  31. 34 2
      lgsm/config-default/config-lgsm/dstserver/_default.cfg
  32. 34 2
      lgsm/config-default/config-lgsm/emserver/_default.cfg
  33. 33 1
      lgsm/config-default/config-lgsm/fctrserver/_default.cfg
  34. 33 1
      lgsm/config-default/config-lgsm/fofserver/_default.cfg
  35. 34 2
      lgsm/config-default/config-lgsm/gesserver/_default.cfg
  36. 34 2
      lgsm/config-default/config-lgsm/gmodserver/_default.cfg
  37. 34 2
      lgsm/config-default/config-lgsm/hl2dmserver/_default.cfg
  38. 34 2
      lgsm/config-default/config-lgsm/hldmserver/_default.cfg
  39. 34 2
      lgsm/config-default/config-lgsm/hldmsserver/_default.cfg
  40. 33 1
      lgsm/config-default/config-lgsm/hwserver/_default.cfg
  41. 34 2
      lgsm/config-default/config-lgsm/insserver/_default.cfg
  42. 34 2
      lgsm/config-default/config-lgsm/jc2server/_default.cfg
  43. 33 1
      lgsm/config-default/config-lgsm/kfserver/_default.cfg
  44. 33 1
      lgsm/config-default/config-lgsm/l4d2server/_default.cfg
  45. 34 2
      lgsm/config-default/config-lgsm/l4dserver/_default.cfg
  46. 34 2
      lgsm/config-default/config-lgsm/mcserver/_default.cfg
  47. 34 2
      lgsm/config-default/config-lgsm/mtaserver/_default.cfg
  48. 34 2
      lgsm/config-default/config-lgsm/mumbleserver/_default.cfg
  49. 34 2
      lgsm/config-default/config-lgsm/nmrihserver/_default.cfg
  50. 34 2
      lgsm/config-default/config-lgsm/ns2cserver/_default.cfg
  51. 34 2
      lgsm/config-default/config-lgsm/ns2server/_default.cfg
  52. 34 2
      lgsm/config-default/config-lgsm/opforserver/_default.cfg
  53. 34 2
      lgsm/config-default/config-lgsm/pcserver/_default.cfg
  54. 34 2
      lgsm/config-default/config-lgsm/pvkiiserver/_default.cfg
  55. 34 2
      lgsm/config-default/config-lgsm/pzserver/_default.cfg
  56. 34 2
      lgsm/config-default/config-lgsm/q2server/_default.cfg
  57. 34 2
      lgsm/config-default/config-lgsm/q3server/_default.cfg
  58. 34 2
      lgsm/config-default/config-lgsm/qlserver/_default.cfg
  59. 34 2
      lgsm/config-default/config-lgsm/qwserver/_default.cfg
  60. 34 2
      lgsm/config-default/config-lgsm/ricochetserver/_default.cfg
  61. 34 2
      lgsm/config-default/config-lgsm/roserver/_default.cfg
  62. 34 2
      lgsm/config-default/config-lgsm/rustserver/_default.cfg
  63. 34 2
      lgsm/config-default/config-lgsm/sbserver/_default.cfg
  64. 34 2
      lgsm/config-default/config-lgsm/sdtdserver/_default.cfg
  65. 122 0
      lgsm/config-default/config-lgsm/squadserver/_default.cfg
  66. 34 2
      lgsm/config-default/config-lgsm/ss3server/_default.cfg
  67. 34 2
      lgsm/config-default/config-lgsm/svenserver/_default.cfg
  68. 34 2
      lgsm/config-default/config-lgsm/terrariaserver/_default.cfg
  69. 34 2
      lgsm/config-default/config-lgsm/tf2server/_default.cfg
  70. 34 2
      lgsm/config-default/config-lgsm/tfcserver/_default.cfg
  71. 33 1
      lgsm/config-default/config-lgsm/ts3server/_default.cfg
  72. 34 2
      lgsm/config-default/config-lgsm/tuserver/_default.cfg
  73. 34 2
      lgsm/config-default/config-lgsm/twserver/_default.cfg
  74. 33 1
      lgsm/config-default/config-lgsm/ut2k4server/_default.cfg
  75. 35 3
      lgsm/config-default/config-lgsm/ut3server/_default.cfg
  76. 34 2
      lgsm/config-default/config-lgsm/ut99server/_default.cfg
  77. 34 2
      lgsm/config-default/config-lgsm/utserver/_default.cfg
  78. 34 2
      lgsm/config-default/config-lgsm/wetserver/_default.cfg
  79. 1 0
      lgsm/data/serverlist.csv
  80. 123 21
      lgsm/functions/alert.sh
  81. 58 2
      lgsm/functions/alert_discord.sh
  82. 9 225
      lgsm/functions/alert_email.sh
  83. 30 0
      lgsm/functions/alert_ifttt.sh
  84. 28 0
      lgsm/functions/alert_mailgun.sh
  85. 15 28
      lgsm/functions/alert_pushbullet.sh
  86. 35 0
      lgsm/functions/alert_pushover.sh
  87. 30 0
      lgsm/functions/alert_telegram.sh
  88. 1 1
      lgsm/functions/check.sh
  89. 1 1
      lgsm/functions/command_debug.sh
  90. 21 926
      lgsm/functions/command_details.sh
  91. 42 73
      lgsm/functions/command_postdetails.sh
  92. 27 10
      lgsm/functions/core_functions.sh
  93. 1 1
      lgsm/functions/core_getopt.sh
  94. 12 4
      lgsm/functions/core_legacy.sh
  95. 12 12
      lgsm/functions/core_messages.sh
  96. 2 0
      lgsm/functions/fix.sh
  97. 10 0
      lgsm/functions/fix_ark.sh
  98. 12 7
      lgsm/functions/info_config.sh
  99. 3 0
      lgsm/functions/info_glibc.sh
  100. 1013 0
      lgsm/functions/info_messages.sh

BIN
images/screens/DST_menu.png


BIN
images/screens/DST_title.png


BIN
images/screens/DSTconsole.png


BIN
images/screens/DSTconsolecommand.png


BIN
images/screens/Tmux.png


BIN
images/screens/steamcmd.png


BIN
images/screens/steamguard.jpg


+ 34 - 2
lgsm/config-default/config-lgsm/arkserver/_default.cfg

@@ -24,16 +24,47 @@ parms="\"TheIsland?listen?MultiHome=${ip}?MaxPlayers=${maxplayers}?QueryPort=${q
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -83,8 +114,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/arma3server/_default.cfg

@@ -40,16 +40,47 @@ parms="-netlog -ip=${ip} -port=${port} -cfg=${networkcfgfullpath} -config=${serv
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -101,8 +132,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/bb2server/_default.cfg

@@ -30,16 +30,47 @@ parms="-game brainbread2 -strictportbind -ip ${ip} -port ${port} +clientport ${c
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -92,8 +123,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
-lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
+lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 35 - 3
lgsm/config-default/config-lgsm/bf1942server/_default.cfg

@@ -17,16 +17,47 @@ parms="+hostServer 1 +dedicated 1"
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -71,8 +102,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
-lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/bmdmserver/_default.cfg

@@ -30,16 +30,47 @@ parms="-game bms -strictportbind -ip ${ip} -port ${port} +clientport ${clientpor
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -92,8 +123,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
-lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
+lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/boserver/_default.cfg

@@ -23,16 +23,47 @@ parms=" -batchmode -nographics -dedicated -configfile=${servercfgfullpath}"
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -82,8 +113,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
-lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
+lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/bsserver/_default.cfg

@@ -29,16 +29,47 @@ parms="-autoupdate -strictportbind -ip ${ip} -port ${port} +clientport ${clientp
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -91,8 +122,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
-lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
+lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/ccserver/_default.cfg

@@ -25,16 +25,47 @@ parms="-game cure -strictportbind -ip ${ip} -port ${port} +clientport ${clientpo
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -87,8 +118,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
-lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
+lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/cod2server/_default.cfg

@@ -23,16 +23,47 @@ parms="+set sv_punkbuster 0 +set fs_basepath ${serverfiles} +set dedicated 1 +se
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackups="4"
 maxbackupdays="30"
 maxbackupdays="30"
@@ -71,8 +102,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
-lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
+lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/cod4server/_default.cfg

@@ -23,16 +23,47 @@ parms="+set sv_punkbuster 0 +set fs_basepath ${serverfiles} +set dedicated 1 +se
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackups="4"
 maxbackupdays="30"
 maxbackupdays="30"
@@ -71,8 +102,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
-lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
+lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/codserver/_default.cfg

@@ -23,16 +23,47 @@ parms="+set sv_punkbuster 0 +set fs_basepath ${serverfiles} +set dedicated 1 +se
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackups="4"
 maxbackupdays="30"
 maxbackupdays="30"
@@ -71,8 +102,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
-lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
+lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/coduoserver/_default.cfg

@@ -23,16 +23,47 @@ parms="+set sv_punkbuster 0 +set fs_basepath ${serverfiles} +set dedicated 1 +se
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackups="4"
 maxbackupdays="30"
 maxbackupdays="30"
@@ -71,8 +102,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
-lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
+lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/codwawserver/_default.cfg

@@ -23,16 +23,47 @@ parms="+set sv_punkbuster 0 +set fs_basepath ${serverfiles} +set dedicated 1 +se
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackups="4"
 maxbackupdays="30"
 maxbackupdays="30"
@@ -71,8 +102,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
-lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
+lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/coserver/_default.cfg

@@ -48,16 +48,47 @@ parms="-game csco -usercon -strictportbind -ip ${ip} -port ${port} +clientport $
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -115,8 +146,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
-lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
+lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/csczserver/_default.cfg

@@ -24,16 +24,47 @@ parms="-game czero -strictportbind +ip ${ip} -port ${port} +clientport ${clientp
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -87,8 +118,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/csgoserver/_default.cfg

@@ -48,16 +48,47 @@ parms="-game csgo -usercon -strictportbind -ip ${ip} -port ${port} +clientport $
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -107,8 +138,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/csserver/_default.cfg

@@ -24,16 +24,47 @@ parms="-game cstrike -strictportbind +ip ${ip} -port ${port} +clientport ${clien
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -84,8 +115,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
-lgsmlogdate="${scriptlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
+lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/cssserver/_default.cfg

@@ -30,16 +30,47 @@ parms="-game cstrike -strictportbind -ip ${ip} -port ${port} +clientport ${clien
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -89,8 +120,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/dabserver/_default.cfg

@@ -25,16 +25,47 @@ parms="-strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_por
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -84,8 +115,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/dmcserver/_default.cfg

@@ -24,16 +24,47 @@ parms="-game dmc -strictportbind +ip ${ip} -port ${port} +clientport ${clientpor
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -84,8 +115,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/dodserver/_default.cfg

@@ -24,16 +24,47 @@ parms="-game dod -strictportbind +ip ${ip} -port ${port} +clientport ${clientpor
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -84,8 +115,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/dodsserver/_default.cfg

@@ -25,16 +25,47 @@ parms="-game dod -strictportbind -ip ${ip} -port ${port} +clientport ${clientpor
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -84,8 +115,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 3
lgsm/config-default/config-lgsm/doiserver/_default.cfg

@@ -27,16 +27,47 @@ parms="-game doi -strictportbind -ip ${ip} -port ${port} +clientport ${clientpor
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -82,12 +113,12 @@ backupdir="${rootdir}/backups"
 ## Logging Directories
 ## Logging Directories
 logdir="${rootdir}/log"
 logdir="${rootdir}/log"
 gamelogdir="${systemdir}/logs"
 gamelogdir="${systemdir}/logs"
-scriptlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/dstserver/_default.cfg

@@ -28,16 +28,47 @@ parms="-persistent_storage_root ${persistentstorageroot} -conf_dir ${confdir} -c
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -94,8 +125,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/emserver/_default.cfg

@@ -30,16 +30,47 @@ parms="-game empires -strictportbind -ip ${ip} -port ${port} +clientport ${clien
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -89,8 +120,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 33 - 1
lgsm/config-default/config-lgsm/fctrserver/_default.cfg

@@ -24,16 +24,47 @@ parms="--start-server ${serverfiles}/save1.zip --server-settings ${servercfgfull
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -74,7 +105,8 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 33 - 1
lgsm/config-default/config-lgsm/fofserver/_default.cfg

@@ -25,16 +25,47 @@ parms="-game fof -strictportbind -ip ${ip} -port ${port} +clientport ${clientpor
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -84,7 +115,8 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/gesserver/_default.cfg

@@ -25,16 +25,47 @@ parms="-game gesource -strictportbind -ip ${ip} -port ${port} +clientport ${clie
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -83,8 +114,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/gmodserver/_default.cfg

@@ -40,16 +40,47 @@ parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} -tickrate ${tickr
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -100,8 +131,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/hl2dmserver/_default.cfg

@@ -25,16 +25,47 @@ parms="-game hl2mp -strictportbind -ip ${ip} -port ${port} +clientport ${clientp
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -84,8 +115,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/hldmserver/_default.cfg

@@ -24,16 +24,47 @@ parms="-game valve -strictportbind +ip ${ip} -port ${port} +clientport ${clientp
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -83,8 +114,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/hldmsserver/_default.cfg

@@ -25,16 +25,47 @@ parms="-game hl1mp -strictportbind -ip ${ip} -port ${port} +clientport ${clientp
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -84,8 +115,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 33 - 1
lgsm/config-default/config-lgsm/hwserver/_default.cfg

@@ -38,16 +38,47 @@ parms="-batchmode -nographics -exec \"host ${port} ${defaultmap} ${loadsave};que
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -98,7 +129,8 @@ consolelogdir="${logdir}/console"
 gamelog="${gamelogdir}/${servicename}-game.log"
 gamelog="${gamelogdir}/${servicename}-game.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"
 gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/insserver/_default.cfg

@@ -32,16 +32,47 @@ parms="-game insurgency -strictportbind -ip ${ip} -port ${port} +clientport ${cl
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -91,8 +122,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/jc2server/_default.cfg

@@ -17,16 +17,47 @@ parms=""
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -76,8 +107,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 33 - 1
lgsm/config-default/config-lgsm/kfserver/_default.cfg

@@ -29,16 +29,47 @@ parms="server ${defaultmap}?game=KFmod.KFGameType?VACSecured=true -nohomedir ini
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -90,7 +121,8 @@ consolelogdir="${logdir}/console"
 gamelog="${gamelogdir}/${servicename}-game.log"
 gamelog="${gamelogdir}/${servicename}-game.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 33 - 1
lgsm/config-default/config-lgsm/l4d2server/_default.cfg

@@ -24,16 +24,47 @@ parms="-game left4dead2 -strictportbind -ip ${ip} -port ${port} +clientport ${cl
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -83,7 +114,8 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/l4dserver/_default.cfg

@@ -24,16 +24,47 @@ parms="-game left4dead -strictportbind -ip ${ip} -port ${port} +clientport ${cli
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -83,8 +114,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/mcserver/_default.cfg

@@ -19,16 +19,47 @@ parms="nogui"
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -70,8 +101,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/mtaserver/_default.cfg

@@ -18,16 +18,47 @@ parms=""
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackups="4"
 maxbackupdays="30"
 maxbackupdays="30"
@@ -66,8 +97,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/mumbleserver/_default.cfg

@@ -18,16 +18,47 @@ parms="-fg -ini ${servercfgfullpath}"
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -68,8 +99,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/nmrihserver/_default.cfg

@@ -30,16 +30,47 @@ parms="-game nmrih -insecure -strictportbind -ip ${ip} -port ${port} +clientport
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -89,8 +120,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/ns2cserver/_default.cfg

@@ -36,16 +36,47 @@ parms="-name \"${servername}\" -port ${port} -webadmin -webdomain ${ip} -webuser
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -94,8 +125,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/ns2server/_default.cfg

@@ -36,16 +36,47 @@ parms="-name \"${servername}\" -port ${port} -webadmin -webdomain ${ip} -webuser
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -94,8 +125,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/opforserver/_default.cfg

@@ -24,16 +24,47 @@ parms="-game gearbox -strictportbind +ip ${ip} -port ${port} +clientport ${clien
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -84,8 +115,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/pcserver/_default.cfg

@@ -18,16 +18,47 @@ parms="--config ${servercfg}"
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -77,8 +108,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/pvkiiserver/_default.cfg

@@ -25,16 +25,47 @@ parms="-game pvkii -strictportbind -ip ${ip} -port ${port} +clientport ${clientp
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -84,8 +115,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/pzserver/_default.cfg

@@ -20,16 +20,47 @@ parms="-ip ${ip} -adminpassword \"${adminpassword}\" -servername ${servicename}"
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -79,8 +110,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/q2server/_default.cfg

@@ -22,16 +22,47 @@ parms="+set dedicated 1 +set ip ${ip} +set port ${port} +exec ${servercfg} +set
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackups="4"
 maxbackupdays="30"
 maxbackupdays="30"
@@ -70,8 +101,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/q3server/_default.cfg

@@ -22,16 +22,47 @@ parms="+set sv_punkbuster 0 +set fs_basepath ${serverfiles} +set dedicated 1 +se
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackups="4"
 maxbackupdays="30"
 maxbackupdays="30"
@@ -70,8 +101,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/qlserver/_default.cfg

@@ -22,16 +22,47 @@ parms="+exec ${servercfg}"
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -82,8 +113,9 @@ consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 gamelog="${gamelogdir}/${servicename}-game.log"
 gamelog="${gamelogdir}/${servicename}-game.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/qwserver/_default.cfg

@@ -21,16 +21,47 @@ parms="-port ${port} -game ktx +exec ${servercfg}"
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackups="4"
 maxbackupdays="30"
 maxbackupdays="30"
@@ -69,8 +100,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/ricochetserver/_default.cfg

@@ -43,16 +43,47 @@ parms=""
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -103,8 +134,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/roserver/_default.cfg

@@ -25,16 +25,47 @@ parms="server ${defaultmap}?game=ROGame.ROTeamGame?VACSecured=true -nohomedir in
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -87,9 +118,10 @@ consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 gamelog="${gamelogdir}/${servicename}-game.log"
 gamelog="${gamelogdir}/${servicename}-game.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
-gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"
+gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/rustserver/_default.cfg

@@ -17,6 +17,7 @@ rconpassword="CHANGE_ME"
 rconweb="1" # Value is: 1 for Facepunch's web panel; 0 for RCON tools like Rusty or Rustadmin
 rconweb="1" # Value is: 1 for Facepunch's web panel; 0 for RCON tools like Rusty or Rustadmin
 servername="Rust"
 servername="Rust"
 maxplayers="50"
 maxplayers="50"
+
 # Advanced Start Settings
 # Advanced Start Settings
 seed="" #  default random; range : 1 to 2147483647 ; used to change or reproduce a procedural map
 seed="" #  default random; range : 1 to 2147483647 ; used to change or reproduce a procedural map
 worldsize="3000" # default 3000; range : 1000 to 6000 ; map size in meters
 worldsize="3000" # default 3000; range : 1000 to 6000 ; map size in meters
@@ -42,16 +43,46 @@ fi
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
 
 
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -102,9 +133,10 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
-gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"
+gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/sbserver/_default.cfg

@@ -24,16 +24,47 @@ parms=""
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -83,8 +114,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/sdtdserver/_default.cfg

@@ -24,16 +24,47 @@ parms="-logfile ${gamelogdir}/output_log__`date +%Y-%m-%d__%H-%M-%S`.txt -quit -
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -84,8 +115,9 @@ consolelogdir="${logdir}/console"
 gamelog="${gamelogdir}/${servicename}-game.log"
 gamelog="${gamelogdir}/${servicename}-game.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 122 - 0
lgsm/config-default/config-lgsm/squadserver/_default.cfg

@@ -0,0 +1,122 @@
+##################################
+######## Default Settings ########
+##################################
+# DO NOT EDIT WILL BE OVERWRITTEN!
+# Copy settings from here and use them in either
+# common.cfg - applies settings to every instance
+# [instance].cfg - applies settings to a specific instance
+
+#### Server Settings ####
+
+## Server Start Settings | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters
+port="7787"
+queryport="27165"
+randommap="ALWAYS"
+ip="0.0.0.0"
+
+## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
+fn_parms(){
+parms="MULTIHOME=${ip} RANDOM=${randommap} Port=${port} QueryPort=${queryport}"
+}
+
+#### LinuxGSM Settings ####
+
+## Notification Alerts
+# (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
+# Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
+emailalert="off"
+email="email@example.com"
+emailfrom=""
+
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
+# Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
+pushbulletalert="off"
+pushbullettoken="accesstoken"
+channeltag=""
+
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
+## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
+updateonstart="off"
+
+## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
+maxbackups="4"
+maxbackupdays="30"
+stoponbackup="on"
+
+## Logging | https://github.com/GameServerManagers/LinuxGSM/wiki/Logging
+consolelogging="on"
+logdays="7"
+
+#### LinuxGSM Advanced Settings ####
+
+## SteamCMD Settings
+# Server appid
+appid="403240"
+# Steam App Branch Select
+# Allows to opt into the various Steam app branches. Default branch is "".
+# Example: "-beta latest_experimental"
+branch=""
+
+## LinuxGSM Server Details
+# Do not edit
+gamename="Squad"
+engine="unreal4"
+
+#### Directories ####
+# Edit with care
+
+## Server Specific Directories
+systemdir="${serverfiles}/Squad"
+executabledir="${serverfiles}"
+executable="./SquadServer.sh"
+servercfg="${servicename}.cfg"
+servercfgdefault="Server.cfg"
+servercfgdir="${systemdir}/ServerConfig"
+servercfgfullpath="${servercfgdir}/${servercfg}"
+
+## Backup Directory
+backupdir="${lgsmdir}/backup"
+
+## Logging Directories
+logdir="${rootdir}/log"
+gamelogdir="${systemdir}/Saved/Logs"
+lgsmlogdir="${logdir}/script"
+consolelogdir="${logdir}/console"
+gamelog="${gamelogdir}/${servicename}-game.log"
+lgsmlog="${lgsmlogdir}/${servicename}-script.log"
+consolelog="${consolelogdir}/${servicename}-console.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
+
+## Logs Naming
+lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/ss3server/_default.cfg

@@ -21,16 +21,47 @@ parms="+ip ${ip} +logfile ${gamelog} +exec ${servercfgfullpath}"
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -81,9 +112,10 @@ consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 gamelog="${gamelogdir}/${servicename}-game.log"
 gamelog="${gamelogdir}/${servicename}-game.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
-gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"
+gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/svenserver/_default.cfg

@@ -24,16 +24,47 @@ parms="-game svencoop -strictportbind +ip ${ip} -port ${port} +clientport ${clie
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -83,8 +114,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/terrariaserver/_default.cfg

@@ -24,16 +24,47 @@ parms="-config ${servercfgfullpath}"
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -83,8 +114,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/tf2server/_default.cfg

@@ -30,16 +30,47 @@ parms="-game tf -strictportbind -ip ${ip} -port ${port} +clientport ${clientport
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -89,8 +120,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/tfcserver/_default.cfg

@@ -24,16 +24,47 @@ parms="-game tfc -strictportbind _ip ${ip} -port ${port} +clientport ${clientpor
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -84,8 +115,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 33 - 1
lgsm/config-default/config-lgsm/ts3server/_default.cfg

@@ -13,16 +13,47 @@
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -62,7 +93,8 @@ logdir="${rootdir}/log"
 gamelogdir="${serverfiles}/logs"
 gamelogdir="${serverfiles}/logs"
 lgsmlogdir="${logdir}/script"
 lgsmlogdir="${logdir}/script"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/tuserver/_default.cfg

@@ -22,16 +22,47 @@ parms="-log -MultiHome=${ip} -Port=${port} -QueryPort=${queryport} -TowerServerI
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -81,8 +112,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/twserver/_default.cfg

@@ -24,16 +24,47 @@ parms="-f ${servercfgfullpath}"
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 ## Updating | https://github.com/GameServerManagers/LinuxGSM/wiki/Update
 updateonstart="off"
 updateonstart="off"
 
 
@@ -84,8 +115,9 @@ consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 gamelog="${gamelogdir}/${servicename}-game.log"
 gamelog="${gamelogdir}/${servicename}-game.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 33 - 1
lgsm/config-default/config-lgsm/ut2k4server/_default.cfg

@@ -21,16 +21,47 @@ parms="server ${defaultmap}?game=XGame.xDeathMatch -nohomedir ini=${servercfg} l
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackups="4"
 maxbackupdays="30"
 maxbackupdays="30"
@@ -71,7 +102,8 @@ consolelogdir="${logdir}/console"
 gamelog="${gamelogdir}/${servicename}-game.log"
 gamelog="${gamelogdir}/${servicename}-game.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 35 - 3
lgsm/config-default/config-lgsm/ut3server/_default.cfg

@@ -26,23 +26,54 @@ allowjoininprogress="true"
 ## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
 ## Server Start Command | https://github.com/GameServerManagers/LinuxGSM/wiki/Start-Parameters#additional-parameters
 # Edit with care | List of game types and mutators : http://wiki.unrealadmin.org/FAQ:UT3
 # Edit with care | List of game types and mutators : http://wiki.unrealadmin.org/FAQ:UT3
 fn_parms(){
 fn_parms(){
-parms="server ${defaultmap}?Game=${game}?bIsDedicated=${isdedicated}?bIsLanMatch=${islanmatch}?bUsesStats=${usesstats}?bShouldAdvertise=${shouldadvertise}?PureServer=${pureserver}?bAllowJoinInProgress=${allowjoininprogress}?MaxPlayers=${maxplayers}?Mutator=${mutators} -port=${port} -queryport=${queryport} -multihome=${ip} -nohomedir -unattended -log=${gamelog} -ini=${servercfgfullpath}""
+parms="server ${defaultmap}?Game=${game}?bIsDedicated=${isdedicated}?bIsLanMatch=${islanmatch}?bUsesStats=${usesstats}?bShouldAdvertise=${shouldadvertise}?PureServer=${pureserver}?bAllowJoinInProgress=${allowjoininprogress}?MaxPlayers=${maxplayers}?Mutator=${mutators} -port=${port} -queryport=${queryport} -multihome=${ip} -nohomedir -unattended -log=${gamelog} -ini=${servercfgfullpath}"
 }
 }
 
 
 #### LinuxGSM Settings ####
 #### LinuxGSM Settings ####
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackups="4"
 maxbackupdays="30"
 maxbackupdays="30"
@@ -82,10 +113,11 @@ consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 gamelog="${gamelogdir}/${servicename}-game.log"
 gamelog="${gamelogdir}/${servicename}-game.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 
 
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
 consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
-gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"
+gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/ut99server/_default.cfg

@@ -21,16 +21,47 @@ parms="server ${defaultmap}.unr ini=${servercfgfullpath}"
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackups="4"
 maxbackupdays="30"
 maxbackupdays="30"
@@ -70,8 +101,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/utserver/_default.cfg

@@ -25,16 +25,47 @@ parms="UnrealTournament ${defaultmap}?Game=${gametype}?TimeLimit=${timelimit} -p
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackups="4"
 maxbackupdays="30"
 maxbackupdays="30"
@@ -72,8 +103,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 34 - 2
lgsm/config-default/config-lgsm/wetserver/_default.cfg

@@ -17,16 +17,47 @@ fn_parms(){
 
 
 ## Notification Alerts
 ## Notification Alerts
 # (on|off)
 # (on|off)
+
+# More info | https://github.com/GameServerManagers/LinuxGSM/wiki/Alerts#more-info
+postalert="off"
+postdays="7"
+posttarget="https://hastebin.com"
+
+# Discord Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Discord
+discordalert="off"
+discordwebhook="webhook"
+
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 # Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Email
 emailalert="off"
 emailalert="off"
 email="email@example.com"
 email="email@example.com"
 emailfrom=""
 emailfrom=""
 
 
+# IFTTT Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT
+iftttalert="off"
+ifttttoken="accesstoken"
+iftttevent="linuxgsm_alert"
+
+# Mailgun Email Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/mailgun
+mailgunalert="off"
+mailguntoken="accesstoken"
+mailgundomain="example.com"
+mailgunemailfrom="alert@example.com"
+mailgunemail="email@myemail.com"
+
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 # Pushbullet Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet
 pushbulletalert="off"
 pushbulletalert="off"
 pushbullettoken="accesstoken"
 pushbullettoken="accesstoken"
 channeltag=""
 channeltag=""
 
 
+# Pushover Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover
+pushoveralert="off"
+pushovertoken="accesstoken"
+
+# Telegram Alerts | https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram
+telegramalert="off"
+telegramtoken="accesstoken"
+telegramchatid=""
+
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 ## Backup | https://github.com/GameServerManagers/LinuxGSM/wiki/Backup
 maxbackups="4"
 maxbackups="4"
 maxbackupdays="30"
 maxbackupdays="30"
@@ -65,8 +96,9 @@ lgsmlogdir="${logdir}/script"
 consolelogdir="${logdir}/console"
 consolelogdir="${logdir}/console"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 lgsmlog="${lgsmlogdir}/${servicename}-script.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
 consolelog="${consolelogdir}/${servicename}-console.log"
-emaillog="${lgsmlogdir}/${servicename}-email.log"
+alertlog="${lgsmlogdir}/${servicename}-alert.log"
+postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
 
 
 ## Logs Naming
 ## Logs Naming
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
 lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
-consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"
+consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

+ 1 - 0
lgsm/data/serverlist.csv

@@ -55,6 +55,7 @@ ricochet,ricochetserver,Ricochet
 rust,rustserver,Rust
 rust,rustserver,Rust
 ss3,ss3server,Serious Sam 3: BFE
 ss3,ss3server,Serious Sam 3: BFE
 sb,sbserver,Starbound
 sb,sbserver,Starbound
+squad,squadserver,Squad
 sven,svenserver,Sven Co-op
 sven,svenserver,Sven Co-op
 tf2,tf2server,Team Fortress 2
 tf2,tf2server,Team Fortress 2
 tfc,tfcserver,Team Fortress Classic
 tfc,tfcserver,Team Fortress Classic

+ 123 - 21
lgsm/functions/alert.sh

@@ -7,34 +7,68 @@
 local commandname="ALERT"
 local commandname="ALERT"
 local commandaction="Alert"
 local commandaction="Alert"
 
 
+fn_alert_log(){
+	info_distro.sh
+	info_config.sh
+	info_glibc.sh
+	info_messages.sh
+	if [ -f "${alertlog}" ]; then
+		rm "${alertlog}"
+	fi
+
+	{
+		fn_info_message_head
+		fn_info_message_distro
+		fn_info_message_performance
+		fn_info_message_disk
+		fn_info_message_gameserver
+		fn_info_logs
+	} | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"| tee -a "${alertlog}" > /dev/null 2>&1
+}
+
 fn_alert_test(){
 fn_alert_test(){
 	fn_script_log_info "Sending test alert"
 	fn_script_log_info "Sending test alert"
-	alertsubject="LinuxGSM - Test Alert - ${servername}"
-	alertbody="LinuxGSM test alert, how you read?"
+	alertsubject="Alert - ${servicename} - Test"
+	alertemoji="🚧"
+	alertsound="1"
+	alerturl="not enabled"
+	alertbody="Testing LinuxGSM Alert. No action to be taken."
 }
 }
 
 
 fn_alert_restart(){
 fn_alert_restart(){
-	fn_script_log_info "Sending restart alert: ${executable} process not running"
-	alertsubject="LinuxGSM - Restarted - ${servername}"
-	alertbody="${servicename} ${executable} process not running"
+	fn_script_log_info "Sending alert: Restarted: ${executable} not running"
+	alertsubject="Alert - ${servicename} - Restarted"
+	alertemoji="🚨"
+	alertsound="2"
+	alerturl="not enabled"
+	alertbody="${servicename} ${executable} not running"
 }
 }
 
 
 fn_alert_restart_query(){
 fn_alert_restart_query(){
-	fn_script_log_info "Sending restart alert: ${gsquerycmd}"
-	alertsubject="LinuxGSM - Restarted - ${servername}"
+	fn_script_log_info "Sending alert: Restarted: ${gsquerycmd}"
+	alertsubject="Alert - ${servicename} - Restarted"
+	alertemoji="🚨"
+	alertsound="2"
+	alerturl="not enabled"
 	alertbody="gsquery.py failed to query: ${gsquerycmd}"
 	alertbody="gsquery.py failed to query: ${gsquerycmd}"
 }
 }
 
 
 fn_alert_update(){
 fn_alert_update(){
-	fn_script_log_info "Sending update alert"
-	alertsubject="LinuxGSM - Updated - ${servername}"
-	alertbody="${servicename} received update"
+	fn_script_log_info "Sending alert: Updated"
+	alertsubject="Alert - ${servicename} - Updated"
+	alertemoji="🎮"
+	alertsound="1"
+	alerturl="not enabled"
+	alertbody="${gamename} received update"
 }
 }
 
 
 fn_alert_permissions(){
 fn_alert_permissions(){
-	fn_script_log_info "Sending permissions error alert"
-	alertsubject="LinuxGSM - Error - ${servername}"
-	alertbody="${servicename} has permissions issues."
+	fn_script_log_info "Sending alert: Permissions error"
+	alertsubject="Alert - ${servicename}: Permissions error"
+	alertemoji="❗"
+	alertsound="2"
+	alerturl="not enabled"
+	alertbody="${servicename} has permissions issues"
 }
 }
 
 
 if [ "${alert}" == "permissions" ]; then
 if [ "${alert}" == "permissions" ]; then
@@ -49,6 +83,35 @@ elif [ "${alert}" == "update" ]; then
 	fn_alert_update
 	fn_alert_update
 fi
 fi
 
 
+# Generate alert log
+fn_alert_log
+
+# Generates the more info link
+if [ "${postalert}" == "on" ]&&[ -n "${postalert}" ]; then
+	alertflag=1
+	command_postdetails.sh
+elif [ "${postalert}" != "on" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
+	fn_print_warn_nl "Discord alerts not enabled"
+	fn_script_log_warn "Discord alerts not enabled"
+elif [ -z "${posttarget}" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
+	fn_print_error_nl "posttarget not set"
+	fn_script_error_warn "posttarget not set"
+elif [ -z "${postdays}" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
+	fn_print_error_nl "postdays not set"
+	fn_script_error_warn "postdays not set"
+fi
+
+if [ "${discordalert}" == "on" ]&&[ -n "${discordalert}" ]; then
+	alert_discord.sh
+elif [ "${discordalert}" != "on" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
+	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"
+	echo "	* https://github.com/GameServerManagers/LinuxGSM/wiki/Discord"
+	fn_script_error_warn "Discord token not set"
+fi
+
 if [ "${emailalert}" == "on" ]&&[ -n "${email}" ]; then
 if [ "${emailalert}" == "on" ]&&[ -n "${email}" ]; then
 	alert_email.sh
 	alert_email.sh
 elif [ "${emailalert}" != "on" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
 elif [ "${emailalert}" != "on" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
@@ -59,6 +122,28 @@ elif [ -z "${email}" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; t
 	fn_script_log_error "Email not set"
 	fn_script_log_error "Email not set"
 fi
 fi
 
 
+if [ "${iftttalert}" == "on" ]&&[ -n "${iftttalert}" ]; then
+	alert_ifttt.sh
+elif [ "${iftttalert}" != "on" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
+	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"
+	echo "	* https://github.com/GameServerManagers/LinuxGSM/wiki/IFTTT"
+	fn_script_error_warn "IFTTT token not set"
+fi
+
+if [ "${mailgunalert}" == "on" ]&&[ -n "${mailgunalert}" ]; then
+	alert_mailgun.sh
+elif [ "${mailgunalert}" != "on" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
+	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"
+	echo "	* https://github.com/GameServerManagers/LinuxGSM/wiki/Mailgun"
+	fn_script_error_warn "Mailgun token not set"
+fi
+
 if [ "${pushbulletalert}" == "on" ]&&[ -n "${pushbullettoken}" ]; then
 if [ "${pushbulletalert}" == "on" ]&&[ -n "${pushbullettoken}" ]; then
 	alert_pushbullet.sh
 	alert_pushbullet.sh
 elif [ "${pushbulletalert}" != "on" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
 elif [ "${pushbulletalert}" != "on" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
@@ -66,15 +151,32 @@ elif [ "${pushbulletalert}" != "on" ]&&[ "${function_selfname}" == "command_test
 	fn_script_log_warn "Pushbullet alerts not enabled"
 	fn_script_log_warn "Pushbullet alerts not enabled"
 elif [ -z "${pushbullettoken}" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
 elif [ -z "${pushbullettoken}" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
 	fn_print_error_nl "Pushbullet token not set"
 	fn_print_error_nl "Pushbullet token not set"
+	echo "	* https://github.com/GameServerManagers/LinuxGSM/wiki/Pushbullet"
 	fn_script_error_warn "Pushbullet token not set"
 	fn_script_error_warn "Pushbullet token not set"
 fi
 fi
 
 
-if [ "${discordalert}" == "on" ]&&[ -n "${discordalert}" ]; then
-	alert_discord.sh
-elif [ "${discordalert}" != "on" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
-	fn_print_warn_nl "Discord alerts not enabled"
-	fn_script_log_warn "Discord alerts not enabled"
-elif [ -z "${discordalert}" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
-	fn_print_error_nl "Discord token not set"
-	fn_script_error_warn "Discord token not set"
+if [ "${pushoveralert}" == "on" ]&&[ -n "${pushoveralert}" ]; then
+	alert_pushover.sh
+elif [ "${pushoveralert}" != "on" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
+	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"
+	echo "	* https://github.com/GameServerManagers/LinuxGSM/wiki/Pushover"
+	fn_script_error_warn "Pushover token not set"
 fi
 fi
+
+if [ "${telegramalert}" == "on" ]&&[ -n "${telegramtoken}" ]; then
+	alert_telegram.sh
+elif [ "${telegramalert}" != "on" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
+	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."
+	echo "	* https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram"
+	fn_script_error_warn "Telegram token not set."
+elif [ -z "${telegramchatid}" ]&&[ "${function_selfname}" == "command_test_alert.sh" ]; then
+	fn_print_error_nl "Telegram chat id not set."
+	echo "	* https://github.com/GameServerManagers/LinuxGSM/wiki/Telegram"
+	fn_script_error_warn "Telegram chat id not set."
+fi

+ 58 - 2
lgsm/functions/alert_discord.sh

@@ -3,6 +3,62 @@
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Contributor: faflfama
 # Contributor: faflfama
 # Website: https://gameservermanagers.com
 # Website: https://gameservermanagers.com
-# Description: Sends Discord alert including the server status.
+# Description: Sends Discord alert.
 
 
-curl -X POST --data '{ "embeds": [{"title": "${alertsubject}", "url": "https://example.com", "description": "${alertbody}", "type": "link", "thumbnail": {"url": "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/images/logo/lgsm-square-184-dark.png"}}] }' -H "Content-Type: application/json" "${discordwebhook}"
+json=$(cat <<EOF
+{
+"username":"LinuxGSM",
+"avatar_url":"https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/images/logo/lgsm-dark-square-512.png",
+"file":"content",
+
+"embeds": [{
+	"color": "2067276",
+	"author": {"name": "${alertemoji} ${alertsubject} ${alertemoji}", "icon_url": "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/images/logo/lgsm-dark-square-512.png"},
+	"title": "",
+	"description": "",
+	"url": "",
+	"type": "content",
+	"thumbnail": {"url": "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/images/logo/lgsm-dark-square-512.png"},
+	"footer": {"text": "LinuxGSM", "icon_url": "https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/images/logo/lgsm-dark-square-512.png"},
+	"fields": [
+			{
+				"name": "Alert Message",
+				"value": "${alertbody}"
+			},
+			{
+				"name": "Game",
+				"value": "${gamename}"
+			},
+			{
+				"name": "Server name",
+				"value": "${servername}"
+			},
+			{
+				"name": "Hostname",
+				"value": "${HOSTNAME}"
+			},
+			{
+				"name": "Server IP",
+				"value": "[${ip}:${port}](https://www.gametracker.com/server_info/${ip}:${port})"
+			},
+			{
+				"name": "More info",
+				"value": "${alerturl}"
+			}
+		]
+	}]
+}
+EOF
+)
+
+fn_print_dots "Sending Discord alert"
+sleep 0.5
+discordsend=$(${curlpath} -sSL -H "Content-Type: application/json" -X POST -d """${json}""" ${discordwebhook})
+
+if [ -n "${discordsend}" ]; then
+	fn_print_fail_nl "Sending Discord alert: ${discordsend}"
+	fn_script_log_fatal "Sending Discord alert: ${discordsend}"
+else
+	fn_print_ok_nl "Sending Discord alert"
+	fn_script_log_pass "Sending Discord alert"
+fi

+ 9 - 225
lgsm/functions/alert_email.sh

@@ -2,241 +2,25 @@
 # LinuxGSM alert_email.sh function
 # LinuxGSM alert_email.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
 # Website: https://gameservermanagers.com
-# Description: Sends email alert including server details and logs.
+# Description: Sends email alert.
 
 
 local commandname="ALERT"
 local commandname="ALERT"
 local commandaction="Alert"
 local commandaction="Alert"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 
-fn_details_email(){
-	#
-	# Failure reason: Testing bb2-server email alert
-	# Action Taken: Sent test email...hello is this thing on?
+fn_print_dots "Sending Email alert: ${email}"
+sleep 0.5
 
 
-	echo -e "${alertbody}" >> "${emaillog}"
-}
-
-fn_details_os(){
-	#
-	# Distro Details
-	# =====================================
-	# Distro:    Ubuntu 14.04.4 LTS
-	# Arch:      x86_64
-	# Kernel:    3.13.0-79-generic
-	# Hostname:  hostname
-	# tmux:      tmux 1.8
-	# GLIBC:     2.19
-
-	{
-		echo -e ""
-		echo -e "Distro Details"
-		echo -e "================================="
-		echo -e "Distro: ${distroname}"
-		echo -e "Arch: ${arch}"
-		echo -e "Kernel: ${kernel}"
-		echo -e "Hostname: $HOSTNAME"
-		echo -e "tmux: ${tmuxv}"
-		echo -e "GLIBC: ${glibcversion}"
-	} | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"| tee -a "${emaillog}" > /dev/null 2>&1
-}
-
-fn_details_performance(){
-	#
-	# Performance
-	# =====================================
-	# Uptime:    55d, 3h, 38m
-	# Avg Load:  1.00, 1.01, 0.78
-	#
-	# Mem:       total   used   free
-	# Physical:  741M    656M   85M
-	# Swap:      0B      0B     0B
-
-	{
-		echo -e ""
-		echo -e "Performance"
-		echo -e "================================="
-		echo -e "Uptime: ${days}d, ${hours}h, ${minutes}m"
-		echo -e "Avg Load: ${load}"
-		echo -e ""
-		echo -e "Mem: total  used  free"
-		echo -e "Physical: ${physmemtotal} ${physmemused} ${physmemfree}"
-		echo -e "Swap: ${swaptotal} ${swapused} ${swapfree}"
-	} | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"| tee -a "${emaillog}" > /dev/null 2>&1
-}
-
-fn_details_disk(){
-	#
-	# Storage
-	# =====================================
-	# Filesystem:   /dev/disk/by-uuid/320c8edd-a2ce-4a23-8c9d-e00a7af2d6ff
-	# Total:        15G
-	# Used:         8.4G
-	# Available:    5.7G
-	# Serverfiles:  961M
-
-	{
-		echo -e ""
-		echo -e "Storage"
-		echo -e "================================="
-		echo -e "Filesystem: ${filesystem}"
-		echo -e "Total: ${totalspace}"
-		echo -e "Used: ${usedspace}"
-		echo -e "Available: ${availspace}"
-		echo -e "Serverfiles: ${serverfilesdu}"
-		if [ -d "${backupdir}" ]; then
-			echo -e "Backups: ${backupdirdu}"
-		fi
-	} | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"| tee -a "${emaillog}" > /dev/null 2>&1
-}
-
-fn_details_gameserver(){
-	#
-	# Quake Live Server Details
-	# =====================================
-	# Server name:      ql-server
-	# Server IP:        1.2.3.4:27960
-	# RCON password:    CHANGE_ME
-	# Server password:  NOT SET
-	# Maxplayers:		16
-	# Status:           OFFLINE
-
-	{
-		echo -e ""
-		echo -e "${gamename} Server Details"
-		echo -e "================================="
-		# Server name
-		echo -e "Server name: ${servername}"
-
-		# Server ip
-		echo -e "Server IP: ${ip}:${port}"
-
-		# Server password
-		if [ -n "${serverpassword}" ]; then
-			echo -e "Server password: ********"
-		fi
-
-		# RCON password
-		if [ -n "${rconpassword}" ]; then
-			echo -e "RCON password: ********"
-		fi
-
-		# Admin password
-		if [ -n "${adminpassword}" ]; then
-			echo -e "Admin password: ********"
-		fi
-
-		# Stats password (Quake Live)
-		if [ -n "${statspassword}" ]; then
-			echo -e "Stats password: ********"
-		fi
-
-		# Maxplayers
-		if [ -n "${maxplayers}" ]; then
-			echo -e "Maxplayers: ${maxplayers}"
-		fi
-
-		# Game mode
-		if [ -n "${gamemode}" ]; then
-			echo -e "Game mode: ${gamemode}"
-		fi
-
-		# Game world
-		if [ -n "${gameworld}" ]; then
-			echo -e "Game world: ${gameworld}"
-		fi
-
-		# Tick rate
-		if [ -n "${tickrate}" ]; then
-			echo -e "Tick rate: ${tickrate}"
-		fi
-
-		# TeamSpeak dbplugin
-		if [ -n "${dbplugin}" ]; then
-			echo -e "dbplugin: ${dbplugin}"
-		fi
-
-		# Online status
-		if [ "${status}" == "0" ]; then
-			echo -e "Status: OFFLINE"
-		else
-			echo -e "Status: ONLINE"
-		fi
-	} | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"| tee -a "${emaillog}" > /dev/null 2>&1
-}
-
-fn_alert_email_template_logs(){
-	{
-	echo -e ""
-	echo -e "${servicename} Logs"
-	echo -e "================================="
-
-	if [ -n "${lgsmlog}" ]; then
-		echo -e "\nScript log\n==================="
-		if [ ! "$(ls -A ${lgsmlogdir})" ]; then
-			echo "${lgsmlogdir} (NO LOG FILES)"
-		elif [ ! -s "${lgsmlog}" ]; then
-			echo "${lgsmlog} (LOG FILE IS EMPTY)"
-		else
-			echo "${lgsmlog}"
-			tail -25 "${lgsmlog}"
-		fi
-		echo ""
-	fi
-
-	if [ -n "${consolelog}" ]; then
-		echo -e "\nConsole log\n===================="
-		if [ ! "$(ls -A ${consolelogdir})" ]; then
-			echo "${consolelogdir} (NO LOG FILES)"
-		elif [ ! -s "${consolelog}" ]; then
-			echo "${consolelog} (LOG FILE IS EMPTY)"
-		else
-			echo "${consolelog}"
-			tail -25 "${consolelog}" | awk '{ sub("\r$", ""); print }'
-		fi
-		echo ""
-	fi
-
-	if [ -n "${gamelogdir}" ]; then
-		echo -e "\nServer log\n==================="
-		if [ ! "$(ls -A ${gamelogdir})" ]; then
-			echo "${gamelogdir} (NO LOG FILES)"
-		else
-			echo "${gamelogdir}"
-			tail "${gamelogdir}"/* | grep -v "==>" | sed '/^$/d' | tail -25
-		fi
-		echo ""
-	fi
-
-	} | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"| tee -a "${emaillog}" > /dev/null 2>&1
-}
-
-fn_print_dots "Sending alert: ${email}"
-fn_script_log_info "Sending alert: ${email}"
-info_distro.sh
-info_config.sh
-info_glibc.sh
-check_ip.sh
-
-emaillog="${emaillog}"
-if [ -f "${emaillog}" ]; then
-	rm "${emaillog}"
-fi
-fn_details_email
-fn_details_os
-fn_details_performance
-fn_details_disk
-fn_details_gameserver
-fn_alert_email_template_logs
 if [ -n "${emailfrom}" ]; then
 if [ -n "${emailfrom}" ]; then
-	mail -s "${alertsubject}" -r "${emailfrom}" "${email}" < "${emaillog}"
+	mail -s "${alertsubject}" -r "${emailfrom}" "${email}" < "${alertlog}"
 else
 else
-	mail -s "${alertsubject}" "${email}" < "${emaillog}"
+	mail -s "${alertsubject}" "${email}" < "${alertlog}"
 fi
 fi
 exitcode=$?
 exitcode=$?
 if [ "${exitcode}" == "0" ]; then
 if [ "${exitcode}" == "0" ]; then
-	fn_print_ok_nl "Sending alert: ${email}"
-	fn_script_log_pass "Sending alert: ${email}"
+	fn_print_ok_nl "Sending Email alert: ${email}"
+	fn_script_log_pass "Sending Email alert: ${email}"
 else
 else
-	fn_print_fail_nl "Sending alert: ${email}"
-	fn_script_log_fatal "Sending alert: ${email}"
+	fn_print_fail_nl "Sending Email alert: ${email}"
+	fn_script_log_fatal "Sending Email alert: ${email}"
 fi
 fi

+ 30 - 0
lgsm/functions/alert_ifttt.sh

@@ -0,0 +1,30 @@
+#!/bin/bash
+# LinuxGSM alert_ifttt.sh function
+# Author: Daniel Gibbs
+# Website: https://gameservermanagers.com
+# Description: Sends IFTTT alert.
+
+local commandname="ALERT"
+local commandaction="Alert"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
+json=$(cat <<EOF
+{
+	"value1": "${servicename}",
+	"value2": "${alertsubject}",
+	"value3": "Message\n${alertbody}\n\nGame\n${gamename}\n\nServer name\n${servername}\n\nHostname\n${HOSTNAME}\n\nServer IP\n${ip}:${port}\n\nMore info\n${alerturl}"
+}
+EOF
+)
+
+fn_print_dots "Sending IFTTT alert"
+sleep 0.5
+iftttsend=$(${curlpath} -sSL -H "Content-Type: application/json" -X POST -d """${json}""" "https://maker.ifttt.com/trigger/${iftttevent}/with/key/${ifttttoken}"|grep "Bad Request")
+
+if [ -n "${iftttsend}" ]; then
+	fn_print_fail_nl "Sending IFTTT alert: ${pushbulletsend}"
+	fn_script_log_fatal "Sending IFTTT alert: ${pushbulletsend}"
+else
+	fn_print_ok_nl "Sending IFTTT alert"
+	fn_script_log_pass "Sent IFTTT alert"
+fi

+ 28 - 0
lgsm/functions/alert_mailgun.sh

@@ -0,0 +1,28 @@
+#!/bin/bash
+# LinuxGSM alert_mailgun.sh function
+# Author: Daniel Gibbs
+# Website: https://gameservermanagers.com
+# Description: Sends Mailgun Email alert.
+
+local commandname="ALERT"
+local commandaction="Alert"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
+fn_print_dots "Sending Email alert: Mailgun: ${email}"
+sleep 0.5
+
+mailgunsend=$(curl -s --user "api:${mailguntoken}" \
+-F from="LinuxGSM <${mailgunemailfrom}>" \
+-F to="LinuxGSM Admin <${mailgunemail}>" \
+-F subject="${alertemoji} ${alertsubject} ${alertemoji}" \
+-F o:tag='alert' \
+-F o:tag='LinuxGSM' \
+-F text="$(cat ${alertlog})" https://api.mailgun.net/v3/${mailgundomain}/messages)
+
+if [ -z "${mailgunsend}" ]; then
+	fn_print_fail_nl "Sending Email alert: Mailgun: ${email}"
+	fn_script_log_fatal "Sending Email alert: Mailgun: ${email}"
+else
+	fn_print_ok_nl "Sending Email alert: Mailgun: ${email}"
+	fn_script_log_pass "Sending Email alert: Mailgun: ${email}"
+fi

+ 15 - 28
lgsm/functions/alert_pushbullet.sh

@@ -2,43 +2,30 @@
 # LinuxGSM alert_pushbullet.sh function
 # LinuxGSM alert_pushbullet.sh function
 # Author: Daniel Gibbs
 # Author: Daniel Gibbs
 # Website: https://gameservermanagers.com
 # Website: https://gameservermanagers.com
-# Description: Sends Pushbullet alert including the server status.
+# Description: Sends Pushbullet Messenger alert.
 
 
 local commandname="ALERT"
 local commandname="ALERT"
 local commandaction="Alert"
 local commandaction="Alert"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 
-# converts text to ascii then passes to curl. allowing special characters to be sent e.g %
-# http://stackoverflow.com/a/10660730
-fn_rawurlencode() {
-  local string="${1}"
-  local strlen=${#string}
-  local encoded=""
-  local pos c o
-
-  for (( pos=0 ; pos<strlen ; pos++ )); do
-     c=${string:$pos:1}
-     case "$c" in
-        [-_.~a-zA-Z0-9] ) o="${c}" ;;
-        * )               printf -v o '%%%02x' "'$c"
-     esac
-     encoded+="${o}"
-  done
-  echo "${encoded}"    # You can either set a return variable (FASTER)
-  REPLY="${encoded}"   #+or echo the result (EASIER)... or both... :p
+json=$(cat <<EOF
+{
+	"channel_tag": "${channeltag}",
+	"type": "note",
+	"title": "${alertemoji} ${alertsubject} ${alertemoji}",
+	"body": "Message\n${alertbody}\n\nGame\n${gamename}\n\nServer name\n${servername}\n\nHostname\n${HOSTNAME}\n\nServer IP\n${ip}:${port}\n\nMore info\n${alerturl}"
 }
 }
-
-pbalertbody=$(fn_rawurlencode "${alertbody}"; echo ${REPLY})
-pbalertsubject=$(fn_rawurlencode "${alertsubject}"; echo ${REPLY})
+EOF
+)
 
 
 fn_print_dots "Sending Pushbullet alert"
 fn_print_dots "Sending Pushbullet alert"
-sleep 1
-pushbulletsend=$(curl --silent -u """${pushbullettoken}"":" -d channel_tag="${channeltag}" -d type="note" -d body="${pbalertbody}" -d title="${pbalertsubject}" 'https://api.pushbullet.com/v2/pushes'|grep -o invalid_access_token|uniq)
+sleep 0.5
+pushbulletsend=$(${curlpath} -sSL -u """${pushbullettoken}"":" -H "Content-Type: application/json" -X POST -d """${json}""" "https://api.pushbullet.com/v2/pushes" | grep "error_code")
 
 
-if [ "${pushbulletsend}" == "invalid_access_token" ]; then
-	fn_print_fail_nl "Sending Pushbullet alert: invalid_access_token"
-	fn_script_log_fatal "Sending Pushbullet alert: invalid_access_token"
+if [ -n "${pushbulletsend}" ]; then
+	fn_print_fail_nl "Sending Pushbullet alert: ${pushbulletsend}"
+	fn_script_log_fatal "Sending Pushbullet alert: ${pushbulletsend}"
 else
 else
 	fn_print_ok_nl "Sending Pushbullet alert"
 	fn_print_ok_nl "Sending Pushbullet alert"
 	fn_script_log_pass "Sent Pushbullet alert"
 	fn_script_log_pass "Sent Pushbullet alert"
-fi
+fi

+ 35 - 0
lgsm/functions/alert_pushover.sh

@@ -0,0 +1,35 @@
+#!/bin/bash
+# LinuxGSM alert_pushover.sh function
+# Author: Daniel Gibbs
+# Website: https://gameservermanagers.com
+# Description: Sends Pushover alert.
+
+local commandname="ALERT"
+local commandaction="Alert"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
+fn_print_dots "Sending Pushover alert"
+sleep 0.5
+
+# Different alerts are given different priorities and notification sounds
+if [ "${alertsound}" == "1" ];then
+	alertsound=""
+	alertpriority="0"
+elif [ "${alertsound}" == "2" ];then
+	# restarted
+	alertsound="siren"
+	alertpriority="1"
+else
+	alertsound=""
+	alertpriority="0"
+fi
+
+pushoversend=$(${curlpath} -sS -F token="${pushovertoken}" -F user="${pushoveruserkey}" -F html="1" -F sound="${alertsound}"  -F priority="${alertpriority}" -F title="${alertemoji} ${alertsubject} ${alertemoji}" -F message=" <b>Message</b><br>${alertbody}<br><br><b>Game</b><br>${gamename}<br><br><b>Server name</b><br>${servername}<br><br><b>Hostname</b><br>${HOSTNAME}<br><br><b>Server IP</b><br><a href='https://www.gametracker.com/server_info/${ip}:${port}'>${ip}:${port}</a><br><br><b>More info</b><br><a href='${alerturl}'>${alerturl}</a>" "https://api.pushover.net/1/messages.json"|grep errors)
+
+if [ -n "${pushoversend}" ]; then
+	fn_print_fail_nl "Sending Pushover alert: ${pushoversend}"
+	fn_script_log_fatal "Sending Pushover alert: ${pushoversend}"
+else
+	fn_print_ok_nl "Sending Pushover alert"
+	fn_script_log_pass "Sent Pushover alert"
+fi

+ 30 - 0
lgsm/functions/alert_telegram.sh

@@ -0,0 +1,30 @@
+#!/bin/bash
+# LinuxGSM alert_telegram.sh function
+# Author: Bennet Becker <bennet@becker-dd.de>
+# Website: https://bytegaming.de
+# Description: Sends Telegram Messenger alert.
+
+local commandname="ALERT"
+local commandaction="Alert"
+local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+
+json=$(cat <<EOF
+{
+	"chat_id": "${telegramchatid}",
+	"parse_mode": "HTML",
+	"text": "${alertemoji} <b>${alertsubject}</b> ${alertemoji}\n\n<b>Message</b>\n${alertbody}\n\n<b>Game</b>\n${gamename}\n\n<b>Server name</b>\n${servername}\n\n<b>Hostname</b>\n${HOSTNAME}\n\n<b>Server IP</b>\n<a href='https://www.gametracker.com/server_info/${ip}:${port}'>${ip}:${port}</a>\n\n<b>More info</b>\n<a href='${alerturl}'>${alerturl}</a>",
+	"disable_web_page_preview": "yes",
+EOF
+)
+
+fn_print_dots "Sending Telegram alert"
+sleep 0.5
+telegramsend=$(${curlpath} -sSL -H "Content-Type: application/json" -X POST -d """${json}""" "https://api.telegram.org/bot${telegramtoken}/sendMessage" | grep "error_code")
+
+if [ -n "${telegramsend}" ]; then
+	fn_print_fail_nl "Sending Telegram alert: ${telegramsend}"
+	fn_script_log_fatal "Sending Telegram alert: ${telegramsend}"
+else
+	fn_print_ok_nl "Sending Telegram alert"
+	fn_script_log_pass "Sent Telegram alert"
+fi

+ 1 - 1
lgsm/functions/check.sh

@@ -37,7 +37,7 @@ do
 	fi
 	fi
 done
 done
 
 
-local allowed_commands_array=( command_backup.sh command_console.sh command_debug.sh command_details.sh command_unreal2_maps.sh command_ut99_maps.sh command_monitor.sh command_start.sh command_stop.sh command_update.sh command_validate.sh command_update_functions.sh command_email_test.sh command_mods_install.sh command_mods_update.sh command_mods_remove.sh command_wipe.sh )
+local allowed_commands_array=( command_backup.sh command_console.sh command_debug.sh command_details.sh command_unreal2_maps.sh command_fastdl.sh command_mods_install.sh command_mods_remove.sh command_mods_update.sh command_monitor.sh command_postdetails.sh command_restart.sh command_start.sh command_stop.sh command_test_alert.sh command_ts3_server_pass.sh command_update.sh command_update_functions.sh command_validate.sh command_wipe.sh command_unreal2_maps.sh command_ut99maps.sh)
 for allowed_command in "${allowed_commands_array[@]}"
 for allowed_command in "${allowed_commands_array[@]}"
 do
 do
 	if [ "${allowed_command}" == "${function_selfname}" ]; then
 	if [ "${allowed_command}" == "${function_selfname}" ]; then

+ 1 - 1
lgsm/functions/command_debug.sh

@@ -29,7 +29,7 @@ fn_print_header
 echo -e "${blue}Distro:\t${default}${distroname}"
 echo -e "${blue}Distro:\t${default}${distroname}"
 echo -e "${blue}Arch:\t${default}${arch}"
 echo -e "${blue}Arch:\t${default}${arch}"
 echo -e "${blue}Kernel:\t${default}${kernel}"
 echo -e "${blue}Kernel:\t${default}${kernel}"
-echo -e "${blue}Hostname:\t${default}$HOSTNAME"
+echo -e "${blue}Hostname:\t${default}${HOSTNAME}"
 echo -e "${blue}tmux:\t${default}${tmuxv}"
 echo -e "${blue}tmux:\t${default}${tmuxv}"
 echo -e "${blue}Avg Load:\t${default}${load}"
 echo -e "${blue}Avg Load:\t${default}${load}"
 echo -e "${blue}Free Memory:\t${default}${physmemfree}"
 echo -e "${blue}Free Memory:\t${default}${physmemfree}"

+ 21 - 926
lgsm/functions/command_details.sh

@@ -9,931 +9,26 @@ local commandname="DETAILS"
 local commandaction="Details"
 local commandaction="Details"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 
-# Standard Details
-# This applies to all engines
-
-fn_details_os(){
-	#
-	# Distro Details
-	# =====================================
-	# Distro:    Ubuntu 14.04.4 LTS
-	# Arch:      x86_64
-	# Kernel:    3.13.0-79-generic
-	# Hostname:  hostname
-	# tmux:      tmux 1.8
-	# GLIBC:     2.19
-
-	echo -e ""
-	echo -e "${lightyellow}Distro Details${default}"
-	printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
-	{
-		echo -e "${blue}Distro:\t${default}${distroname}"
-		echo -e "${blue}Arch:\t${default}${arch}"
-		echo -e "${blue}Kernel:\t${default}${kernel}"
-		echo -e "${blue}Hostname:\t${default}$HOSTNAME"
-		echo -e "${blue}tmux:\t${default}${tmuxv}"
-		echo -e "${blue}GLIBC:\t${default}${glibcversion}"
-	} | column -s $'\t' -t
-}
-
-fn_details_performance(){
-	#
-	# Performance
-	# =====================================
-	# Uptime:    55d, 3h, 38m
-	# Avg Load:  1.00, 1.01, 0.78
-	#
-	# Mem:       total   used   free  cached
-	# Physical:  741M    656M   85M   256M
-	# Swap:      0B      0B     0B
-
-	echo -e ""
-	echo -e "${lightyellow}Performance${default}"
-	printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
-	{
-		echo -e "${blue}Uptime:\t${default}${days}d, ${hours}h, ${minutes}m"
-		echo -e "${blue}Avg Load:\t${default}${load}"
-	} | column -s $'\t' -t
-	echo -e ""
-	{
-		echo -e "${blue}Mem:\t${blue}total\t used\t free\t cached${default}"
-		echo -e "${blue}Physical:\t${default}${physmemtotal}\t${physmemused}\t${physmemfree}\t${physmemcached}${default}"
-		echo -e "${blue}Swap:\t${default}${swaptotal}\t${swapused}\t${swapfree}${default}"
-	} | column -s $'\t' -t
-}
-
-fn_details_disk(){
-	#
-	# Storage
-	# =====================================
-	# Filesystem:   /dev/disk/by-uuid/320c8edd-a2ce-4a23-8c9d-e00a7af2d6ff
-	# Total:        15G
-	# Used:         8.4G
-	# Available:    5.7G
-	# LinuxGSM Total:	1G
-	# Serverfiles:  961M
-	# Backups:  	2G
-
-	echo -e ""
-	echo -e "${lightyellow}Storage${default}"
-	printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
-	{
-		echo -e "${blue}Filesystem:\t${default}${filesystem}"
-		echo -e "${blue}Total:\t${default}${totalspace}"
-		echo -e "${blue}Used:\t${default}${usedspace}"
-		echo -e "${blue}Available:\t${default}${availspace}"
-		echo -e "${blue}LinuxGSM Total:\t${default}${rootdirdu}"
-		echo -e "${blue}Serverfiles:\t${default}${serverfilesdu}"
-		if [ -d "${backupdir}" ]; then
-			echo -e "${blue}Backups:\t${default}${backupdirdu}"
-		fi
-	} | column -s $'\t' -t
-}
-
-fn_details_gameserver(){
-	#
-	# Quake Live Server Details
-	# =====================================
-	# Server name:      ql-server
-	# Server IP:        1.2.3.4:27960
-	# RCON password:    CHANGE_ME
-	# Server password:  NOT SET
-	# Maxplayers:		16
-	# Status:           OFFLINE
-
-	echo -e ""
-	echo -e "${lightgreen}${gamename} Server Details${default}"
-	printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
-	{
-		# Server name
-		if [ -n "${servername}" ]; then
-			echo -e "${blue}Server name:\t${default}${servername}"
-		fi
-
-		# Branch
-		if [ -n "${branch}" ]; then
-			echo -e "${blue}Branch:\t${default}${branch}"
-		fi
-
-		# Server ip
-		echo -e "${blue}Server IP:\t${default}${ip}:${port}"
-
-		# Server password
-		if [ -n "${serverpassword}" ]; then
-			echo -e "${blue}Server password:\t${default}${serverpassword}"
-		fi
-
-		# RCON password
-		if [ -n "${rconpassword}" ]; then
-			echo -e "${blue}RCON password:\t${default}${rconpassword}"
-		fi
-
-		# RCON web (Rust)
-		if [ -n "${rconweb}" ]; then
-			echo -e "${blue}RCON web:\t${default}${rconweb}"
-		fi
-
-		# Admin password
-		if [ -n "${adminpassword}" ]; then
-			echo -e "${blue}Admin password:\t${default}${adminpassword}"
-		fi
-
-		# Stats password (Quake Live)
-		if [ -n "${statspassword}" ]; then
-			echo -e "${blue}Stats password:\t${default}${statspassword}"
-		fi
-
-		# Maxplayers
-		if [ -n "${maxplayers}" ]; then
-			echo -e "${blue}Maxplayers:\t${default}${maxplayers}"
-		fi
-
-		# Game mode
-		if [ -n "${gamemode}" ]; then
-			echo -e "${blue}Game mode:\t${default}${gamemode}"
-		fi
-
-		# Game world
-		if [ -n "${gameworld}" ]; then
-			echo -e "${blue}Game world:\t${default}${gameworld}"
-		fi
-
-		# Tick rate
-		if [ -n "${tickrate}" ]; then
-			echo -e "${blue}Tick rate:\t${default}${tickrate}"
-		fi
-
-		# Sharding (Don't Starve Together)
-		if [ -n "${sharding}" ]; then
-			echo -e "${blue}Sharding:\t${default}${sharding}"
-		fi
-
-		# Master (Don't Starve Together)
-		if [ -n "${master}" ]; then
-			echo -e "${blue}Master:\t${default}${master}"
-		fi
-
-		# Shard (Don't Starve Together)
-		if [ -n "${shard}" ]; then
-			echo -e "${blue}Shard:\t${default}${shard}"
-		fi
-
-		# Cluster (Don't Starve Together)
-		if [ -n "${cluster}" ]; then
-			echo -e "${blue}Cluster:\t${default}${cluster}"
-		fi
-
-		# Cave (Don't Starve Together)
-		if [ -n "${cave}" ]; then
-			echo -e "${blue}Cave:\t${default}${cave}"
-		fi
-
-		# Creativemode (Hurtworld)
-		if [ -n "${creativemode}" ]; then
-			echo -e "${blue}Creativemode:\t${default}${creativemode}"
-		fi
-
-		# TeamSpeak dbplugin
-		if [ -n "${dbplugin}" ]; then
-			echo -e "${blue}dbplugin:\t${default}${dbplugin}"
-		fi
-
-		# ASE (Multi Theft Auto)
-		if [ -n "${ase}" ]; then
-			echo -e "${blue}ASE:\t${default}${ase}"
-		fi
-
-		# Save interval (Rust)
-		if [ -n "${saveinterval}" ]; then
-			echo -e "${blue}ASE:\t${default}${saveinterval} s"
-		fi
-
-		# Random map rotation mode (Squad)
-		if [ -n "${randommapmode}" ]; then
-			echo -e "${blue}Map rotation:\t${default}${randommapmode}"
-		fi
-
-		# Online status
-		if [ "${status}" == "0" ]; then
-			echo -e "${blue}Status:\t${red}OFFLINE${default}"
-		else
-			echo -e "${blue}Status:\t${green}ONLINE${default}"
-		fi
-	} | column -s $'\t' -t
-	echo -e ""
-}
-
-fn_details_script(){
-	#
-	# qlserver Script Details
-	# =====================================
-	# Service name:        ql-server
-	# qlserver version:    150316
-	# User:                lgsm
-	# Email alert:         off
-	# Update on start:     off
-	# Location:            /home/lgsm/qlserver
-	# Config file:         /home/lgsm/qlserver/serverfiles/baseq3/ql-server.cfg
-
-	echo -e "${lightgreen}${selfname} Script Details${default}"
-	printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
-	{
-		# Service name
-		echo -e "${blue}Service name:\t${default}${servicename}"
-
-		# Script version
-		if [ -n "${version}" ]; then
-			echo -e "${blue}${selfname} version:\t${default}${version}"
-		fi
-
-		# User
-		echo -e "${blue}User:\t${default}$(whoami)"
-
-		# GLIBC required
-		if [ -n "${glibcrequired}" ]; then
-			if [ "${glibcrequired}" == "NOT REQUIRED" ]; then
-					:
-			elif [ "${glibcrequired}" == "UNKNOWN" ]; then
-				echo -e "${blue}GLIBC required:\t${red}${glibcrequired}"
-			elif [ "$(printf '%s\n'${glibcrequired}'\n' ${glibcversion} | sort -V | head -n 1)" != "${glibcrequired}" ]; then
-				if [ "${glibcfix}" == "yes" ]; then
-					echo -e "${blue}GLIBC required:\t${red}${glibcrequired} ${default}(${green}Using GLIBC fix${default})"
-				else
-					echo -e "${blue}GLIBC required:\t${red}${glibcrequired} ${default}(${red}GLIBC version too old${default})"
-				fi
-			else
-				echo -e "${blue}GLIBC required:\t${green}${glibcrequired}${default}"
-			fi
-		fi
-
-		# Email alert
-		echo -e "${blue}Email alert:\t${default}${emailalert}"
-
-		# Pushbullet alert
-		echo -e "${blue}Pushbullet alert:\t${default}${pushbulletalert}"
-
-		# Update on start
-		if [ -n "${updateonstart}" ]; then
-			echo -e "${blue}Update on start:\t${default}${updateonstart}"
-		fi
-
-		# Script location
-		echo -e "${blue}Location:\t${default}${rootdir}"
-
-		# Config file location
-		if [ -n "${servercfgfullpath}" ]; then
-			if [ -f "${servercfgfullpath}" ]; then
-				echo -e "${blue}Config file:\t${default}${servercfgfullpath}"
-			elif [ -d "${servercfgfullpath}" ]; then
-				echo -e "${blue}Config dir:\t${default}${servercfgfullpath}"
-			else
-				echo -e "${blue}Config file:\t${default}${red}${servercfgfullpath}${default} (${red}FILE MISSING${default})"
-			fi
-		fi
-
-		# Network config file location (ARMA 3)
-		if [ -n "${networkcfgfullpath}" ]; then
-			echo -e "${blue}Network config file:\t${default}${networkcfgfullpath}"
-		fi
-	} | column -s $'\t' -t
-}
-
-fn_details_backup(){
-	#
-	# Backups
-	# =====================================
-	# No. of backups:    1
-	# Latest backup:
-	#     date:          Fri May  6 18:34:19 UTC 2016
-	#     file:          /home/lgsm/qlserver/backups/ql-server-2016-05-06-183239.tar.gz
-	#     size:          945M
-
-	echo -e ""
-	echo -e "${lightgreen}Backups${default}"
-	printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
-	if [ ! -d "${backupdir}" ]||[ "${backupcount}" == "0" ]; then
-		echo -e "No Backups created"
-	else
-		{
-			echo -e "${blue}No. of backups:\t${default}${backupcount}"
-			echo -e "${blue}Latest backup:${default}"
-			if [ "${lastbackupdaysago}" == "0" ]; then
-				echo -e "${blue}    date:\t${default}${lastbackupdate} (less than 1 day ago)"
-			elif [ "${lastbackupdaysago}" == "1" ]; then
-				echo -e "${blue}    date:\t${default}${lastbackupdate} (1 day ago)"
-			else
-				echo -e "${blue}    date:\t${default}${lastbackupdate} (${lastbackupdaysago} days ago)"
-			fi
-			echo -e "${blue}    file:\t${default}${lastbackup}"
-			echo -e "${blue}    size:\t${default}${lastbackupsize}"
-		} | column -s $'\t' -t
-	fi
-}
-
-fn_details_commandlineparms(){
-	#
-	# Command-line Parameters
-	# =====================================
-	# ./run_server_x86.sh +set net_strict 1
-
-	echo -e ""
-	echo -e "${lightgreen}Command-line Parameters${default}"
-	printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
-	echo -e "${executable} ${parms}"
-}
-
-fn_details_ports(){
-	# Ports
-	# =====================================
-	# Change ports by editing the parameters in:
-	# /home/lgsm/qlserver/serverfiles/baseq3/ql-server.cfg
-
-	echo -e ""
-	echo -e "${lightgreen}Ports${default}"
-	printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
-	echo -e "Change ports by editing the parameters in:"
-
-	parmslocation="${red}UNKNOWN${default}"
-	# engines/games that require editing in the config file
-	local ports_edit_array=( "avalanche" "Ballistic Overkill" "dontstarve" "idtech2" "idtech3" "idtech3_ql" "lwjgl2" "Project Cars" "projectzomboid" "quake" "refractor" "realvirtuality" "renderware" "seriousengine35" "teeworlds" "terraria" "unreal" "unreal2" "unreal3" "TeamSpeak 3" "Mumble" "7 Days To Die" )
-	for port_edit in "${ports_edit_array[@]}"
-	do
-		if [ "${engine}" == "${port_edit}" ]||[ "${gamename}" == "${port_edit}" ]; then
-			parmslocation="${servercfgfullpath}"
-		fi
-	done
-	# engines/games that require editing in the script file
-	local ports_edit_array=( "goldsource" "Factorio" "Hurtworld" "iw3.0"  "Rust" "spark" "source" "starbound" "unreal4" "realvirtuality")
-	for port_edit in "${ports_edit_array[@]}"
-	do
-		if [ "${engine}" == "${port_edit}" ]||[ "${gamename}" == "${port_edit}" ]; then
-			parmslocation="${selfname}"
-		fi
-	done
-	echo -e "${parmslocation}"
-	echo -e ""
-	echo -e "Useful port diagnostic command:"
-}
-
-fn_details_statusbottom(){
-	echo -e ""
-	if [ "${status}" == "0" ]; then
-		echo -e "${blue}Status:\t${red}OFFLINE${default}"
-	else
-		echo -e "${blue}Status:\t${green}ONLINE${default}"
-	fi
-	echo -e ""
-}
-
-# Engine Specific details
-
-fn_details_ark(){
-	echo -e "netstat -atunp | grep ShooterGame"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\tudp"
-		# Don't do arithmetics if ever the port wasn't a numeric value
-		if [ "${port}" -eq "${port}" ]; then
-			echo -e "> RAW\tINBOUND\t$((port+1))\tudp"
-		fi
-		echo -e "> Query\tINBOUND\t${queryport}\tudp"
-		echo -e "> RCON\tINBOUND\t${rconport}\ttcp"
-	} | column -s $'\t' -t
-}
-
-fn_details_ballisticoverkill(){
-	echo -e "netstat -atunp | grep BODS.x86"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game/RCON\tINBOUND\t${port}\tudp"
-		echo -e "> Query\tINBOUND\t${queryport}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_avalanche(){
-	echo -e "netstat -atunp | grep Jcmp-Server"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_cod(){
-	echo -e "netstat -atunp | grep cod_lnxded"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_coduo(){
-	echo -e "netstat -atunp | grep coduo_lnxded"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_cod2(){
-	echo -e "netstat -atunp | grep cod2_lnxded"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_cod4(){
-	echo -e "netstat -atunp"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_codwaw(){
-	echo -e "netstat -atunp | grep codwaw_lnxded"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_dontstarve(){
-	echo -e "netstat -atunp | grep dontstarve"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game: Server\tINBOUND\t${port}\tudp"
-		echo -e "> Game: Master\tINBOUND\t${masterport}\tudp"
-		echo -e "> Steam: Auth\tINBOUND\t${steamauthenticationport}\tudp"
-		echo -e "> Steam: Master\tINBOUND\t${steammasterserverport}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_factorio(){
-	echo -e "netstat -atunp | grep factorio"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\ttcp"
-	} | column -s $'\t' -t
-}
-
-fn_details_goldsource(){
-	echo -e "netstat -atunp | grep hlds_linux"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game/RCON\tINBOUND\t${port}\ttcp/udp"
-		echo -e "< Client\tOUTBOUND\t${clientport}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_hurtworld(){
-	echo -e "netstat -atunp | grep Hurtworld"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game/RCON\tINBOUND\t${port}\tudp"
-		echo -e "> Query\tINBOUND\t${queryport}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_minecraft(){
-	echo -e "netstat -atunp | grep java"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_mumble(){
-	echo -e "netstat -atunp | grep murmur"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Voice\tINBOUND\t${port}\tudp"
-		echo -e "> ServerQuery\tINBOUND\t${port}\ttcp"
-	} | column -s $'\t' -t
-}
-
-fn_details_projectcars(){
-	echo -e "netstat -atunp | grep DedicatedS"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\tudp"
-		echo -e "> Query\tINBOUND\t${queryport}\tudp"
-		echo -e "> Steam\tINBOUND\t${steamport}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_projectzomboid(){
-	echo -e "netstat -atunp | grep java"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_quake(){
-	echo -e "netstat -atunp | grep mvdsv"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_quake2(){
-	echo -e "netstat -atunp | grep quake2"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_quake3(){
-	echo -e "netstat -atunp | grep q3ded"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_quakelive(){
-	echo -e "netstat -atunp | grep qzeroded"
-	echo -e ""
-	if [ -z "${port}" ]||[ -z "${rconport}" ]||[ -z "${statsport}" ]; then
-		echo -e "${red}ERROR!${default} Missing/commented ports in ${servercfg}."
-		echo -e ""
-	fi
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\tudp"
-		echo -e "> Rcon\tINBOUND\t${rconport}\tudp"
-		echo -e "> Stats\tINBOUND\t${statsport}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_realvirtuality(){
-	echo -e "netstat -atunp | grep arma3server"
-	echo -e ""
-	# Default port
-	if [ -z "${port}" ]; then
-		port="2302"
-	fi
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\tudp"
-		# Don't do arithmetics if ever the port wasn't a numeric value
-		if [ "${port}" -eq "${port}" ]; then
-			echo -e "> Steam: Query\tINBOUND\t$((port+1))\tudp"
-			echo -e "> Steam: Master traffic\tINBOUND\t$((port+2))\tudp"
-			echo -e "> Undocumented Port\tINBOUND\t$((port+3))\tudp"
-		fi
-	} | column -s $'\t' -t
-}
-
-fn_details_refractor(){
-	echo -e "netstat -atunp | grep bf1942_lnxd"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game/Query\tINBOUND\t${port}\tudp"
-		echo -e "> Steam: Query\tINBOUND\t${queryport}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_rust(){
-	echo -e "netstat -atunp | grep Rust"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game/Query\tINBOUND\t${port}\ttcp/udp"
-		echo -e "> RCON\tINBOUND\t${rconport}\ttcp"
-	} | column -s $'\t' -t
-}
-
-fn_details_seriousengine35(){
-	echo -e "netstat -atunp | grep Sam3_Dedicate"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game/RCON\tINBOUND\t${port}\ttcp"
-		echo -e "> Query\tINBOUND\t${queryport}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_sdtd(){
-	echo -e "netstat -atunp | grep 7DaysToDie"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game/RCON\tINBOUND\t${port}\tudp"
-		echo -e "> Query\tINBOUND\t${queryport}\tudp"
-		echo -e "> WebAdmin\tINBOUND\t${webadminport}\ttcp"
-		echo -e "> Telnet\tINBOUND\t${telnetport}\ttcp"
-	} | column -s $'\t' -t
-	echo -e ""
-	echo -e "${lightgreen}${servername} WebAdmin${default}"
-	printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
-	{
-		echo -e "${blue}WebAdmin enabled:\t${default}${webadminenabled}"
-		echo -e "${blue}WebAdmin url:\t${default}http://${ip}:${webadminport}"
-		echo -e "${blue}WebAdmin password:\t${default}${webadminpass}"
-	} | column -s $'\t' -t
-	echo -e ""
-	echo -e "${lightgreen}${servername} Telnet${default}"
-	printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
-	{
-		echo -e "${blue}Telnet enabled:\t${default}${telnetenabled}"
-		echo -e "${blue}Telnet address:\t${default}${ip} ${telnetport}"
-		echo -e "${blue}Telnet password:\t${default}${telnetpass}"
-	} | column -s $'\t' -t
-}
-
-fn_details_source(){
-	echo -e "netstat -atunp | grep srcds_linux"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game/RCON\tINBOUND\t${port}\ttcp/udp"
-		echo -e "> SourceTV\tINBOUND\t${sourcetvport}\tudp"
-		echo -e "< Client\tOUTBOUND\t${clientport}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_spark(){
-	echo -e "netstat -atunp | grep server_linux3"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game/RCON\tINBOUND\t${port}\tudp"
-		echo -e "> Query\tINBOUND\t${queryport}\tudp"
-		echo -e "> WebAdmin\tINBOUND\t${webadminport}\ttcp"
-	} | column -s $'\t' -t
-	echo -e ""
-	echo -e "${lightgreen}${servername} WebAdmin${default}"
-	printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
-	{
-		echo -e "${blue}WebAdmin url:\t${default}http://${ip}:${webadminport}/index.html"
-		echo -e "${blue}WebAdmin username:\t${default}${webadminuser}"
-		echo -e "${blue}WebAdmin password:\t${default}${webadminpass}"
-	} | column -s $'\t' -t
-}
-
-fn_details_squad(){
-	echo -e "netstat -atunp | grep SquadServer"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\tudp"
-		echo -e "> Query\tINBOUND\t${queryport}\tudp"
-		echo -e "> RCON\tINBOUND\t${rconport}\ttcp"
-	} | column -s $'\t' -t
-}
-
-fn_details_starbound(){
-	echo -e "netstat -atunp | grep starbound"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\ttcp"
-		echo -e "> Query\tINBOUND\t${queryport}\ttcp"
-		echo -e "> Rcon\tINBOUND\t${rconport}\ttcp"
-	} | column -s $'\t' -t
-}
-
-fn_details_teamspeak3(){
-	echo -e "netstat -atunp | grep ts3server"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Voice\tINBOUND\t${port}\tudp"
-		echo -e "> ServerQuery\tINBOUND\t${queryport}\ttcp"
-		echo -e "> File transfer\tINBOUND\t${fileport}\ttcp"
-	} | column -s $'\t' -t
-}
-
-fn_details_teeworlds(){
-	echo -e "netstat -atunp | grep teeworlds_srv"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\ttcp"
-	} | column -s $'\t' -t
-}
-
-fn_details_terraria(){
-	echo -e "netstat -atunp | grep TerrariaServer"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\ttcp"
-	} | column -s $'\t' -t
-}
-
-fn_details_towerunite(){
-	echo -e "netstat -atunp | grep TowerServer"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tINBOUND\t${port}\ttcp"
-		# Don't do arithmetics if ever the port wasn't a numeric value
-		if [ "${port}" -eq "${port}" ]; then
-			echo -e "> Steam\tINBOUND\t$((port+1))\tudp"
-		fi
-		echo -e "> Query\tINBOUND\t${queryport}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_unreal(){
-	echo -e "netstat -atunp | grep ucc-bin"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL\tINI VARIABLE"
-		echo -e "> Game\tINBOUND\t${port}\tudp\tPort=${port}"
-		echo -e "> Query\tINBOUND\t${queryport}\tudp"
-		if [ "${engine}" == "unreal" ]; then
-			echo -e "< UdpLink Port (random)\tOUTBOUND\t${udplinkport}+\tudp"
-		fi
-		if [ "${engine}" != "unreal" ] && [ "${appid}" != "223250" ]; then
-			echo -e "> GameSpy query\tINBOUND\t${gsqueryport}\tudp\tOldQueryPortNumber=${gsqueryport}"
-		fi
-		if [ "${appid}" == "215360" ]; then
-			echo -e "< Master server\tOUTBOUND\t28852\ttcp/udp"
-		else
-			echo -e "< Master server\tOUTBOUND\t28900/28902\ttcp/udp"
-		fi
-		if [ "${appid}" ]; then
-			if [ "${appid}" == "223250" ]; then
-				echo -e "< Steam\tOUTBOUND\t20610\tudp"
-			else
-				echo -e "< Steam\tOUTBOUND\t20660\tudp"
-			fi
-		fi
-		echo -e "> WebAdmin\tINBOUND\t${webadminport}\ttcp\tListenPort=${webadminport}"
-	} | column -s $'\t' -t
-	echo -e ""
-	echo -e "${lightgreen}${servername} WebAdmin${default}"
-	printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
-	{
-		echo -e "${blue}WebAdmin enabled:\t${default}${webadminenabled}"
-		echo -e "${blue}WebAdmin url:\t${default}http://${ip}:${webadminport}"
-		echo -e "${blue}WebAdmin username:\t${default}${webadminuser}"
-		echo -e "${blue}WebAdmin password:\t${default}${webadminpass}"
-	} | column -s $'\t' -t
-}
-
-fn_details_ut3(){
-	echo -e "netstat -atunp | grep ut3-bin"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game/Query\tINBOUND\t${port}\ttcp/udp"
-	} | column -s $'\t' -t
-}
-
-fn_details_wolfensteinenemyterritory(){
-	echo -e "netstat -atunp | grep etded"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game/Query\tINBOUND\t${port}\tudp"
-	} | column -s $'\t' -t
-}
-
-fn_details_mta(){
-	echo -e "netstat -atunp | grep mta-server64"
-	echo -e ""
-	{
-		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
-		echo -e "> Game\tOUTBOUND\t${port}\tudp"
-		echo -e "> HTTP Server\tINBOUND\t${httpport}\ttcp"
-		if [ "${ase}" == "Enabled" ]; then
-			echo -e "> ASE Game_Monitor\tOUTBOUND\t$((${port} + 123))\tudp"
-		fi
-	} | column -s $'\t' -t
-}
-
 # Run checks and gathers details to display.
 # Run checks and gathers details to display.
-
-fn_display_details() {
-	check.sh
-	info_config.sh
-	info_distro.sh
-	info_glibc.sh
-	info_parms.sh
-	fn_details_os
-	fn_details_performance
-	fn_details_disk
-	fn_details_gameserver
-	fn_details_script
-	fn_details_backup
-	# Some game servers do not have parms.
-	if [ "${gamename}" != "TeamSpeak 3" ]&&[ "${engine}" != "avalanche" ]&&[ "${engine}" != "dontstarve" ]&&[ "${engine}" != "projectzomboid" ]&&[ "${engine}" != "renderware" ]; then
-		fn_parms
-		fn_details_commandlineparms
-	fi
-	fn_details_ports
-
-	# Display details depending on game or engine.
-	if [ "${engine}" == "avalanche" ]; then
-		fn_details_avalanche
-	elif [ "${engine}" == "refractor" ]; then
-		fn_details_refractor
-	elif [ "${engine}" == "dontstarve" ]; then
-		fn_details_dontstarve
-	elif [ "${engine}" == "goldsource" ]; then
-		fn_details_goldsource
-	elif [ "${engine}" == "lwjgl2" ]; then
-		fn_details_minecraft
-	elif [ "${engine}" == "projectzomboid" ]; then
-		fn_details_projectzomboid
-	elif [ "${engine}" == "realvirtuality" ]; then
-		fn_details_realvirtuality
-	elif [ "${engine}" == "seriousengine35" ]; then
-		fn_details_seriousengine35
-	elif [ "${engine}" == "source" ]; then
-		fn_details_source
-	elif [ "${engine}" == "spark" ]; then
-		fn_details_spark
-	elif [ "${engine}" == "starbound" ]; then
-		fn_details_starbound
-	elif [ "${engine}" == "teeworlds" ]; then
-		fn_details_teeworlds
-	elif [ "${engine}" == "terraria" ]; then
-		fn_details_terraria
-	elif [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then
-		fn_details_unreal
-	elif [ "${engine}" == "unreal3" ]; then
-		fn_details_ut3
-	elif [ "${gamename}" == "7 Days To Die" ]; then
-		fn_details_sdtd
-	elif [ "${gamename}" == "ARK: Survival Evolved" ]; then
-		fn_details_ark
-	elif [ "${gamename}" == "Ballistic Overkill" ]; then
-		fn_details_ballisticoverkill
-	elif [ "${gamename}" == "Call of Duty" ]; then
-		fn_details_cod
-	elif [ "${gamename}" == "Call of Duty: United Offensive" ]; then
-		fn_details_coduo
-	elif [ "${gamename}" == "Call of Duty 2" ]; then
-		fn_details_cod2
-	elif [ "${gamename}" == "Call of Duty 4" ]; then
-		fn_details_cod4
-	elif [ "${gamename}" == "Call of Duty: World at War" ]; then
-		fn_details_codwaw
-	elif [ "${gamename}" == "Factorio" ]; then
-		fn_details_factorio
-	elif [ "${gamename}" == "Hurtworld" ]; then
-		fn_details_hurtworld
-	elif [ "${gamename}" == "Project Cars" ]; then
-		fn_details_projectcars
-	elif [ "${gamename}" == "QuakeWorld" ]; then
-		fn_details_quake
-	elif [ "${gamename}" == "Quake 2" ]; then
-		fn_details_quake2
-	elif [ "${gamename}" == "Quake 3: Arena" ]; then
-		fn_details_quake3
-	elif [ "${gamename}" == "Quake Live" ]; then
-		fn_details_quakelive
-	elif [ "${gamename}" == "Squad" ]; then
-		fn_details_squad
-	elif [ "${gamename}" == "TeamSpeak 3" ]; then
-		fn_details_teamspeak3
-	elif [ "${gamename}" == "Tower Unite" ]; then
-		fn_details_towerunite
-	elif [ "${gamename}" == "Multi Theft Auto" ]; then
-		fn_details_mta
-	elif [ "${gamename}" == "Mumble" ]; then
-		fn_details_mumble
-	elif [ "${gamename}" == "Rust" ]; then
-		fn_details_rust
-	elif [ "${gamename}" == "Wolfenstein: Enemy Territory" ]; then
-		fn_details_wolfensteinenemyterritory
-	else
-		fn_print_error_nl "Unable to detect server engine."
-	fi
-
-	fn_details_statusbottom
-}
-
-if [ -z "${postdetails}" ] ;
-then
-  fn_display_details
-  core_exit.sh
+check.sh
+info_config.sh
+info_distro.sh
+info_glibc.sh
+info_parms.sh
+info_messages.sh
+fn_info_message_distro
+fn_info_message_performance
+fn_info_message_disk
+fn_info_message_gameserver
+fn_info_message_script
+fn_info_message_backup
+# Some game servers do not have parms.
+if [ "${gamename}" != "TeamSpeak 3" ]&&[ "${engine}" != "avalanche" ]&&[ "${engine}" != "dontstarve" ]&&[ "${engine}" != "projectzomboid" ]&&[ "${engine}" != "renderware" ]; then
+	fn_parms
+	fn_info_message_commandlineparms
 fi
 fi
+fn_info_message_ports
+fn_info_message_select_engine
+fn_info_message_statusbottom
+core_exit.sh
+

+ 42 - 73
lgsm/functions/command_postdetails.sh

@@ -9,10 +9,6 @@ local commandname="postdetails"
 local commandaction="Postdetails"
 local commandaction="Postdetails"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
 
 
-# postdetails variable affects the output of command_details.sh.  Setting
-# it here silences the output from sourcing command_details.sh.
-postdetails=yes
-
 # Set posttarget to the appropriately-defined post destination.
 # Set posttarget to the appropriately-defined post destination.
 
 
 # The options for posttarget are:
 # The options for posttarget are:
@@ -38,73 +34,42 @@ posttarget=${posttarget="https://hastebin.com"}
 # This, too, may be overridden from the command line at the top-level
 # This, too, may be overridden from the command line at the top-level
 postexpire="${postexpire="30D"}"
 postexpire="${postexpire="30D"}"
 
 
-# This file sources the command_details.sh file to leverage all
-# of the already-defined functions.  To keep the command_details.sh
-# from actually producing output, the main executable statements have
-# been wrapped in the equivalent of an ifdef clause, that looks
-# for the variable "postdetails" to be defined. -CedarLUG
-
 # source all of the functions defined in the details command
 # source all of the functions defined in the details command
-command_details.sh
-
-# redefine as command_details.sh changes them
-local commandname="postdetails"
-local commandaction="Postdetails"
-local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
+info_messages.sh
 
 
-fn_bad_tmpfile() {
-	echo "There was a problem creating a temporary file ${tmpfile}."
+fn_bad_postdetailslog() {
+	fn_print_fail_nl "Unable to create temporary file ${postdetailslog}."
 	core_exit.sh
 	core_exit.sh
 }
 }
 
 
 # Rather than a one-pass sed parser, default to using a temporary directory
 # Rather than a one-pass sed parser, default to using a temporary directory
-tmpfile="${tmpdir}/postdetails-$(date +"%Y-%d-%m_%H-%M-%S").tmp"
-
-touch "${tmpfile}" || fn_bad_tmpfile
-
-# fn_display_details is found in the command_details.sh file (which
-# was sourced above).  The output is parsed for passwords and other
-# confidential information. -CedarLUG
-
-# The numerous sed lines could certainly be condensed quite a bit,
-# but they are separated out to provide examples for how to add
-# additional criteria in a straight-forward manner.
-# (This was originally a sed one-liner.) -CedarLUG
-
-fn_display_details | sed -e 's/password="[^"]*/password="--stripped--/' |
-									sed -e 's/password "[^"]*/password "--stripped--/' |
-									sed -e 's/password: .*/password: --stripped--/' |
-									sed -e 's/gslt="[^"]*/gslt="--stripped--/' |
-									sed -e 's/gslt "[^"]*/gslt "--stripped--/' |
-									sed -e 's/pushbullettoken="[^"]*/pushbullettoken="--stripped--/' |
-									sed -e 's/pushbullettoken "[^"]*/pushbullettoken "--stripped--/' |
-									sed -e 's/authkey="[^"]*/authkey="--stripped--/' |
-									sed -e 's/authkey "[^"]*/authkey "--stripped--/' |
-									sed -e 's/authkey [A-Za-z0-9]\+/authkey --stripped--/' |
-									sed -e 's/rcts_strAdminPassword="[^"]*/rcts_strAdminPassword="--stripped--/' |
-									sed -e 's/rcts_strAdminPassword "[^"]*/rcts_strAdminPassword "--stripped--/' |
-									sed -e 's/sv_setsteamaccount [A-Za-z0-9]\+/sv_setsteamaccount --stripped--/' |
-									sed -e 's/sv_password="[^"]*/sv_password="--stripped--/' |
-									sed -e 's/sv_password "[^"]*/sv_password "--stripped--/' |
-									sed -e 's/zmq_stats_password="[^"]*/zmq_stats_password="--stripped--/' |
-									sed -e 's/zmq_stats_password "[^"]*/zmq_stats_password "--stripped--/' |
-									sed -e 's/zmq_rcon_password="[^"]*/zmq_rcon_password="--stripped--/' |
-									sed -e 's/zmq_rcon_password "[^"]*/zmq_rcon_password "--stripped--/' |
-									sed -e 's/pass="[^"]*/pass="--stripped--/' |
-									sed -e 's/pass "[^"]*/pass "--stripped--/' |
-									sed -e 's/rconServerPassword="[^"]*/rconServerPassword="--stripped--/' |
-									sed -e 's/rconServerPassword "[^"]*/rconServerPassword "--stripped--/' > "${tmpfile}"
-
-# strip off all console escape codes (colorization)
-sed -i -r "s/[\x1B,\x0B]\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]//g" "${tmpfile}"
-
-# If the gameserver uses anonymous steam credentials, leave them displayed
-# in the output.  Otherwise, strip these out as well.
-if ! grep -q "^steampass[= ]\"\"" "${tmpfile}" ; then
-	sed -i -e 's/steampass[= ]"[^"]*/steampass "--stripped--/' "${tmpfile}"
-fi
-if ! grep -q "^steamuser[= ]\"anonymous\"" "${tmpfile}" ; then
-	sed -i -e 's/steamuser[= ]"[^"]*/steamuser "--stripped--/' "${tmpfile}"
+if [ -n "${alertflag}" ]; then
+	postdetailslog="${alertlog}"
+else
+	touch "${postdetailslog}" || fn_bad_postdetailslog
+	{
+		# Run checks and gathers details to display.
+		check.sh
+		info_config.sh
+		info_distro.sh
+		info_glibc.sh
+		info_parms.sh
+		info_messages.sh
+		fn_info_message_distro
+		fn_info_message_performance
+		fn_info_message_disk
+		fn_info_message_gameserver
+		fn_info_message_script
+		fn_info_message_backup
+		# Some game servers do not have parms.
+		if [ "${gamename}" != "TeamSpeak 3" ]&&[ "${engine}" != "avalanche" ]&&[ "${engine}" != "dontstarve" ]&&[ "${engine}" != "projectzomboid" ]&&[ "${engine}" != "renderware" ]; then
+			fn_parms
+			fn_info_message_commandlineparms
+		fi
+		fn_info_message_ports
+		fn_info_message_select_engine
+		fn_info_message_statusbottom
+	} | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"| tee -a "${postdetailslog}" > /dev/null 2>&1
 fi
 fi
 
 
 if [ "${posttarget}" == "http://pastebin.com" ] ; then
 if [ "${posttarget}" == "http://pastebin.com" ] ; then
@@ -120,26 +85,30 @@ if [ "${posttarget}" == "http://pastebin.com" ] ; then
 				-F "post_key=${csrftoken}" -F "paste_expire_date=${postexpire}" \
 				-F "post_key=${csrftoken}" -F "paste_expire_date=${postexpire}" \
 				-F "paste_name=${gamename} Debug Info" \
 				-F "paste_name=${gamename} Debug Info" \
 				-F "paste_format=8" -F "paste_private=0" \
 				-F "paste_format=8" -F "paste_private=0" \
-				-F "paste_type=bash" -F "paste_code=<${tmpfile}" |
+				-F "paste_type=bash" -F "paste_code=<${postdetailslog}" |
 				awk '/^location: / { print $2 }' | sed "s/\n//g")
 				awk '/^location: / { print $2 }' | sed "s/\n//g")
 
 
 	 # Output the resulting link.
 	 # Output the resulting link.
 	fn_print_ok_nl "Posting details to pastbin.com for ${postexpire}"
 	fn_print_ok_nl "Posting details to pastbin.com for ${postexpire}"
-	echo "  Please share the following url for support: ${posttarget}${link}"
+	pdurl="${posttarget}${link}"
+	echo "  Please share the following url for support: ${pdurl}"
 elif [ "${posttarget}" == "https://hastebin.com" ] ; then
 elif [ "${posttarget}" == "https://hastebin.com" ] ; then
 	fn_print_dots "Posting details to hastebin.com"
 	fn_print_dots "Posting details to hastebin.com"
 	sleep 1
 	sleep 1
 	# hastebin is a bit simpler.  If successful, the returned result
 	# hastebin is a bit simpler.  If successful, the returned result
 	# should look like: {"something":"key"}, putting the reference that
 	# should look like: {"something":"key"}, putting the reference that
 	# we need in "key".  TODO - error handling. -CedarLUG
 	# we need in "key".  TODO - error handling. -CedarLUG
-	link=$(${curlpath} -H "HTTP_X_REQUESTED_WITH:XMLHttpRequest" -s -d "$(<${tmpfile})" "${posttarget}/documents" | cut -d\" -f4)
+	link=$(${curlpath} -H "HTTP_X_REQUESTED_WITH:XMLHttpRequest" -s -d "$(<${postdetailslog})" "${posttarget}/documents" | cut -d\" -f4)
 	fn_print_ok_nl "Posting details to hastebin.com for ${postexpire}"
 	fn_print_ok_nl "Posting details to hastebin.com for ${postexpire}"
-	echo "  Please share the following url for support: ${posttarget}/${link}"
+	pdurl="${posttarget}/${link}"
+	echo "  Please share the following url for support: ${pdurl}"
 else
 else
-	 fn_print_warn_nl Review the output in "${tmpfile}"
+	 fn_print_warn_nl "Review output in: ${postdetailslog}"
 	 core_exit.sh
 	 core_exit.sh
 fi
 fi
 
 
-# cleanup
-rm "${tmpfile}" || /bin/true
-core_exit.sh
+if [ -z "${alertflag}" ]; then
+	core_exit.sh
+else
+	alerturl="${pdurl}"
+fi

+ 27 - 10
lgsm/functions/core_functions.sh

@@ -63,14 +63,7 @@ fn_fetch_function
 
 
 command_postdetails.sh(){
 command_postdetails.sh(){
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
-tempffname="${functionfile}"
-# First, grab the command_postdetails.sh file
 fn_fetch_function
 fn_fetch_function
-# But then next, command_details.sh needs to also be pulled
-# because command_postdetails.sh sources its functions -CedarLUG
-functionfile="command_details.sh"
-fn_fetch_function
-functionfile="${tempffname}"
 }
 }
 
 
 command_details.sh(){
 command_details.sh(){
@@ -365,6 +358,10 @@ functionfile="${FUNCNAME}"
 fn_fetch_function
 fn_fetch_function
 }
 }
 
 
+info_messages.sh(){
+functionfile="${FUNCNAME}"
+fn_fetch_function
+}
 info_parms.sh(){
 info_parms.sh(){
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_fetch_function
 fn_fetch_function
@@ -387,11 +384,31 @@ functionfile="${FUNCNAME}"
 fn_fetch_function
 fn_fetch_function
 }
 }
 
 
+alert_ifttt.sh(){
+functionfile="${FUNCNAME}"
+fn_fetch_function
+}
+
+alert_mailgun.sh(){
+functionfile="${FUNCNAME}"
+fn_fetch_function
+}
+
 alert_pushbullet.sh(){
 alert_pushbullet.sh(){
 functionfile="${FUNCNAME}"
 functionfile="${FUNCNAME}"
 fn_fetch_function
 fn_fetch_function
 }
 }
 
 
+alert_pushover.sh(){
+functionfile="${FUNCNAME}"
+fn_fetch_function
+}
+
+alert_telegram.sh(){
+functionfile="${FUNCNAME}"
+fn_fetch_function
+}
+
 # Logs
 # Logs
 
 
 logs.sh(){
 logs.sh(){
@@ -561,14 +578,14 @@ functionfile="${FUNCNAME}"
 fn_fetch_function
 fn_fetch_function
 }
 }
 
 
+# Calls code required for legacy servers
+core_legacy.sh
+
 # Creates tmp dir if missing
 # Creates tmp dir if missing
 if [ ! -d "${tmpdir}" ]; then
 if [ ! -d "${tmpdir}" ]; then
 	mkdir -p "${tmpdir}"
 	mkdir -p "${tmpdir}"
 fi
 fi
 
 
-# Calls code required for legacy servers
-core_legacy.sh
-
 # Calls on-screen messages (bootstrap)
 # Calls on-screen messages (bootstrap)
 core_messages.sh
 core_messages.sh
 
 

+ 1 - 1
lgsm/functions/core_getopt.sh

@@ -148,7 +148,7 @@ fn_opt_usage(){
 	echo "Usage: $0 [option]"
 	echo "Usage: $0 [option]"
 	echo -e ""
 	echo -e ""
 	echo "${gamename} - Linux Game Server Manager - Version ${version}"
 	echo "${gamename} - Linux Game Server Manager - Version ${version}"
-	echo "https://gameservermanagers.com/${selfname}"
+	echo "https://gameservermanagers.com/${gameservername}"
 	echo -e ""
 	echo -e ""
 	echo -e "${lightyellow}Commands${default}"
 	echo -e "${lightyellow}Commands${default}"
 	# Display available commands
 	# Display available commands

+ 12 - 4
lgsm/functions/core_legacy.sh

@@ -21,10 +21,6 @@ if [ -z "${lgsmlog}" ]; then
 	lgsmlog="${scriptlog}"
 	lgsmlog="${scriptlog}"
 fi
 fi
 
 
-if [ -z "${lgsmlogdir}" ]; then
-	lgsmlogdir="${scriptlogdir}"
-fi
-
 if [ -z "${lgsmlogdate}" ]; then
 if [ -z "${lgsmlogdate}" ]; then
 	lgsmlogdate="${scriptlogdate}"
 	lgsmlogdate="${scriptlogdate}"
 fi
 fi
@@ -32,3 +28,15 @@ fi
 if [ -z "${steamcmddir}" ]; then
 if [ -z "${steamcmddir}" ]; then
 	steamcmddir="${rootdir}/steamcmd"
 	steamcmddir="${rootdir}/steamcmd"
 fi
 fi
+
+if [ -z "${lgsmdir}" ]; then
+	lgsmdir="${rootdir}/lgsm"
+fi
+
+if [ -z "${tmpdir}" ]; then
+	tmpdir="${lgsmdir}/tmp"
+fi
+
+if [ -z "${alertlog}" ]; then
+	alertlog="${emaillog}"
+fi

+ 12 - 12
lgsm/functions/core_messages.sh

@@ -29,9 +29,9 @@ fi
 fn_script_log(){
 fn_script_log(){
 	if [ -d "${lgsmlogdir}" ]; then
 	if [ -d "${lgsmlogdir}" ]; then
 		if [ -n "${commandname}" ]; then
 		if [ -n "${commandname}" ]; then
-			echo -e "$(date '+%b %d %H:%M:%S') ${servicename}: ${commandname}: ${1}" >> "${lgsmlog}"
+			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${servicename}: ${commandname}: ${1}" >> "${lgsmlog}"
 		else
 		else
-			echo -e "$(date '+%b %d %H:%M:%S') ${servicename}: ${1}" >> "${lgsmlog}"
+			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${servicename}: ${1}" >> "${lgsmlog}"
 		fi
 		fi
 	fi
 	fi
 }
 }
@@ -40,9 +40,9 @@ fn_script_log(){
 fn_script_log_pass(){
 fn_script_log_pass(){
 	if [ -d "${lgsmlogdir}" ]; then
 	if [ -d "${lgsmlogdir}" ]; then
 		if [ -n "${commandname}" ]; then
 		if [ -n "${commandname}" ]; then
-			echo -e "$(date '+%b %d %H:%M:%S') ${servicename}: ${commandname}: PASS: ${1}" >> "${lgsmlog}"
+			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${servicename}: ${commandname}: PASS: ${1}" >> "${lgsmlog}"
 		else
 		else
-			echo -e "$(date '+%b %d %H:%M:%S') ${servicename}: PASS: ${1}" >> "${lgsmlog}"
+			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${servicename}: PASS: ${1}" >> "${lgsmlog}"
 		fi
 		fi
 	fi
 	fi
 	exitcode=0
 	exitcode=0
@@ -52,9 +52,9 @@ fn_script_log_pass(){
 fn_script_log_fatal(){
 fn_script_log_fatal(){
 	if [ -d "${lgsmlogdir}" ]; then
 	if [ -d "${lgsmlogdir}" ]; then
 		if [ -n "${commandname}" ]; then
 		if [ -n "${commandname}" ]; then
-			echo -e "$(date '+%b %d %H:%M:%S') ${servicename}: ${commandname}: FATAL: ${1}" >> "${lgsmlog}"
+			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${servicename}: ${commandname}: FATAL: ${1}" >> "${lgsmlog}"
 		else
 		else
-			echo -e "$(date '+%b %d %H:%M:%S') ${servicename}: FATAL: ${1}" >> "${lgsmlog}"
+			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${servicename}: FATAL: ${1}" >> "${lgsmlog}"
 		fi
 		fi
 	fi
 	fi
 	exitcode=1
 	exitcode=1
@@ -64,9 +64,9 @@ fn_script_log_fatal(){
 fn_script_log_error(){
 fn_script_log_error(){
 	if [ -d "${lgsmlogdir}" ]; then
 	if [ -d "${lgsmlogdir}" ]; then
 		if [ -n "${commandname}" ]; then
 		if [ -n "${commandname}" ]; then
-			echo -e "$(date '+%b %d %H:%M:%S') ${servicename}: ${commandname}: ERROR: ${1}" >> "${lgsmlog}"
+			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${servicename}: ${commandname}: ERROR: ${1}" >> "${lgsmlog}"
 		else
 		else
-			echo -e "$(date '+%b %d %H:%M:%S') ${servicename}: ERROR: ${1}" >> "${lgsmlog}"
+			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${servicename}: ERROR: ${1}" >> "${lgsmlog}"
 		fi
 		fi
 	fi
 	fi
 	exitcode=2
 	exitcode=2
@@ -76,9 +76,9 @@ fn_script_log_error(){
 fn_script_log_warn(){
 fn_script_log_warn(){
 	if [ -d "${lgsmlogdir}" ]; then
 	if [ -d "${lgsmlogdir}" ]; then
 		if [ -n "${commandname}" ]; then
 		if [ -n "${commandname}" ]; then
-			echo -e "$(date '+%b %d %H:%M:%S') ${servicename}: ${commandname}: WARN: ${1}" >> "${lgsmlog}"
+			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${servicename}: ${commandname}: WARN: ${1}" >> "${lgsmlog}"
 		else
 		else
-			echo -e "$(date '+%b %d %H:%M:%S') ${servicename}: WARN: ${1}" >> "${lgsmlog}"
+			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${servicename}: WARN: ${1}" >> "${lgsmlog}"
 		fi
 		fi
 	fi
 	fi
 	exitcode=3
 	exitcode=3
@@ -88,9 +88,9 @@ fn_script_log_warn(){
 fn_script_log_info(){
 fn_script_log_info(){
 	if [ -d "${lgsmlogdir}" ]; then
 	if [ -d "${lgsmlogdir}" ]; then
 		if [ -n "${commandname}" ]; then
 		if [ -n "${commandname}" ]; then
-			echo -e "$(date '+%b %d %H:%M:%S') ${servicename}: ${commandname}: INFO: ${1}" >> "${lgsmlog}"
+			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${servicename}: ${commandname}: INFO: ${1}" >> "${lgsmlog}"
 		else
 		else
-			echo -e "$(date '+%b %d %H:%M:%S') ${servicename}: INFO: ${1}" >> "${lgsmlog}"
+			echo -e "$(date '+%b %d %H:%M:%S.%3N') ${servicename}: INFO: ${1}" >> "${lgsmlog}"
 		fi
 		fi
 	fi
 	fi
 }
 }

+ 2 - 0
lgsm/functions/fix.sh

@@ -44,6 +44,8 @@ if [ "${function_selfname}" != "command_install.sh" ]; then
 
 
 	if  [ "${gamename}" == "ARMA 3" ]; then
 	if  [ "${gamename}" == "ARMA 3" ]; then
 		fix_arma3.sh
 		fix_arma3.sh
+	elif [ "${shortname}" == "ark" ]; then
+		fix_ark.sh
 	elif [ "${gamename}" == "Counter-Strike: Global Offensive" ]; then
 	elif [ "${gamename}" == "Counter-Strike: Global Offensive" ]; then
 		fix_csgo.sh
 		fix_csgo.sh
 	elif [ "${gamename}" == "Don't Starve Together" ]; then
 	elif [ "${gamename}" == "Don't Starve Together" ]; then

+ 10 - 0
lgsm/functions/fix_ark.sh

@@ -0,0 +1,10 @@
+#!/bin/bash
+# LinuxGSM fix_ark.sh function
+# Author: Daniel Gibbs
+# Website: https://gameservermanagers.com
+# Description: Resolves various issues with ARK: Survival Evolved.
+
+# Symlinking the SteamCMD directory into the correct ARK directory so that the mods auto-management will work.
+if [ ! -d "${serverfiles}/Engine/Binaries/ThirdParty/SteamCMD/Linux" ]; then
+	ln -s "${steamcmddir}" "${serverfiles}/Engine/Binaries/ThirdParty/SteamCMD/Linux"
+fi

+ 12 - 7
lgsm/functions/info_config.sh

@@ -753,20 +753,25 @@ fn_info_config_squad(){
 		servername="${unavailable}"
 		servername="${unavailable}"
 		maxplayers="${unavailable}"
 		maxplayers="${unavailable}"
 	else
 	else
-		servername="$(cat ${servercfgfullpath} | grep "ServerName=" | cut -c13- | rev | cut -c3- | rev)"
-		maxplayers="$(cat ${servercfgfullpath} | grep "MaxPlayers=" | cut -c12- | tr -cd '[:digit:]')"
+		servername="$(cat ${servercfgfullpath} | grep "ServerName=" | sed -e 's/^[ \t]*//g' -e '/^#/d' -e 's/ServerName//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')"
+		maxplayers="$(cat ${servercfgfullpath} | grep "MaxPlayers=" | tr -cd '[:digit:]')"
 	fi
 	fi
 
 
 	if [ ! -f "${servercfgdir}/Rcon.cfg" ]; then
 	if [ ! -f "${servercfgdir}/Rcon.cfg" ]; then
 		rconport=${unavailable}
 		rconport=${unavailable}
 		rconpassword=${unavailable}
 		rconpassword=${unavailable}
 	else
 	else
-		rconport=$(cat ${servercfgdir}/Rcon.cfg | grep "Port=" | cut -c6- | tr -cd '[:digit:]')
-		rconpassword=$(cat ${servercfgdir}/Rcon.cfg | grep "Password=" | cut -c10-)
-		if [ -z "${rconpassword}" ]||[ ${#rconpassword} == 1 ]; then
-			rconpassword="${yellow}DISABLED${default}"
-		fi
+		rconport=$(cat ${servercfgdir}/Rcon.cfg | grep "Port=" | tr -cd '[:digit:]')
+		rconpassword=$(cat ${servercfgdir}/Rcon.cfg | grep "Password=" | sed -e 's/^[ \t]*//g' -e '/^\//d' -e 's/Password//g' | tr -d '=\";,:' | sed -e 's/^[ \t]*//' -e 's/[ \t]*$//')
+	fi
+
+	rconport=${rconport:-"0"}
+	if [ -z "${rconpassword}" ]||[ ${#rconpassword} == 1 ]; then
+		rconpassword="NOT SET"
 	fi
 	fi
+	servername=${servername:-"NOT SET"}
+	serverpassword=${serverpassword:-"NOT SET"}
+	maxplayers=${maxplayers:-"0"}
 }
 }
 
 
 # Just Cause 2
 # Just Cause 2

+ 3 - 0
lgsm/functions/info_glibc.sh

@@ -86,6 +86,9 @@ elif [ "${gamename}" == "Quake 3: Arena" ]; then
 elif [ "${gamename}" == "Quake Live" ]; then
 elif [ "${gamename}" == "Quake Live" ]; then
 	glibcrequired="2.15"
 	glibcrequired="2.15"
 	glibcfix="no"
 	glibcfix="no"
+elif [ "${gamename}" == "Squad" ]; then
+	glibcrequired="2.17"
+	glibcfix="no"
 elif [ "${gamename}" == "Sven Co-op" ]; then
 elif [ "${gamename}" == "Sven Co-op" ]; then
 	glibcrequired="2.18"
 	glibcrequired="2.18"
 	glibcfix="no"
 	glibcfix="no"

+ 1013 - 0
lgsm/functions/info_messages.sh

@@ -0,0 +1,1013 @@
+#!/bin/bash
+# LinuxGSM info_messages.sh function
+# Author: Daniel Gibbs
+# Website: https://gameservermanagers.com
+# Description: Defines server info messages for details, alerts.
+
+# Standard Details
+# This applies to all engines
+
+fn_info_message_head(){
+	echo -e ""
+	echo -e "${lightyellow}Summary${default}"
+	fn_messages_separator
+	echo -e "Message"
+	echo -e "${alertbody}"
+	echo -e ""
+	echo -e "Game"
+	echo -e "${gamename}"
+	echo -e ""
+	echo -e "Server name"
+	echo -e "${servername}"
+	echo -e ""
+	echo -e "Hostname"
+	echo -e "${HOSTNAME}"
+	echo -e ""
+	echo -e "Server IP"
+	echo -e "${ip}:${port}"
+}
+
+fn_info_message_distro(){
+	#
+	# Distro Details
+	# =====================================
+	# Distro:    Ubuntu 14.04.4 LTS
+	# Arch:      x86_64
+	# Kernel:    3.13.0-79-generic
+	# Hostname:  hostname
+	# tmux:      tmux 1.8
+	# GLIBC:     2.19
+
+	echo -e ""
+	echo -e "${lightyellow}Distro Details${default}"
+	fn_messages_separator
+	{
+		echo -e "${blue}Distro:\t${default}${distroname}"
+		echo -e "${blue}Arch:\t${default}${arch}"
+		echo -e "${blue}Kernel:\t${default}${kernel}"
+		echo -e "${blue}Hostname:\t${default}${HOSTNAME}"
+		echo -e "${blue}tmux:\t${default}${tmuxv}"
+		echo -e "${blue}GLIBC:\t${default}${glibcversion}"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_performance(){
+	#
+	# Performance
+	# =====================================
+	# Uptime:    55d, 3h, 38m
+	# Avg Load:  1.00, 1.01, 0.78
+	#
+	# Mem:       total   used   free  cached
+	# Physical:  741M    656M   85M   256M
+	# Swap:      0B      0B     0B
+
+	echo -e ""
+	echo -e "${lightyellow}Performance${default}"
+
+	{
+		echo -e "${blue}Uptime:\t${default}${days}d, ${hours}h, ${minutes}m"
+		echo -e "${blue}Avg Load:\t${default}${load}"
+	} | column -s $'\t' -t
+	echo -e ""
+	{
+		echo -e "${blue}Mem:\t${blue}total\t used\t free\t cached${default}"
+		echo -e "${blue}Physical:\t${default}${physmemtotal}\t${physmemused}\t${physmemfree}\t${physmemcached}${default}"
+		echo -e "${blue}Swap:\t${default}${swaptotal}\t${swapused}\t${swapfree}${default}"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_disk(){
+	#
+	# Storage
+	# =====================================
+	# Filesystem:   /dev/disk/by-uuid/320c8edd-a2ce-4a23-8c9d-e00a7af2d6ff
+	# Total:        15G
+	# Used:         8.4G
+	# Available:    5.7G
+	# LinuxGSM Total:	1G
+	# Serverfiles:  961M
+	# Backups:  	2G
+
+	echo -e ""
+	echo -e "${lightyellow}Storage${default}"
+	fn_messages_separator
+	{
+		echo -e "${blue}Filesystem:\t${default}${filesystem}"
+		echo -e "${blue}Total:\t${default}${totalspace}"
+		echo -e "${blue}Used:\t${default}${usedspace}"
+		echo -e "${blue}Available:\t${default}${availspace}"
+		echo -e "${blue}LinuxGSM Total:\t${default}${rootdirdu}"
+		echo -e "${blue}Serverfiles:\t${default}${serverfilesdu}"
+		if [ -d "${backupdir}" ]; then
+			echo -e "${blue}Backups:\t${default}${backupdirdu}"
+		fi
+	} | column -s $'\t' -t
+}
+
+fn_info_message_gameserver(){
+	#
+	# Quake Live Server Details
+	# =====================================
+	# Server name:      ql-server
+	# Server IP:        1.2.3.4:27960
+	# RCON password:    CHANGE_ME
+	# Server password:  NOT SET
+	# Maxplayers:		16
+	# Status:           OFFLINE
+
+	echo -e ""
+	echo -e "${lightgreen}${gamename} Server Details${default}"
+	fn_info_message_password_strip
+	fn_messages_separator
+	{
+		# Server name
+		if [ -n "${servername}" ]; then
+			echo -e "${blue}Server name:\t${default}${servername}"
+		fi
+
+		# Branch
+		if [ -n "${branch}" ]; then
+			echo -e "${blue}Branch:\t${default}${branch}"
+		fi
+
+		# Server ip
+		echo -e "${blue}Server IP:\t${default}${ip}:${port}"
+
+		# Server password
+		if [ -n "${serverpassword}" ]; then
+			echo -e "${blue}Server password:\t${default}${serverpassword}"
+		fi
+
+		# RCON password
+		if [ -n "${rconpassword}" ]; then
+			echo -e "${blue}RCON password:\t${default}${rconpassword}"
+		fi
+
+		# RCON web (Rust)
+		if [ -n "${rconweb}" ]; then
+			echo -e "${blue}RCON web:\t${default}${rconweb}"
+		fi
+
+		# Admin password
+		if [ -n "${adminpassword}" ]; then
+			echo -e "${blue}Admin password:\t${default}${adminpassword}"
+		fi
+
+		# Stats password (Quake Live)
+		if [ -n "${statspassword}" ]; then
+			echo -e "${blue}Stats password:\t${default}${statspassword}"
+		fi
+
+		# Maxplayers
+		if [ -n "${maxplayers}" ]; then
+			echo -e "${blue}Maxplayers:\t${default}${maxplayers}"
+		fi
+
+		# Game mode
+		if [ -n "${gamemode}" ]; then
+			echo -e "${blue}Game mode:\t${default}${gamemode}"
+		fi
+
+		# Game world
+		if [ -n "${gameworld}" ]; then
+			echo -e "${blue}Game world:\t${default}${gameworld}"
+		fi
+
+		# Tick rate
+		if [ -n "${tickrate}" ]; then
+			echo -e "${blue}Tick rate:\t${default}${tickrate}"
+		fi
+
+		# Sharding (Don't Starve Together)
+		if [ -n "${sharding}" ]; then
+			echo -e "${blue}Sharding:\t${default}${sharding}"
+		fi
+
+		# Master (Don't Starve Together)
+		if [ -n "${master}" ]; then
+			echo -e "${blue}Master:\t${default}${master}"
+		fi
+
+		# Shard (Don't Starve Together)
+		if [ -n "${shard}" ]; then
+			echo -e "${blue}Shard:\t${default}${shard}"
+		fi
+
+		# Cluster (Don't Starve Together)
+		if [ -n "${cluster}" ]; then
+			echo -e "${blue}Cluster:\t${default}${cluster}"
+		fi
+
+		# Cave (Don't Starve Together)
+		if [ -n "${cave}" ]; then
+			echo -e "${blue}Cave:\t${default}${cave}"
+		fi
+
+		# Creativemode (Hurtworld)
+		if [ -n "${creativemode}" ]; then
+			echo -e "${blue}Creativemode:\t${default}${creativemode}"
+		fi
+
+		# TeamSpeak dbplugin
+		if [ -n "${dbplugin}" ]; then
+			echo -e "${blue}dbplugin:\t${default}${dbplugin}"
+		fi
+
+		# ASE (Multi Theft Auto)
+		if [ -n "${ase}" ]; then
+			echo -e "${blue}ASE:\t${default}${ase}"
+		fi
+
+		# Save interval (Rust)
+		if [ -n "${saveinterval}" ]; then
+			echo -e "${blue}ASE:\t${default}${saveinterval} s"
+		fi
+
+		# Random map rotation mode (Squad)
+		if [ -n "${randommap}" ]; then
+			echo -e "${blue}Map rotation:\t${default}${randommap}"
+		fi
+
+		# Online status
+		if [ "${status}" == "0" ]; then
+			echo -e "${blue}Status:\t${red}OFFLINE${default}"
+		else
+			echo -e "${blue}Status:\t${green}ONLINE${default}"
+		fi
+	} | column -s $'\t' -t
+	echo -e ""
+}
+
+fn_info_message_script(){
+	#
+	# qlserver Script Details
+	# =====================================
+	# Service name:        ql-server
+	# qlserver version:    150316
+	# User:                lgsm
+	# Email alert:         off
+	# Update on start:     off
+	# Location:            /home/lgsm/qlserver
+	# Config file:         /home/lgsm/qlserver/serverfiles/baseq3/ql-server.cfg
+
+	echo -e "${lightgreen}${selfname} Script Details${default}"
+	fn_messages_separator
+	{
+		# Service name
+		echo -e "${blue}Service name:\t${default}${servicename}"
+
+		# Script version
+		if [ -n "${version}" ]; then
+			echo -e "${blue}${selfname} version:\t${default}${version}"
+		fi
+
+		# User
+		echo -e "${blue}User:\t${default}$(whoami)"
+
+		# GLIBC required
+		if [ -n "${glibcrequired}" ]; then
+			if [ "${glibcrequired}" == "NOT REQUIRED" ]; then
+					:
+			elif [ "${glibcrequired}" == "UNKNOWN" ]; then
+				echo -e "${blue}GLIBC required:\t${red}${glibcrequired}"
+			elif [ "$(printf '%s\n'${glibcrequired}'\n' ${glibcversion} | sort -V | head -n 1)" != "${glibcrequired}" ]; then
+				if [ "${glibcfix}" == "yes" ]; then
+					echo -e "${blue}GLIBC required:\t${red}${glibcrequired} ${default}(${green}Using GLIBC fix${default})"
+				else
+					echo -e "${blue}GLIBC required:\t${red}${glibcrequired} ${default}(${red}GLIBC version too old${default})"
+				fi
+			else
+				echo -e "${blue}GLIBC required:\t${green}${glibcrequired}${default}"
+			fi
+		fi
+
+		# Email alert
+		echo -e "${blue}Email alert:\t${default}${emailalert}"
+
+		# Pushbullet alert
+		echo -e "${blue}Pushbullet alert:\t${default}${pushbulletalert}"
+
+		# Update on start
+		if [ -n "${updateonstart}" ]; then
+			echo -e "${blue}Update on start:\t${default}${updateonstart}"
+		fi
+
+		# Script location
+		echo -e "${blue}Location:\t${default}${rootdir}"
+
+		# Config file location
+		if [ -n "${servercfgfullpath}" ]; then
+			if [ -f "${servercfgfullpath}" ]; then
+				echo -e "${blue}Config file:\t${default}${servercfgfullpath}"
+			elif [ -d "${servercfgfullpath}" ]; then
+				echo -e "${blue}Config dir:\t${default}${servercfgfullpath}"
+			else
+				echo -e "${blue}Config file:\t${default}${red}${servercfgfullpath}${default} (${red}FILE MISSING${default})"
+			fi
+		fi
+
+		# Network config file location (ARMA 3)
+		if [ -n "${networkcfgfullpath}" ]; then
+			echo -e "${blue}Network config file:\t${default}${networkcfgfullpath}"
+		fi
+	} | column -s $'\t' -t
+}
+
+fn_info_message_backup(){
+	#
+	# Backups
+	# =====================================
+	# No. of backups:    1
+	# Latest backup:
+	#     date:          Fri May  6 18:34:19 UTC 2016
+	#     file:          /home/lgsm/qlserver/backups/ql-server-2016-05-06-183239.tar.gz
+	#     size:          945M
+
+	echo -e ""
+	echo -e "${lightgreen}Backups${default}"
+	fn_messages_separator
+	if [ ! -d "${backupdir}" ]||[ "${backupcount}" == "0" ]; then
+		echo -e "No Backups created"
+	else
+		{
+			echo -e "${blue}No. of backups:\t${default}${backupcount}"
+			echo -e "${blue}Latest backup:${default}"
+			if [ "${lastbackupdaysago}" == "0" ]; then
+				echo -e "${blue}    date:\t${default}${lastbackupdate} (less than 1 day ago)"
+			elif [ "${lastbackupdaysago}" == "1" ]; then
+				echo -e "${blue}    date:\t${default}${lastbackupdate} (1 day ago)"
+			else
+				echo -e "${blue}    date:\t${default}${lastbackupdate} (${lastbackupdaysago} days ago)"
+			fi
+			echo -e "${blue}    file:\t${default}${lastbackup}"
+			echo -e "${blue}    size:\t${default}${lastbackupsize}"
+		} | column -s $'\t' -t
+	fi
+}
+
+fn_info_message_commandlineparms(){
+	#
+	# Command-line Parameters
+	# =====================================
+	# ./run_server_x86.sh +set net_strict 1
+
+	echo -e ""
+	echo -e "${lightgreen}Command-line Parameters${default}"
+	fn_info_message_password_strip
+	fn_messages_separator
+	echo -e "${executable} ${parms}"
+}
+
+fn_info_message_ports(){
+	# Ports
+	# =====================================
+	# Change ports by editing the parameters in:
+	# /home/lgsm/qlserver/serverfiles/baseq3/ql-server.cfg
+
+	echo -e ""
+	echo -e "${lightgreen}Ports${default}"
+	fn_messages_separator
+	echo -e "Change ports by editing the parameters in:"
+
+	parmslocation="${red}UNKNOWN${default}"
+	# engines/games that require editing in the config file
+	local ports_edit_array=( "avalanche" "Ballistic Overkill" "dontstarve" "idtech2" "idtech3" "idtech3_ql" "lwjgl2" "Project Cars" "projectzomboid" "quake" "refractor" "realvirtuality" "renderware" "seriousengine35" "teeworlds" "terraria" "unreal" "unreal2" "unreal3" "TeamSpeak 3" "Mumble" "7 Days To Die" )
+	for port_edit in "${ports_edit_array[@]}"
+	do
+		if [ "${engine}" == "${port_edit}" ]||[ "${gamename}" == "${port_edit}" ]; then
+			parmslocation="${servercfgfullpath}"
+		fi
+	done
+	# engines/games that require editing in the script file
+	local ports_edit_array=( "goldsource" "Factorio" "Hurtworld" "iw3.0"  "Rust" "spark" "source" "starbound" "unreal4" "realvirtuality")
+	for port_edit in "${ports_edit_array[@]}"
+	do
+		if [ "${engine}" == "${port_edit}" ]||[ "${gamename}" == "${port_edit}" ]; then
+			parmslocation="${selfname}"
+		fi
+	done
+	echo -e "${parmslocation}"
+	echo -e ""
+	echo -e "Useful port diagnostic command:"
+}
+
+fn_info_message_statusbottom(){
+	echo -e ""
+	if [ "${status}" == "0" ]; then
+		echo -e "${blue}Status:\t${red}OFFLINE${default}"
+	else
+		echo -e "${blue}Status:\t${green}ONLINE${default}"
+	fi
+	echo -e ""
+}
+
+fn_info_logs(){
+	echo -e ""
+	echo -e "${servicename} Logs"
+	echo -e "================================="
+
+	if [ -n "${lgsmlog}" ]; then
+		echo -e "\nScript log\n==================="
+		if [ ! "$(ls -A ${lgsmlogdir})" ]; then
+			echo "${lgsmlogdir} (NO LOG FILES)"
+		elif [ ! -s "${lgsmlog}" ]; then
+			echo "${lgsmlog} (LOG FILE IS EMPTY)"
+		else
+			echo "${lgsmlog}"
+			tail -25 "${lgsmlog}"
+		fi
+		echo ""
+	fi
+
+	if [ -n "${consolelog}" ]; then
+		echo -e "\nConsole log\n===================="
+		if [ ! "$(ls -A ${consolelogdir})" ]; then
+			echo "${consolelogdir} (NO LOG FILES)"
+		elif [ ! -s "${consolelog}" ]; then
+			echo "${consolelog} (LOG FILE IS EMPTY)"
+		else
+			echo "${consolelog}"
+			tail -25 "${consolelog}" | awk '{ sub("\r$", ""); print }'
+		fi
+		echo ""
+	fi
+
+	if [ -n "${gamelogdir}" ]; then
+		echo -e "\nServer log\n==================="
+		if [ ! "$(ls -A ${gamelogdir})" ]; then
+			echo "${gamelogdir} (NO LOG FILES)"
+		else
+			echo "${gamelogdir}"
+			# dos2unix sed 's/\r//'
+			tail "${gamelogdir}"/* 2>/dev/null | grep -v "==>" | sed '/^$/d' | sed 's/\r//'| tail -25
+		fi
+		echo ""
+	fi
+}
+
+# Engine/Game Specific details
+
+fn_info_message_ark(){
+	echo -e "netstat -atunp | grep ShooterGame"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\tudp"
+		# Don't do arithmetics if ever the port wasn't a numeric value
+		if [ "${port}" -eq "${port}" ]; then
+			echo -e "> RAW\tINBOUND\t$((port+1))\tudp"
+		fi
+		echo -e "> Query\tINBOUND\t${queryport}\tudp"
+		echo -e "> RCON\tINBOUND\t${rconport}\ttcp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_ballisticoverkill(){
+	echo -e "netstat -atunp | grep BODS.x86"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game/RCON\tINBOUND\t${port}\tudp"
+		echo -e "> Query\tINBOUND\t${queryport}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_avalanche(){
+	echo -e "netstat -atunp | grep Jcmp-Server"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_cod(){
+	echo -e "netstat -atunp | grep cod_lnxded"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_coduo(){
+	echo -e "netstat -atunp | grep coduo_lnxded"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_cod2(){
+	echo -e "netstat -atunp | grep cod2_lnxded"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_cod4(){
+	echo -e "netstat -atunp"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_codwaw(){
+	echo -e "netstat -atunp | grep codwaw_lnxded"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_dontstarve(){
+	echo -e "netstat -atunp | grep dontstarve"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game: Server\tINBOUND\t${port}\tudp"
+		echo -e "> Game: Master\tINBOUND\t${masterport}\tudp"
+		echo -e "> Steam: Auth\tINBOUND\t${steamauthenticationport}\tudp"
+		echo -e "> Steam: Master\tINBOUND\t${steammasterserverport}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_factorio(){
+	echo -e "netstat -atunp | grep factorio"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\ttcp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_goldsource(){
+	echo -e "netstat -atunp | grep hlds_linux"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game/RCON\tINBOUND\t${port}\ttcp/udp"
+		echo -e "< Client\tOUTBOUND\t${clientport}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_hurtworld(){
+	echo -e "netstat -atunp | grep Hurtworld"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game/RCON\tINBOUND\t${port}\tudp"
+		echo -e "> Query\tINBOUND\t${queryport}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_minecraft(){
+	echo -e "netstat -atunp | grep java"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_mumble(){
+	echo -e "netstat -atunp | grep murmur"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Voice\tINBOUND\t${port}\tudp"
+		echo -e "> ServerQuery\tINBOUND\t${port}\ttcp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_projectcars(){
+	echo -e "netstat -atunp | grep DedicatedS"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\tudp"
+		echo -e "> Query\tINBOUND\t${queryport}\tudp"
+		echo -e "> Steam\tINBOUND\t${steamport}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_projectzomboid(){
+	echo -e "netstat -atunp | grep java"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_quake(){
+	echo -e "netstat -atunp | grep mvdsv"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_quake2(){
+	echo -e "netstat -atunp | grep quake2"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_quake3(){
+	echo -e "netstat -atunp | grep q3ded"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_quakelive(){
+	echo -e "netstat -atunp | grep qzeroded"
+	echo -e ""
+	if [ -z "${port}" ]||[ -z "${rconport}" ]||[ -z "${statsport}" ]; then
+		echo -e "${red}ERROR!${default} Missing/commented ports in ${servercfg}."
+		echo -e ""
+	fi
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\tudp"
+		echo -e "> Rcon\tINBOUND\t${rconport}\tudp"
+		echo -e "> Stats\tINBOUND\t${statsport}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_realvirtuality(){
+	echo -e "netstat -atunp | grep arma3server"
+	echo -e ""
+	# Default port
+	if [ -z "${port}" ]; then
+		port="2302"
+	fi
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\tudp"
+		# Don't do arithmetics if ever the port wasn't a numeric value
+		if [ "${port}" -eq "${port}" ]; then
+			echo -e "> Steam: Query\tINBOUND\t$((port+1))\tudp"
+			echo -e "> Steam: Master traffic\tINBOUND\t$((port+2))\tudp"
+			echo -e "> Undocumented Port\tINBOUND\t$((port+3))\tudp"
+		fi
+	} | column -s $'\t' -t
+}
+
+fn_info_message_refractor(){
+	echo -e "netstat -atunp | grep bf1942_lnxd"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game/Query\tINBOUND\t${port}\tudp"
+		echo -e "> Steam: Query\tINBOUND\t${queryport}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_rust(){
+	echo -e "netstat -atunp | grep Rust"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game/Query\tINBOUND\t${port}\ttcp/udp"
+		echo -e "> RCON\tINBOUND\t${rconport}\ttcp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_seriousengine35(){
+	echo -e "netstat -atunp | grep Sam3_Dedicate"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game/RCON\tINBOUND\t${port}\ttcp"
+		echo -e "> Query\tINBOUND\t${queryport}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_sdtd(){
+	fn_info_message_password_strip
+	echo -e "netstat -atunp | grep 7DaysToDie"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game/RCON\tINBOUND\t${port}\tudp"
+		echo -e "> Query\tINBOUND\t${queryport}\tudp"
+		echo -e "> WebAdmin\tINBOUND\t${webadminport}\ttcp"
+		echo -e "> Telnet\tINBOUND\t${telnetport}\ttcp"
+	} | column -s $'\t' -t
+	echo -e ""
+	echo -e "${lightgreen}${servername} WebAdmin${default}"
+	fn_messages_separator
+	{
+		echo -e "${blue}WebAdmin enabled:\t${default}${webadminenabled}"
+		echo -e "${blue}WebAdmin url:\t${default}http://${ip}:${webadminport}"
+		echo -e "${blue}WebAdmin password:\t${default}${webadminpass}"
+	} | column -s $'\t' -t
+	echo -e ""
+	echo -e "${lightgreen}${servername} Telnet${default}"
+	fn_messages_separator
+	{
+		echo -e "${blue}Telnet enabled:\t${default}${telnetenabled}"
+		echo -e "${blue}Telnet address:\t${default}${ip} ${telnetport}"
+		echo -e "${blue}Telnet password:\t${default}${telnetpass}"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_source(){
+	echo -e "netstat -atunp | grep srcds_linux"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game/RCON\tINBOUND\t${port}\ttcp/udp"
+		echo -e "> SourceTV\tINBOUND\t${sourcetvport}\tudp"
+		echo -e "< Client\tOUTBOUND\t${clientport}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_spark(){
+	fn_info_message_password_strip
+	echo -e "netstat -atunp | grep server_linux3"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game/RCON\tINBOUND\t${port}\tudp"
+		echo -e "> Query\tINBOUND\t${queryport}\tudp"
+		echo -e "> WebAdmin\tINBOUND\t${webadminport}\ttcp"
+	} | column -s $'\t' -t
+	echo -e ""
+	echo -e "${lightgreen}${servername} WebAdmin${default}"
+	fn_messages_separator
+	{
+		echo -e "${blue}WebAdmin url:\t${default}http://${ip}:${webadminport}/index.html"
+		echo -e "${blue}WebAdmin username:\t${default}${webadminuser}"
+		echo -e "${blue}WebAdmin password:\t${default}${webadminpass}"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_squad(){
+	echo -e "netstat -atunp | grep SquadServer"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\tudp"
+		echo -e "> Query\tINBOUND\t${queryport}\tudp"
+		echo -e "> RCON\tINBOUND\t${rconport}\ttcp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_starbound(){
+	echo -e "netstat -atunp | grep starbound"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\ttcp"
+		echo -e "> Query\tINBOUND\t${queryport}\ttcp"
+		echo -e "> Rcon\tINBOUND\t${rconport}\ttcp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_teamspeak3(){
+	echo -e "netstat -atunp | grep ts3server"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Voice\tINBOUND\t${port}\tudp"
+		echo -e "> ServerQuery\tINBOUND\t${queryport}\ttcp"
+		echo -e "> File transfer\tINBOUND\t${fileport}\ttcp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_teeworlds(){
+	echo -e "netstat -atunp | grep teeworlds_srv"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\ttcp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_terraria(){
+	echo -e "netstat -atunp | grep TerrariaServer"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\ttcp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_towerunite(){
+	echo -e "netstat -atunp | grep TowerServer"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tINBOUND\t${port}\ttcp"
+		# Don't do arithmetics if ever the port wasn't a numeric value
+		if [ "${port}" -eq "${port}" ]; then
+			echo -e "> Steam\tINBOUND\t$((port+1))\tudp"
+		fi
+		echo -e "> Query\tINBOUND\t${queryport}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_unreal(){
+	fn_info_message_password_strip
+	echo -e "netstat -atunp | grep ucc-bin"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL\tINI VARIABLE"
+		echo -e "> Game\tINBOUND\t${port}\tudp\tPort=${port}"
+		echo -e "> Query\tINBOUND\t${queryport}\tudp"
+		if [ "${engine}" == "unreal" ]; then
+			echo -e "< UdpLink Port (random)\tOUTBOUND\t${udplinkport}+\tudp"
+		fi
+		if [ "${engine}" != "unreal" ] && [ "${appid}" != "223250" ]; then
+			echo -e "> GameSpy query\tINBOUND\t${gsqueryport}\tudp\tOldQueryPortNumber=${gsqueryport}"
+		fi
+		if [ "${appid}" == "215360" ]; then
+			echo -e "< Master server\tOUTBOUND\t28852\ttcp/udp"
+		else
+			echo -e "< Master server\tOUTBOUND\t28900/28902\ttcp/udp"
+		fi
+		if [ "${appid}" ]; then
+			if [ "${appid}" == "223250" ]; then
+				echo -e "< Steam\tOUTBOUND\t20610\tudp"
+			else
+				echo -e "< Steam\tOUTBOUND\t20660\tudp"
+			fi
+		fi
+		echo -e "> WebAdmin\tINBOUND\t${webadminport}\ttcp\tListenPort=${webadminport}"
+	} | column -s $'\t' -t
+	echo -e ""
+	echo -e "${lightgreen}${servername} WebAdmin${default}"
+	fn_messages_separator
+	{
+		echo -e "${blue}WebAdmin enabled:\t${default}${webadminenabled}"
+		echo -e "${blue}WebAdmin url:\t${default}http://${ip}:${webadminport}"
+		echo -e "${blue}WebAdmin username:\t${default}${webadminuser}"
+		echo -e "${blue}WebAdmin password:\t${default}${webadminpass}"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_ut3(){
+	echo -e "netstat -atunp | grep ut3-bin"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game/Query\tINBOUND\t${port}\ttcp/udp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_wolfensteinenemyterritory(){
+	echo -e "netstat -atunp | grep etded"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game/Query\tINBOUND\t${port}\tudp"
+	} | column -s $'\t' -t
+}
+
+fn_info_message_mta(){
+	echo -e "netstat -atunp | grep mta-server64"
+	echo -e ""
+	{
+		echo -e "DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL"
+		echo -e "> Game\tOUTBOUND\t${port}\tudp"
+		echo -e "> HTTP Server\tINBOUND\t${httpport}\ttcp"
+		if [ "${ase}" == "Enabled" ]; then
+			echo -e "> ASE Game_Monitor\tOUTBOUND\t$((${port} + 123))\tudp"
+		fi
+	} | column -s $'\t' -t
+}
+
+fn_info_message_select_engine(){
+	# Display details depending on game or engine.
+	if [ "${engine}" == "avalanche" ]; then
+		fn_info_message_avalanche
+	elif [ "${engine}" == "refractor" ]; then
+		fn_info_message_refractor
+	elif [ "${engine}" == "dontstarve" ]; then
+		fn_info_message_dontstarve
+	elif [ "${engine}" == "goldsource" ]; then
+		fn_info_message_goldsource
+	elif [ "${engine}" == "lwjgl2" ]; then
+		fn_info_message_minecraft
+	elif [ "${engine}" == "projectzomboid" ]; then
+		fn_info_message_projectzomboid
+	elif [ "${engine}" == "realvirtuality" ]; then
+		fn_info_message_realvirtuality
+	elif [ "${engine}" == "seriousengine35" ]; then
+		fn_info_message_seriousengine35
+	elif [ "${engine}" == "source" ]; then
+		fn_info_message_source
+	elif [ "${engine}" == "spark" ]; then
+		fn_info_message_spark
+	elif [ "${engine}" == "starbound" ]; then
+		fn_info_message_starbound
+	elif [ "${engine}" == "teeworlds" ]; then
+		fn_info_message_teeworlds
+	elif [ "${engine}" == "terraria" ]; then
+		fn_info_message_terraria
+	elif [ "${engine}" == "unreal" ]||[ "${engine}" == "unreal2" ]; then
+		fn_info_message_unreal
+	elif [ "${engine}" == "unreal3" ]; then
+		fn_info_message_ut3
+	elif [ "${gamename}" == "7 Days To Die" ]; then
+		fn_info_message_sdtd
+	elif [ "${gamename}" == "ARK: Survival Evolved" ]; then
+		fn_info_message_ark
+	elif [ "${gamename}" == "Ballistic Overkill" ]; then
+		fn_info_message_ballisticoverkill
+	elif [ "${gamename}" == "Call of Duty" ]; then
+		fn_info_message_cod
+	elif [ "${gamename}" == "Call of Duty: United Offensive" ]; then
+		fn_info_message_coduo
+	elif [ "${gamename}" == "Call of Duty 2" ]; then
+		fn_info_message_cod2
+	elif [ "${gamename}" == "Call of Duty 4" ]; then
+		fn_info_message_cod4
+	elif [ "${gamename}" == "Call of Duty: World at War" ]; then
+		fn_info_message_codwaw
+	elif [ "${gamename}" == "Factorio" ]; then
+		fn_info_message_factorio
+	elif [ "${gamename}" == "Hurtworld" ]; then
+		fn_info_message_hurtworld
+	elif [ "${gamename}" == "Project Cars" ]; then
+		fn_info_message_projectcars
+	elif [ "${gamename}" == "QuakeWorld" ]; then
+		fn_info_message_quake
+	elif [ "${gamename}" == "Quake 2" ]; then
+		fn_info_message_quake2
+	elif [ "${gamename}" == "Quake 3: Arena" ]; then
+		fn_info_message_quake3
+	elif [ "${gamename}" == "Quake Live" ]; then
+		fn_info_message_quakelive
+	elif [ "${gamename}" == "Squad" ]; then
+		fn_info_message_squad
+	elif [ "${gamename}" == "TeamSpeak 3" ]; then
+		fn_info_message_teamspeak3
+	elif [ "${gamename}" == "Tower Unite" ]; then
+		fn_info_message_towerunite
+	elif [ "${gamename}" == "Multi Theft Auto" ]; then
+		fn_info_message_mta
+	elif [ "${gamename}" == "Mumble" ]; then
+		fn_info_message_mumble
+	elif [ "${gamename}" == "Rust" ]; then
+		fn_info_message_rust
+	elif [ "${gamename}" == "Wolfenstein: Enemy Territory" ]; then
+		fn_info_message_wolfensteinenemyterritory
+	else
+		fn_print_error_nl "Unable to detect server engine."
+	fi
+}
+
+# Separator is different for details
+fn_messages_separator(){
+	if [ "${function_selfname}" == "command_details.sh" ]; then
+		printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' =
+	else
+		echo -e "================================="
+	fi
+}
+
+# Removes the passwords form all but details
+fn_info_message_password_strip(){
+	if [ "${function_selfname}" != "command_details.sh" ]; then
+		if [ -n "${serverpassword}" ]; then
+			serverpassword="********"
+		fi
+
+		if [ -n "${rconpassword}" ]; then
+			rconpassword="********"
+		fi
+
+		if [ -n "${adminpassword}" ]; then
+			adminpassword="********"
+		fi
+
+		if [ -n "${statspassword}" ]; then
+			statspassword="********"
+		fi
+
+		if [ -n "${webadminpass}" ]; then
+			webadminpass="********"
+		fi
+
+		if [ -n "${telnetpass}" ]; then
+			telnetpass="********"
+		fi
+	fi
+}

Some files were not shown because too many files changed in this diff