Browse Source

notifications are now called alerts

Added pushbullet support to all servers
pull/820/merge
Daniel Gibbs 9 years ago
parent
commit
885d3b118b
  1. 11
      7DaysToDie/sdtdserver
  2. 11
      ARKSurvivalEvolved/arkserver
  3. 11
      Arma3/arma3server
  4. 11
      BlackMesa/bmdmserver
  5. 11
      BladeSymphony/bsserver
  6. 11
      BrainBread2/bb2server
  7. 11
      CodenameCURE/ccserver
  8. 11
      CounterStrike/csserver
  9. 11
      CounterStrikeConditionZero/csczserver
  10. 11
      CounterStrikeGlobalOffensive/csgoserver
  11. 11
      CounterStrikeSource/cssserver
  12. 11
      DayOfDefeat/dodserver
  13. 11
      DayOfDefeatSource/dodsserver
  14. 11
      DeathmatchClassic/dmcserver
  15. 11
      DontStarveTogether/dstserver
  16. 11
      DoubleActionBoogaloo/dabserver
  17. 11
      FistfulOfFrags/fofserver
  18. 11
      GarrysMod/gmodserver
  19. 11
      GoldenEyeSource/gesserver
  20. 11
      HalfLife2Deathmatch/hl2dmserver
  21. 11
      HalfLifeDeathmatch/hldmserver
  22. 11
      HalfLifeDeathmatchSource/hldmsserver
  23. 11
      Hurtworld/hwserver
  24. 11
      Insurgency/insserver
  25. 11
      JustCause2/jc2server
  26. 11
      KillingFloor/kfserver
  27. 11
      Left4Dead/l4dserver
  28. 14
      Left4Dead2/l4d2server
  29. 11
      Mumble/mumbleserver
  30. 11
      NS2Combat/ns2cserver
  31. 11
      NaturalSelection2/ns2server
  32. 11
      NoMoreRoomInHell/nmrihserver
  33. 11
      OpposingForce/opforserver
  34. 11
      PiratesVikingandKnightsII/pvkiiserver
  35. 11
      ProjectZomboid/pzserver
  36. 11
      QuakeLive/qlserver
  37. 5
      README.md
  38. 11
      RedOrchestra/roserver
  39. 11
      Ricochet/ricochetserver
  40. 11
      Rust/rustserver
  41. 11
      SeriousSam3BFE/ss3sserver
  42. 11
      StarBound/sbserver
  43. 11
      SvenCoop/svencoopserver
  44. 11
      TeamFortress2/tf2server
  45. 11
      TeamFortressClassic/tfcserver
  46. 11
      TeamSpeak3/ts3server
  47. 11
      Teeworlds/twserver
  48. 11
      Terraria/terrariaserver
  49. 11
      UnrealTournament2004/ut2k4server
  50. 11
      UnrealTournament99/ut99server
  51. 15
      lgsm/functions/alert.sh
  52. 24
      lgsm/functions/alert_email.sh
  53. 14
      lgsm/functions/alert_pushbullet.sh
  54. 4
      lgsm/functions/check_deps.sh
  55. 22
      lgsm/functions/command_comms_check.sh
  56. 6
      lgsm/functions/command_details.sh
  57. 14
      lgsm/functions/command_monitor.sh
  58. 22
      lgsm/functions/command_test_alert.sh
  59. 15
      lgsm/functions/comms.sh
  60. 14
      lgsm/functions/comms_pushbullet.sh
  61. 10
      lgsm/functions/core_functions.sh
  62. 42
      lgsm/functions/core_getopt.sh
  63. 6
      lgsm/functions/monitor_gsquery.sh
  64. 6
      tests/tests_jc2server.sh
  65. 6
      tests/tests_ts3server.sh

11
7DaysToDie/sdtdserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="username" steamuser="username"
steampass="password" steampass="password"

11
ARKSurvivalEvolved/arkserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
Arma3/arma3server

@ -14,11 +14,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="username" steamuser="username"
steampass="password" steampass="password"

11
BlackMesa/bmdmserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
BladeSymphony/bsserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="username" steamuser="username"
steampass="password" steampass="password"

11
BrainBread2/bb2server

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="username" steamuser="username"
steampass="password" steampass="password"

