mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
Help with configuration #3589
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#3589
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 @vellanix on GitHub (Sep 5, 2024).
⚠️ Please verify that this question has NOT been raised before.
🛡️ Security Policy
📝 Describe your problem
I need some help to configure a monitor.
I have to call a URL that return a JSON and then check a value in the JSON.
curl https://pool.braiins.com/accounts/profile/json/btc/ -H "SlushPool-Auth-Token: xxxxxxxxxxxxxxx"
that return
{ "username": "vellanix", "btc": { "low_workers": 0, "off_workers": 0, "ok_workers": 4, "dis_workers": 0, } }and I want to check that the value of "ok_workers" is 4.
My monitoring setup is:

but unfortunately doesnt work, and in the LOG file I see:
2024-09-05T11:46:21+02:00 [MONITOR] WARN: Monitor #8 'Workers': **Failing: Cannot read properties of undefined (reading 'toString')** | Interval: 60 seconds | Type: json-query | Down Count: 0 | Resend Interval: 0What's wrong?
Thank you
📝 Error Message(s) or Log
2024-09-05T11:46:21+02:00 [MONITOR] WARN: Monitor #8 'Workers': Failing: Cannot read properties of undefined (reading 'toString') | Interval: 60 seconds | Type: json-query | Down Count: 0 | Resend Interval: 0
🐻 Uptime-Kuma Version
1.23.13
💻 Operating System and Arch
docker
🌐 Browser
chrome
🖥️ Deployment Environment
@CommanderStorm commented on GitHub (Sep 17, 2024):
Sorry for the late reply
First of all, are you sure that the above is returned from the API? The reason I am asking is that that is not valid JSON (see the last
,).Could you try
$.btc.ok_workers?We have improved the provided docs for this, but this is waiting for #4500
If this does not work, I am asssuming this is because the invalid JSON issue noted above 👀
@github-actions[bot] commented on GitHub (Nov 16, 2024):
We are clearing up our old
help-issues and your issue has been open for 60 days with no activity.If no comment is made and the stale label is not removed, this issue will be closed in 7 days.