mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
Valheim/udp service monitoring #524
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#524
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 @Setsua on GitHub (Nov 3, 2021).
I was looking for a way to monitor valheim with uptime kuma which is not (yet?) possible with Uptime Kuma.
But I found a workaround which could help a few people.
I've installed nginx on my valheim server.
I've added a cronjob which checks every minute if the process is running and post a 1 into a html file, if not echo a 0 into it.
* * * * * if [ $(pidof ./valheim_server.x86_64) ]; then echo 1 > /var/www/html/index.html; else echo 0 > /var/www/html/index.html;fiThen I used the HTTP(s) Keyword request to look for a 1 at given address.
Note: If this "Issue" isnt valid just delete it.
#551
#9
@deefdragon commented on GitHub (Nov 3, 2021):
This would likely be better done with a push based monitor. No need to go through with installing nginx on the machine. Just send the response to kuma directly.
@takaze212 commented on GitHub (Nov 4, 2021):
nano /opt/check_service.shmake executable
chmod +x /opt/check_service.shcreate contab, run every minute
crontab -e* * * * * /opt/check_service.sh [[YOUR_SERVICENAME_HERE]] [[YOUR_UPTiME_PUSH_URL_HERE]] > /dev/nullenjoy :)
//edit: typos fixed
@Setsua commented on GitHub (Nov 6, 2021):
Thanks. Did not know of push api calls. Way better solution.
@rezzorix commented on GitHub (Nov 10, 2021):
Could be more reliable and easier to check your Valheim Server status using the steam api...
You get your api key here: https://steamcommunity.com/dev/apikey
This would be the link to a site that gives you all information available for your server in json format:
https://api.steampowered.com/IGameServersService/GetServerList/v1/?filter=\appid\892970\addr\your-server-ip:port&key=steamapikeyThe "appid" above is already the Valheim app ID - you can of course get this info for other servers, too, just check on steam.
You can see an example of how it is implemented on a website here
@louislam commented on GitHub (Nov 10, 2021):
If it is using steam server, uptime kuma is already supported it.
@rezzorix commented on GitHub (Nov 11, 2021):
Yes, but in Uptime with Steam-Monitor you will only get the online status.
If you directly parse the json output of the API you get also things like "players online", "bots online", "server version", etc. etc. (depending on what the game provides)
@aarste commented on GitHub (Dec 19, 2021):
What should be put into the hostname and port fields for Steam Game Server? I have an anonymously installed valheim server (via steamcmd) running public on a windows machine 192.168.1.11 with ports 2456-2458 exposed. Uptime Kuma also has my steam API in the settings but the check fails with the following attempts:
192.168.1.11
htpc.home
public static IP
port 2456
This address returns a {"response":{}}
https://api.steampowered.com/IGameServersService/GetServerList/v1/?filter=\appid\892970\addr[public ip removed]:2456&key=[key removed]
@rezzorix commented on GitHub (Dec 20, 2021):
Is your server reachable from the outside on your public IP?
Did you configure correct port forwarding in your router?
@rezzorix commented on GitHub (Dec 20, 2021):
Oh and just another note; if not explicitly set different, the query port for Valheim server should be 2457
@aarste commented on GitHub (Dec 20, 2021):
That port number fixed it for me, steam web api shows my stats and uptime kuma is able to see it now, thank you!
@MWG-Logan commented on GitHub (Jun 10, 2022):
thank you massively for this- solid workaround to no gamedig in some situations
@InsertDisc commented on GitHub (Oct 16, 2022):
I've installed a Satisfactory Server exactly the same way 'anonymous with steamcmd' and am also getting a no response and have no idea what I'm doing wrong. Tried every port that I can think of that the server uses to no avail.
@CommanderStorm commented on GitHub (Dec 10, 2023):
Closing as valheim is supprorted via the
gamedigmonitor: https://github.com/gamedig/node-gamedig/blob/master/GAMES_LIST.mdNo extra monitor nessesary
=> closing as resolved