11
CodenameCURE/ccserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
CounterStrike/csserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
CounterStrikeConditionZero/csczserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
CounterStrikeGlobalOffensive/csgoserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
CounterStrikeSource/cssserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
DayOfDefeat/dodserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
DayOfDefeatSource/dodsserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
DeathmatchClassic/dmcserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
DontStarveTogether/dstserver

@ -13,11 +13,18 @@ version="130516"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
DoubleActionBoogaloo/dabserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
FistfulOfFrags/fofserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
GarrysMod/gmodserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
GoldenEyeSource/gesserver

@ -14,11 +14,18 @@ version="150316"
#### Variables #### #### Variables ####
export MALLOC_CHECK_=0 export MALLOC_CHECK_=0
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
HalfLife2Deathmatch/hl2dmserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
HalfLifeDeathmatch/hldmserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
HalfLifeDeathmatchSource/hldmsserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
Hurtworld/hwserver

@ -14,11 +14,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
Insurgency/insserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
JustCause2/jc2server

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
KillingFloor/kfserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="username" steamuser="username"
steampass="password" steampass="password"

11
Left4Dead/l4dserver

@ -14,11 +14,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

14
Left4Dead2/l4d2server

@ -13,11 +13,21 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Pushover
#Push alot
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
Mumble/mumbleserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Server Details # Server Details
gamename="Mumble" gamename="Mumble"
servicename="mumble-server" servicename="mumble-server"

11
NS2Combat/ns2cserver

@ -13,11 +13,18 @@ version="220416"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="username" steamuser="username"
steampass="password" steampass="password"

11
NaturalSelection2/ns2server

@ -13,11 +13,18 @@ version="220416"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="username" steamuser="username"
steampass="password" steampass="password"

11
NoMoreRoomInHell/nmrihserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
OpposingForce/opforserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
PiratesVikingandKnightsII/pvkiiserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
ProjectZomboid/pzserver

@ -14,11 +14,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
QuakeLive/qlserver

@ -13,11 +13,18 @@ version="060516"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

5
README.md

@ -4,7 +4,7 @@
[![Build Status](https://travis-ci.org/dgibbs64/linuxgsm.svg?branch=master)](https://travis-ci.org/dgibbs64/linuxgsm) [![Build Status](https://travis-ci.org/dgibbs64/linuxgsm.svg?branch=master)](https://travis-ci.org/dgibbs64/linuxgsm)
[![Under Development](https://badge.waffle.io/dgibbs64/linuxgsm.svg?label=Under%20Development&title=Under%20Development)](http://waffle.io/dgibbs64/linuxgsm) [![Under Development](https://badge.waffle.io/dgibbs64/linuxgsm.svg?label=Under%20Development&title=Under%20Development)](http://waffle.io/dgibbs64/linuxgsm)
The Linux Game Server Managers are command line tools for quick, simple deployment and management of various dedicated game servers and voice comms servers. The Linux Game Server Managers are command line tools for quick, simple deployment and management of various dedicated game servers and voice alert servers.
<h2>Hassle-Free Dedicated Servers</h2> <h2>Hassle-Free Dedicated Servers</h2>
Game servers traditionally are not easy to manage yourself. Admins often have to spend hours just messing around trying to get their server working. LGSM is designed to be a simple as possible allowing Admins to spend less time on management and more time on the fun stuff. Game servers traditionally are not easy to manage yourself. Admins often have to spend hours just messing around trying to get their server working. LGSM is designed to be a simple as possible allowing Admins to spend less time on management and more time on the fun stuff.
@ -15,7 +15,8 @@ Game servers traditionally are not easy to manage yourself. Admins often have to
<li>Console</li> <li>Console</li>
<li>Details</li> <li>Details</li>
<li>Installer (SteamCMD)</li> <li>Installer (SteamCMD)</li>
<li>Monitor (including email notification)</li> <li>Monitor</li>
<li>Alerts (Email, Pushbullet)</li>
<li>Update (SteamCMD)</li> <li>Update (SteamCMD)</li>
<li>Start/Stop/Restart server</li> <li>Start/Stop/Restart server</li>
</ul> </ul>

11
RedOrchestra/roserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="username" steamuser="username"
steampass="password" steampass="password"

11
Ricochet/ricochetserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
Rust/rustserver

@ -14,11 +14,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login (not required) # Steam login (not required)
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
SeriousSam3BFE/ss3sserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
StarBound/sbserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="username" steamuser="username"
steampass="password" steampass="password"

11
SvenCoop/svencoopserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
TeamFortress2/tf2server

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
TeamFortressClassic/tfcserver

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"
steampass="" steampass=""

11
TeamSpeak3/ts3server

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Start Variables # Start Variables
updateonstart="off" updateonstart="off"

11
Teeworlds/twserver

@ -14,11 +14,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="username" steamuser="username"
steampass="password" steampass="password"

11
Terraria/terrariaserver

@ -14,11 +14,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Steam login # Steam login
steamuser="username" steamuser="username"
steampass="password" steampass="password"

11
UnrealTournament2004/ut2k4server

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Start Variables # Start Variables
defaultmap="DM-Rankin" defaultmap="DM-Rankin"
ip="0.0.0.0" ip="0.0.0.0"

11
UnrealTournament99/ut99server

@ -13,11 +13,18 @@ version="150316"
#### Variables #### #### Variables ####
# Notification Email # Notification Alerts
# (on|off) # (on|off)
emailnotification="off"
# Email
emailalert="off"
email="[email protected]" email="[email protected]"
# Pushbullet
# https://www.pushbullet.com/#settings
pushbulletalert"off"
pushbullettoken="accesstoken"
# Start Variables # Start Variables
defaultmap="DM-Deck16][" defaultmap="DM-Deck16]["
ip="0.0.0.0" ip="0.0.0.0"

15
lgsm/functions/alert.sh

@ -0,0 +1,15 @@
#!/bin/bash
# LGSM alert.sh function
# Author: Daniel Gibbs
# Website: https://gameservermanagers.com
lgsm_version="140516"
# Description: Overall function for managing alerts.
if [ "${emailalert}" == "on" ]||[ -n "${email}" ]; then
alert_email.sh
fi
if [ "${pushbulletalert}" == "on" ]||[ -n "${pushbullettoken}" ]; then
alert_pushbullet.sh
fi

24
lgsm/functions/comms_email.sh → lgsm/functions/alert_email.sh

@ -4,17 +4,17 @@
# Website: https://gameservermanagers.com # Website: https://gameservermanagers.com
lgsm_version="140516" lgsm_version="140516"
# Description: Sends email notification if monitor picks up a failure. # Description: Sends email alert if monitor picks up a failure.
local modulename="Email" local modulename="Alert"
fn_details_email(){ fn_details_email(){
# #
# Failure reason: Testing bb2-server email notification # Failure reason: Testing bb2-server email alert
# Action Taken: Sent test email...hello is this thing on? # Action Taken: Sent test email...hello is this thing on?
echo -e "${commsbody}" >> "${emaillog}" echo -e "${alertbody}" >> "${emaillog}"
} }
@ -168,7 +168,7 @@ fn_details_gameserver(){
} | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"| tee -a "${emaillog}" } | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"| tee -a "${emaillog}"
} }
fn_comms_email_template_logs(){ fn_alert_email_template_logs(){
{ {
echo -e "" echo -e ""
echo -e "${servicename} Logs" echo -e "${servicename} Logs"
@ -214,7 +214,7 @@ fn_comms_email_template_logs(){
} | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"| tee -a "${emaillog}" } | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"| tee -a "${emaillog}"
} }
fn_print_dots "Sending notification to ${email}" fn_print_dots "Sending alert to ${email}"
info_distro.sh info_distro.sh
info_config.sh info_config.sh
info_glibc.sh info_glibc.sh
@ -229,13 +229,13 @@ fn_details_os
fn_details_performance fn_details_performance
fn_details_disk fn_details_disk
fn_details_gameserver fn_details_gameserver
fn_comms_email_template_logs fn_alert_email_template_logs
mail -s "${commssubject}" "${email}" < "${emaillog}" mail -s "${alertsubject}" "${email}" < "${emaillog}"
exitcode=$? exitcode=$?
if [ "${exitcode}" == "0" ]; then if [ "${exitcode}" == "0" ]; then
fn_print_ok_nl "Sending notification to ${email}" fn_print_ok_nl "Sending alert to ${email}"
fn_scriptlog "Success! Sending notification to ${email}" fn_scriptlog "Success! Sending alert to ${email}"
else else
fn_print_fail_nl "Sending notification to ${email}" fn_print_fail_nl "Sending alert to ${email}"
fn_scriptlog "Failure! Sending notification to ${email}" fn_scriptlog "Failure! Sending alert to ${email}"
fi fi

14
lgsm/functions/alert_pushbullet.sh

@ -0,0 +1,14 @@
#!/bin/bash
# LGSM alert_pushbullet.sh function
# Author: Daniel Gibbs
# Website: https://gameservermanagers.com
lgsm_version="140516"
# Description: alerts using pushbullet.
local modulename="Alert"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
curl -u """${pushbullettoken}"":" -d type="note" -d body="${alertbody}" -d title="${alertsubject}" 'https://api.pushbullet.com/v2/pushes' >/dev/null 2>&1
fn_print_ok_nl "Sent Pushbullet alert"
fn_scriptlog "Sent Pushbullet alert"

4
lgsm/functions/check_deps.sh

@ -38,8 +38,8 @@ fn_deps_detector(){
} }
fn_deps_email(){ fn_deps_email(){
# Adds postfix to required dependencies if email notification is enabled # Adds postfix to required dependencies if email alert is enabled
if [ "${emailnotification}" == "on" ]; then if [ "${emailalert}" == "on" ]; then
if [ -f /usr/bin/mailx ]; then if [ -f /usr/bin/mailx ]; then
if [ -d /etc/exim4 ]; then if [ -d /etc/exim4 ]; then
array_deps_required+=( exim4 ) array_deps_required+=( exim4 )

22
lgsm/functions/command_comms_check.sh

@ -1,22 +0,0 @@
#!/bin/bash
# LGSM command_email_test.sh function
# Author: Daniel Gibbs
# Website: https://gameservermanagers.com
lgsm_version="140516"
# Description: Sends a test email notification.
local modulename="Comms"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
check.sh
info_config.sh
if [ "${emailnotification}" = "on" ]||[ "${pushbulletnotification}" = "on" ]; then
fn_scriptlog "Sending Comms Check"
commssubject="LGSM - Comms Check - ${servername}"
commsbody="LGSM testing comms, how you read?"
comms.sh
else
fn_print_fail_nl "Notifications not enabled"
fn_scriptlog "Notifications not enabled"
fi

6
lgsm/functions/command_details.sh

@ -169,7 +169,7 @@ fn_details_script(){
# Service name: ql-server # Service name: ql-server
# qlserver version: 150316 # qlserver version: 150316
# User: lgsm # User: lgsm
# Email notification: off # Email alert: off
# Update on start: off # Update on start: off
# Location: /home/lgsm/qlserver # Location: /home/lgsm/qlserver
# Config file: /home/lgsm/qlserver/serverfiles/baseq3/ql-server.cfg # Config file: /home/lgsm/qlserver/serverfiles/baseq3/ql-server.cfg
@ -205,8 +205,8 @@ fn_details_script(){
fi fi
fi fi
# Email notification # Email alert
echo -e "\e[34mEmail notification:\t\e[0m${emailnotification}" echo -e "\e[34mEmail alert:\t\e[0m${emailalert}"
# Update on start # Update on start
echo -e "\e[34mUpdate on start:\t\e[0m${updateonstart}" echo -e "\e[34mUpdate on start:\t\e[0m${updateonstart}"

14
lgsm/functions/command_monitor.sh

@ -37,12 +37,12 @@ fn_monitor_msg_checking(){
sleep 1 sleep 1
} }
fn_monitor_email_notification(){ fn_monitor_email_alert(){
# Email will be sent if enabled # Email will be sent if enabled
if [ "${emailnotification}" = "on" ]; then if [ "${emailalert}" = "on" ]; then
commssubject="LGSM - Restarted - ${servername}" alertsubject="LGSM - Restarted - ${servername}"
commsbody="${servicename} process not running" alertbody="${servicename} process not running"
comms.sh alert.sh
fi fi
} }
@ -57,7 +57,7 @@ fn_monitor_teamspeak3(){
fn_print_fail_eol_nl fn_print_fail_eol_nl
fn_scriptlog "Checking session: ${ts3error}: FAIL" fn_scriptlog "Checking session: ${ts3error}: FAIL"
failurereason="${ts3error}" failurereason="${ts3error}"
fn_monitor_email_notification fn_monitor_email_alert
fi fi
fn_scriptlog "Monitor is starting ${servername}" fn_scriptlog "Monitor is starting ${servername}"
sleep 1 sleep 1
@ -83,7 +83,7 @@ fn_monitor_tmux(){
fn_print_fail "Checking session: " fn_print_fail "Checking session: "
fn_print_fail_eol_nl fn_print_fail_eol_nl
fn_scriptlog "Checking session: FAIL" fn_scriptlog "Checking session: FAIL"
fn_monitor_email_notification fn_monitor_email_alert
fn_scriptlog "Monitor is starting ${servername}" fn_scriptlog "Monitor is starting ${servername}"
sleep 1 sleep 1
command_start.sh command_start.sh

22
lgsm/functions/command_test_alert.sh

@ -0,0 +1,22 @@
#!/bin/bash
# LGSM command_email_test.sh function
# Author: Daniel Gibbs
# Website: https://gameservermanagers.com
lgsm_version="140516"
# Description: Sends a test email alert.
local modulename="Alert"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
check.sh
info_config.sh
if [ "${emailalert}" = "on" ]||[ "${pushbulletalert}" = "on" ]; then
fn_scriptlog "Sending alert Check"
alertsubject="LGSM - alert Check - ${servername}"
alertbody="LGSM testing alert, how you read?"
alert.sh
else
fn_print_fail_nl "alerts not enabled"
fn_scriptlog "alerts not enabled"
fi

15
lgsm/functions/comms.sh

@ -1,15 +0,0 @@
#!/bin/bash
# LGSM comms.sh function
# Author: Daniel Gibbs
# Website: https://gameservermanagers.com
lgsm_version="140516"
# Description: Overall function for managing notifications.
if [ "${emailnotification}" == "on" ]||[ -n "${email}" ]; then
comms_email.sh
fi
if [ "${pushbulletnotification}" == "on" ]||[ -n "${pushbullettoken}" ]; then
comms_pushbullet.sh
fi

14
lgsm/functions/comms_pushbullet.sh

@ -1,14 +0,0 @@
#!/bin/bash
# LGSM comms_pushbullet.sh function
# Author: Daniel Gibbs
# Website: https://gameservermanagers.com
lgsm_version="140516"
# Description: Notifications using pushbullet.
local modulename="Comms"
function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
curl -u """${pushbullettoken}"":" -d type="note" -d body="${commsbody}" -d title="${commssubject}" 'https://api.pushbullet.com/v2/pushes' >/dev/null 2>&1
fn_print_ok_nl "Sent Pushbullet notification"
fn_scriptlog "Sent Pushbullet notification"

10
lgsm/functions/core_functions.sh

@ -111,7 +111,7 @@ functionfile="${FUNCNAME}"
fn_fetch_function fn_fetch_function
} }
command_comms_check.sh(){ command_test_alert.sh(){
functionfile="${FUNCNAME}" functionfile="${FUNCNAME}"
fn_fetch_function fn_fetch_function
} }
@ -332,19 +332,19 @@ fn_fetch_function
} }
# Comms # Alert
comms.sh(){ alert.sh(){
functionfile="${FUNCNAME}" functionfile="${FUNCNAME}"
fn_fetch_function fn_fetch_function
} }
comms_email.sh(){ alert_email.sh(){
functionfile="${FUNCNAME}" functionfile="${FUNCNAME}"
fn_fetch_function fn_fetch_function
} }
comms_pushbullet.sh(){ alert_pushbullet.sh(){
functionfile="${FUNCNAME}" functionfile="${FUNCNAME}"
fn_fetch_function fn_fetch_function
} }

