mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 14:15:59 +03:00
[GH-ISSUE #3332] [FEATURE] More Alerting Options for VHSERVER #2294
Labels
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/LinuxGSM#2294
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PoppaShell on GitHub (Mar 4, 2021).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3332
User Story
I would like to see more Alerting Options for pretty much anything that causes or needs a server restart. The only one I am seeing work at the moment is when "./vhserver update" is run and found an update was available and therefore restarts to apply it. And maybe some of these below requests are already a thing and I just haven't figured out how to configure them. If that is the case, my apologies.
Basic info
Further Information
I have setup Alerting to push to Discord via the webhook. But I have noticed that the only Alert I am seeing is if the VHSERVER does an update from the cron job I have to hourly run "./vhserver update". I also have a cron job to run "./vhserver backup" every 8 hours. And since this of course shuts down, backup and restarts the server, it would be great to push an Alert to Discord that this is happening so my community doesn't have to guess at what is happening based on time of day. Additionally, it would be nice to pretty much Alert on anything that would cause the server to reboot. Whether that be a manual restart from "./vhserver restart", a restart from "./vhserver monitor" finding the server is not online and starts it back up, etc. And a big bonus would be, if we could set up Alerts giving a heads up when possible for scheduled things that cause a restart like Update, Backup, Update-LGSM, etc. What this would look like is "Alert: Server will restarting for backup in 15mins" and then the same Alert but for 5mins, & 3-2-1mins, for example. Same for schedule restarts. Hope that all makes sense.
@rconjoe commented on GitHub (Mar 5, 2021):
[Monitoring] might be of assistance to you!
@PoppaShell commented on GitHub (Mar 14, 2021):
@rconjoe Can you elaborate a little, please? The Monitor Command currently runs on a Cron every 5 mins to check server status and other details and will restart the server if it is stopped. Is there something I am missing about the Monitor command that could satisfy my request for additional Alert types to output to Discord?
@dgibbs64 commented on GitHub (Mar 14, 2021):
Basically, The feature already exists. 😃
https://docs.linuxgsm.com/alerts
@dgibbs64 commented on GitHub (Mar 14, 2021):
There isnt a specific alert for backup and restart though so that might be a good addition
@PoppaShell commented on GitHub (Mar 14, 2021):
@dgibbs64 Yeah, I read the docs and have the current basic alerting on. But if you read my request, I stated that. And that basically the only Alert that has fired to Discord is when Valheim gets an update. A LinusGSM update hasn't dropped since I have been using it until this latest drop. A Cron is set to run update-lgsm tonight, so we will see if that fires an Alert. But my addition requests for further Alerting enhancements still stand. So I am glad you reopened this and pointed out that at least the backup alert would be a decent idea.
@dgibbs64 commented on GitHub (Mar 14, 2021):
There isnt a specific alert for a LinuxGSM update as it doesn't restart the server. But again that might be a useful one to add just as an FYI. You will however get an alert if _default.cfg is updated
@PJGuyTen commented on GitHub (Mar 21, 2021):
I created a custom alert function and use it to trigger alerts for backups. I created a branch for it, but I get permission denied trying to push my branch. Sorry if this is a noob question, but how do I gain permission?
remote: Permission to GameServerManagers/LinuxGSM.git denied to PJGuyTen. fatal: unable to access 'https://github.com/GameServerManagers/LinuxGSM.git/': The requested URL returned error: 403@PoppaShell commented on GitHub (Mar 21, 2021):
@PJGuyTen You can't push a branch into their master unless you are an approved member of their development team. You have to do a pull request and contribute your recommended changes/additions to that. Then when/if they approve of your work, they can choose to merge it into the master.
@PJGuyTen commented on GitHub (Mar 21, 2021):
@PoppaShell ah ok, I had created my own branch and tried to push it that way
git push origin feature/custom-alerts(this is how I do it at work). I'll do it the way you suggested. Thanks!@PoppaShell commented on GitHub (Mar 22, 2021):
@PJGuyTen Yeah. That totally makes sense for it to be that way for you at your work since you would have permissions to that development project. When you want to contribute to other people's development projects, you have to usually follow the method I specified.
@PJGuyTen commented on GitHub (Mar 22, 2021):
@PoppaShell Thanks for the tip! TIL
@dgibbs64 commented on GitHub (Oct 20, 2023):
https://github.com/GameServerManagers/LinuxGSM/pull/4345
@dgibbs64 commented on GitHub (Oct 21, 2023):
This issue isnt fully addressed in the alerts refactor but is mostly. The feature of giving several minutes warning is not yet done as it would require some planning and thought on how best to implament. However alerts should now trigger on any options that require a server reboot.
If anything is missed please let me know on next release of LinuxGSM
@github-actions[bot] commented on GitHub (Nov 11, 2024):
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.