[How-To] Valheim monitoring or other udp services
See original GitHub issueI 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;fi
Then I used the HTTP(s) Keyword request to look for a 1 at given address.

Note: If this “Issue” isnt valid just delete it.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Valheim: how to set up a dedicated server - Rock Paper Shotgun
Valheim Port-Forwarding and IP Address explained · Hit Start+R and type in "wf. · Click on "Inbound Rules", then right-click it and select...
Read more >Dedicated Server setup and management with GSM
Takes you through the process of setting up a Valheim server with Game Server Manager which automates things & provides a host of...
Read more >How to set up a Valheim Dedicated Server | Shacknews
Valheim Dedicated Server troubleshooting · Search Windows Defender Firewall and open it · Select Advanced settings · Select Inbound Rules · Choose ...
Read more >Valheim | Grafana Labs
You must have your Valheim server set to PUBLIC and have port forwarding setup for your steam query port (Valheim Port number +1),...
Read more >Valheim dedicated server windows firewall. They can be ...
They can be encoded using the following tran Valheim uses several UDP ports for ... Valheim Dedicated Server Setup | Host a FREE...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

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
If it is using steam server, uptime kuma is already supported it.