42
lgsm/functions/core_getopt.sh

@ -25,8 +25,8 @@ case "$getopt" in
command_validate.sh;; command_validate.sh;;
m|monitor) m|monitor)
command_monitor.sh;; command_monitor.sh;;
et|comms-check) ct|test-alert)
command_comms_check.sh;; command_test_alert.sh;;
dt|details) dt|details)
command_details.sh;; command_details.sh;;
b|backup) b|backup)
@ -58,7 +58,7 @@ case "$getopt" in
echo -e "\e[34mupdate-functions\t\e[0muf |Removes all functions so latest can be downloaded." echo -e "\e[34mupdate-functions\t\e[0muf |Removes all functions so latest can be downloaded."
echo -e "\e[34mvalidate\t\e[0mv |Validate server files with SteamCMD." echo -e "\e[34mvalidate\t\e[0mv |Validate server files with SteamCMD."
echo -e "\e[34mmonitor\t\e[0mm |Checks that the server is running." echo -e "\e[34mmonitor\t\e[0mm |Checks that the server is running."
echo -e "\e[34mcomms-check\t\e[0met |Sends test notification." echo -e "\e[34mtest-alert\t\e[0mta |Sends test alert."
echo -e "\e[34mdetails\t\e[0mdt |Displays useful infomation about the server." echo -e "\e[34mdetails\t\e[0mdt |Displays useful infomation about the server."
echo -e "\e[34mbackup\t\e[0mb |Create archive of the server." echo -e "\e[34mbackup\t\e[0mb |Create archive of the server."
echo -e "\e[34mconsole\t\e[0mc |Console allows you to access the live view of a server." echo -e "\e[34mconsole\t\e[0mc |Console allows you to access the live view of a server."
@ -84,8 +84,8 @@ case "$getopt" in
command_update_functions.sh;; command_update_functions.sh;;
m|monitor) m|monitor)
command_monitor.sh;; command_monitor.sh;;
et|comms-check) et|test-alert)
command_comms_check.sh;; command_test_alert.sh;;
dt|details) dt|details)
command_details.sh;; command_details.sh;;
b|backup) b|backup)
@ -113,7 +113,7 @@ case "$getopt" in
echo -e "\e[34mupdate\t\e[0mu |Checks and applies updates from SteamCMD." echo -e "\e[34mupdate\t\e[0mu |Checks and applies updates from SteamCMD."
echo -e "\e[34mupdate-functions\t\e[0muf |Removes all functions so latest can be downloaded." echo -e "\e[34mupdate-functions\t\e[0muf |Removes all functions so latest can be downloaded."
echo -e "\e[34mmonitor\t\e[0mm |Checks that the server is running." echo -e "\e[34mmonitor\t\e[0mm |Checks that the server is running."
echo -e "\e[34mcomms-check\t\e[0met |Sends test notification." echo -e "\e[34mtest-alert\t\e[0mta |Sends test alert."
echo -e "\e[34mdetails\t\e[0mdt |Displays useful infomation about the server." echo -e "\e[34mdetails\t\e[0mdt |Displays useful infomation about the server."
echo -e "\e[34mchange-password\t\e[0mpw |Changes TS3 serveradmin password." echo -e "\e[34mchange-password\t\e[0mpw |Changes TS3 serveradmin password."
echo -e "\e[34mbackup\t\e[0mb |Create archive of the server." echo -e "\e[34mbackup\t\e[0mb |Create archive of the server."
@ -136,8 +136,8 @@ case "$getopt" in
command_update_functions.sh;; command_update_functions.sh;;
m|monitor) m|monitor)
command_monitor.sh;; command_monitor.sh;;
et|comms-check) et|test-alert)
command_comms_check.sh;; command_test_alert.sh;;
b|backup) b|backup)
command_backup.sh;; command_backup.sh;;
dev|dev-debug) dev|dev-debug)
@ -160,7 +160,7 @@ case "$getopt" in
echo -e "\e[34mrestart\t\e[0mr |Restart the server." echo -e "\e[34mrestart\t\e[0mr |Restart the server."
echo -e "\e[34mupdate-functions\t\e[0muf |Removes all functions so latest can be downloaded." echo -e "\e[34mupdate-functions\t\e[0muf |Removes all functions so latest can be downloaded."
echo -e "\e[34mmonitor\t\e[0mm |Checks that the server is running." echo -e "\e[34mmonitor\t\e[0mm |Checks that the server is running."
echo -e "\e[34mcomms-check\t\e[0met |Sends test notification." echo -e "\e[34mtest-alert\t\e[0mta |Sends test alert."
echo -e "\e[34mbackup\t\e[0mb |Create archive of the server." echo -e "\e[34mbackup\t\e[0mb |Create archive of the server."
echo -e "\e[34mconsole\t\e[0mc |Console allows you to access the live view of a server." echo -e "\e[34mconsole\t\e[0mc |Console allows you to access the live view of a server."
echo -e "\e[34mdebug\t\e[0md |See the output of the server directly to your terminal." echo -e "\e[34mdebug\t\e[0md |See the output of the server directly to your terminal."
@ -188,8 +188,8 @@ case "$getopt" in
command_validate.sh;; command_validate.sh;;
m|monitor) m|monitor)
command_monitor.sh;; command_monitor.sh;;
et|comms-check) et|test-alert)
command_comms_check.sh;; command_test_alert.sh;;
dt|details) dt|details)
command_details.sh;; command_details.sh;;
b|backup) b|backup)
@ -223,7 +223,7 @@ case "$getopt" in
echo -e "\e[34mupdate-functions\t\e[0muf |Removes all functions so latest can be downloaded." echo -e "\e[34mupdate-functions\t\e[0muf |Removes all functions so latest can be downloaded."
echo -e "\e[34mvalidate\t\e[0mv |Validate server files with SteamCMD." echo -e "\e[34mvalidate\t\e[0mv |Validate server files with SteamCMD."
echo -e "\e[34mmonitor\t\e[0mm |Checks that the server is running." echo -e "\e[34mmonitor\t\e[0mm |Checks that the server is running."
echo -e "\e[34mcomms-check\t\e[0met |Sends test notification." echo -e "\e[34mtest-alert\t\e[0mta |Sends test alert."
echo -e "\e[34mdetails\t\e[0mdt |Displays useful infomation about the server." echo -e "\e[34mdetails\t\e[0mdt |Displays useful infomation about the server."
echo -e "\e[34mbackup\t\e[0mb |Create archive of the server." echo -e "\e[34mbackup\t\e[0mb |Create archive of the server."
echo -e "\e[34mconsole\t\e[0mc |Console allows you to access the live view of a server." echo -e "\e[34mconsole\t\e[0mc |Console allows you to access the live view of a server."
@ -248,8 +248,8 @@ case "$getopt" in
command_update_functions.sh;; command_update_functions.sh;;
m|monitor) m|monitor)
command_monitor.sh;; command_monitor.sh;;
et|comms-check) et|test-alert)
command_comms_check.sh;; command_test_alert.sh;;
dt|details) dt|details)
command_details.sh;; command_details.sh;;
b|backup) b|backup)
@ -280,7 +280,7 @@ case "$getopt" in
echo -e "\e[34mrestart\t\e[0mr |Restart the server." echo -e "\e[34mrestart\t\e[0mr |Restart the server."
echo -e "\e[34mupdate-functions\t\e[0muf |Removes all functions so latest can be downloaded." echo -e "\e[34mupdate-functions\t\e[0muf |Removes all functions so latest can be downloaded."
echo -e "\e[34mmonitor\t\e[0mm |Checks that the server is running." echo -e "\e[34mmonitor\t\e[0mm |Checks that the server is running."
echo -e "\e[34mcomms-check\t\e[0met |Sends test notification." echo -e "\e[34mtest-alert\t\e[0mta |Sends test alert."
echo -e "\e[34mdetails\t\e[0mdt |Displays useful infomation about the server." echo -e "\e[34mdetails\t\e[0mdt |Displays useful infomation about the server."
echo -e "\e[34mbackup\t\e[0mb |Create archive of the server." echo -e "\e[34mbackup\t\e[0mb |Create archive of the server."
echo -e "\e[34mconsole\t\e[0mc |Console allows you to access the live view of a server." echo -e "\e[34mconsole\t\e[0mc |Console allows you to access the live view of a server."
@ -313,8 +313,8 @@ case "$getopt" in
command_validate.sh;; command_validate.sh;;
m|monitor) m|monitor)
command_monitor.sh;; command_monitor.sh;;
et|comms-check) et|test-alert)
command_comms_check.sh;; command_test_alert.sh;;
dt|details) dt|details)
command_details.sh;; command_details.sh;;
b|backup) b|backup)
@ -348,7 +348,7 @@ case "$getopt" in
echo -e "\e[34mupdate-functions\t\e[0muf |Removes all functions so latest can be downloaded." echo -e "\e[34mupdate-functions\t\e[0muf |Removes all functions so latest can be downloaded."
echo -e "\e[34mvalidate\t\e[0mv |Validate server files with SteamCMD." echo -e "\e[34mvalidate\t\e[0mv |Validate server files with SteamCMD."
echo -e "\e[34mmonitor\t\e[0mm |Checks that the server is running." echo -e "\e[34mmonitor\t\e[0mm |Checks that the server is running."
echo -e "\e[34mcomms-check\t\e[0met |Sends test notification." echo -e "\e[34mtest-alert\t\e[0mta |Sends test alert."
echo -e "\e[34mdetails\t\e[0mdt |Displays useful infomation about the server." echo -e "\e[34mdetails\t\e[0mdt |Displays useful infomation about the server."
echo -e "\e[34mbackup\t\e[0mb |Create archive of the server." echo -e "\e[34mbackup\t\e[0mb |Create archive of the server."
echo -e "\e[34mconsole\t\e[0mc |Console allows you to access the live view of a server." echo -e "\e[34mconsole\t\e[0mc |Console allows you to access the live view of a server."
@ -374,8 +374,8 @@ case "$getopt" in
command_update_functions.sh;; command_update_functions.sh;;
m|monitor) m|monitor)
command_monitor.sh;; command_monitor.sh;;
et|comms-check) et|test-alert)
command_comms_check.sh;; command_test_alert.sh;;
dt|details) dt|details)
command_details.sh;; command_details.sh;;
b|backup) b|backup)
@ -408,7 +408,7 @@ case "$getopt" in
echo -e "\e[34mrestart\t\e[0mr |Restart the server." echo -e "\e[34mrestart\t\e[0mr |Restart the server."
echo -e "\e[34mupdate-functions\t\e[0muf |Removes all functions so latest can be downloaded." echo -e "\e[34mupdate-functions\t\e[0muf |Removes all functions so latest can be downloaded."
echo -e "\e[34mmonitor\t\e[0mm |Checks that the server is running." echo -e "\e[34mmonitor\t\e[0mm |Checks that the server is running."
echo -e "\e[34mcomms-check\t\e[0met |Sends test notification." echo -e "\e[34mtest-alert\t\e[0mta |Sends test alert."
echo -e "\e[34mdetails\t\e[0mdt |Displays useful infomation about the server." echo -e "\e[34mdetails\t\e[0mdt |Displays useful infomation about the server."
echo -e "\e[34mbackup\t\e[0mb |Create archive of the server." echo -e "\e[34mbackup\t\e[0mb |Create archive of the server."
echo -e "\e[34mconsole\t\e[0mc |Console allows you to access the live view of a server." echo -e "\e[34mconsole\t\e[0mc |Console allows you to access the live view of a server."

