-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Add GameDig monitor #2566
Add GameDig monitor #2566
Conversation
https://github.com/gamedig/node-gamedig/blob/master/games.txt This monitor will be perfect if the game field is a dropdown instead of a free text field. Moreover, autofill in the port if it is empty. |
Autofill in the port may not be necessary. When you tell gamedig the game type, it will automatically resolve the port to use (defaults and through SRV records). It would probably be good to see if we could make port optional for gamedig. A game dropdown would be great though, I guess the dropdown list would have to be an object with an ID and a displayname so it is easy to select a game by name without knowing the ID. |
A gamedig monitor would we great. @WhyKickAmooCow Are you working on the game dropdown? gamedig's Regarding the port: I'd say letting gamedig guess the port every single time is not ideal. Especially because gamedig uses a port offset for some games, which it always applies (see lib/QueryRunner.js#L33). For a Battlefield 4 server using query port 47200, gamedig
Server admins generally know their query port settings (or can find out rather easily). Thus I would say a much better option is to fill the port field with a default (which can be determined based on data from Numer of queries sent (Battlefield 4 example)
|
Thanks, maybe I try to add today. |
const state = await Gamedig.query({ | ||
type: this.game, | ||
host: this.hostname, | ||
port: this.port | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you add givenPortOnly: true
here, you can avoid the multiple query issue I described.
Really nice! Do you plan on adding the |
Oh I forgot to add this. Should be ok now: 9cc3bd0 |
Brilliant! Really looking forward to the next release with gamedig support. |
Just seen this has been added. Great news. Thank you |
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#can-i-create-a-pull-request-for-uptime-kuma
Tick the checkbox if you understand [x]:
Description
This pull request adds support for using GameDig as a monitor, this allows rich game server monitoring rather than the apparently unreliable method of using the TCP monitor.
Fixes #1053
Fixes #479
Fixes #525
Type of change
Checklist
(including JSDoc for methods)
Screenshots (if any)
Please do not use any external image service. Instead, just paste in or drag and drop the image here, and it will be uploaded automatically.