Replies: 1 comment 1 reply
|
I was looking for a solution to handle this as well. I thought that Heartbeat Monitoring was the answer, but unfortunately after painstaking hours of testing, I discovered the feature was only limited to the Beszel Hub and cannot be used with Agents. I was going to leverage Uptime Kuma's Push monitoring type, but that unfortunately won't work with Agents. So the solution I came up with was to leverage the PocketBase Rest API. Here are the steps to get this to work:
Do not use the Authentication field because the header must not be prefixed with a specific type, like Bearer. You must set the custom header instead of using Uptime Kuma's Authentication method. Feel free to customize the header as needed, but the fields mentioned above should be all you need for each of your Binary Agents. For the URL, if you're using a reverse proxy, you can/should omit the port (8090), and replace [IP] with your FQDN. I hope this helps. EDIT: I'll report back if setting the Token Duration to 0 doesn't work by causing the token to expire after a specific time. According to the docs, it states:
But in the doc's API keys section it also states this, which makes things a little confusing:
|
Uh oh!
There was an error while loading. Please reload this page.
Description
I have the agent binary running on a raspberry pi and I want to add a check into Uptime Kuma. If I curl raspi:45876, I get "Received HTTP/0.9 when not allowed", so the agent seems to have an open port, but how do I do any sort of health check on that?
OS / Architecture
Linux/Received HTTP/0.9 when not allowed
Beszel version
0.17.0
Installation method
Binary
Configuration
No response
Hub Logs
No response
Agent Logs
No response
All reactions