6
lgsm/functions/monitor_gsquery.sh

@ -68,12 +68,12 @@ if [ "${gsquery}" == "yes" ]; then
fn_scriptlog "Querying port: ${ip}:${port} : ${queryattempt} : FAIL" fn_scriptlog "Querying port: ${ip}:${port} : ${queryattempt} : FAIL"
sleep 1 sleep 1
# Send notification if enabled # Send alert if enabled
if [ "${emailnotification}" == "on" ]; then if [ "${emailalert}" == "on" ]; then
subject="${servicename} Monitor - Starting ${servername}" subject="${servicename} Monitor - Starting ${servername}"
failurereason="Failed to query ${servicename}: ${gsquerycmd}" failurereason="Failed to query ${servicename}: ${gsquerycmd}"
actiontaken="restarted ${servicename}" actiontaken="restarted ${servicename}"
comms.sh alert.sh
fi fi
fn_restart fn_restart
break break

6
tests/tests_jc2server.sh

@ -7,10 +7,10 @@ version="271215"
#### Variables #### #### Variables ####
# Notification Email # Alert Email
# (on|off) # (on|off)
emailnotification="on" emailalert="off"
email="[email protected]" email=""
# Steam login # Steam login
steamuser="anonymous" steamuser="anonymous"

6
tests/tests_ts3server.sh

@ -7,10 +7,10 @@ version="071115"
#### Variables #### #### Variables ####
# Notification Email # Alert Email
# (on|off) # (on|off)
emailnotification="on" emailalert="off"
email="[email protected]" email=""
# Start Variables # Start Variables
updateonstart="off" updateonstart="off"

Loading…
Cancel
Save