-
-
Notifications
You must be signed in to change notification settings - Fork 813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Monitor specific lines in game logs that show the server has crashed #1805
Comments
Since I don't use watchdog I don't fully understand what would be required or what you want us to do. Would it be something like LinuxGSM checks watchdog for dead servers and reboots the server? If so LinuxGSM already does this without the need for watchdog. It also queries the server as processes can stay even if the server has locked up. LinuxGSM also relies on cron to run scheduled tasks. If you could provide more detail on how you think this can be achieved any why you think it would be useful that would help |
I have a sample of a watchdog crash:
If my memory isn't fuzzy (I have not touched the logs in a reaallyyy long time), the As you can see from the log, the server process is still alive. So my easiest solution would be to scan for the lines
Then exit the process if the lines are found (sigkill is fine, the process already stopped) |
At this point, I don't think this idea will not be developed. Currently, there are 4 monitoring methods in monitor, session, gamedig, gsquery and TCP. Most game servers support gamedig and gsquery which has to respond within 60 seconds or will be rebooted. If TCP monitor is being used it's possible that the process crashes and the port stays open however very few servers use this. Overall monitor coverage is very good and unless there are examples of monitor failing to pickup crashed servers I believe monitor is currently sufficient. |
I'll make this short. So there's
monitor_jsquery.sh
, however this at best can only monitor the server every minute. I recently found this script here (https://github.com/riemers/wrench/blob/master/wrench) which can detect Watchdog kills and check for them every 10 seconds or so, and it's pretty fast too (watchdog function, line 3794). Having another method of checking for deadsrcds
s would be pretty useful since I usually have watchdog kill my servers, and monitor isn't that effective (had to add-nowatchdog
).The text was updated successfully, but these errors were encountered: