louislam / uptime-kuma

A fancy self-hosted monitoring tool

Home Page:https://uptime.kuma.pet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support `Binary` body encoding via allowing a File Upload

ltx0633 opened this issue Β· comments

⚠️ Please verify that this question has NOT been raised before.

  • I checked and didn't find similar issue

πŸ›‘οΈ Security Policy

πŸ“ Describe your problem

I have an interface where the post content submitted is binary, but kuma just doesn't support it

πŸ“ Error Message(s) or Log

No response

🐻 Uptime-Kuma Version

latest

πŸ’» Operating System and Arch

centos

🌐 Browser

any

πŸ–₯️ Deployment Environment

  • Runtime: k8s
  • Database: sqlite
  • Filesystem used to store the database on: nfs
  • number of monitors: 10

What UI do you think would be suitable for inputting a binary body for your request?

What UI do you think would be suitable for inputting a binary body for your request?

image

I use the following command to detect the service
curl -XPOST https://${my_services} --data-binary '@install.bin'

What Nelson was probing for is not how you are currently doing this, but rater how this should work.
I think another Body Encoding => file upload field might be the best solution.
image

On another note:

Filesystem used to store the database on: nfs

Please see the warnings in our wiki/readme:

Warning

Filesystem support for POSIX file locks is required to avoid SQLite database corruption. Be aware of possible file locking problems such as those commonly encountered with NFS. Please map the /app/data-folder to a local directory or volume.

Will this make any progress?

What do you mean? Your feature-request is not even a week old..
=> not having much progress on an issue in this timeframe is normal.

I think you are a bit confused about how OpenSource works.
Software is delivered "as is" (no warranty, no guarantees). We are not a company so you are not paying for deliverables/timelines.

=> if you need an additional feature, you can:

  • developing it and contribute the change upstream (see our contribution guide).
  • Give the pull request a πŸ‘πŸ» to give others a better insight in what the rest of the community wants/needs
  • sponsor the project or write out a bounty on this PR..

In case you just wanted to unblock yourself:
Uptime Kuma does have the push-monitor. See https://github.com/louislam/uptime-kuma/tree/master/extra/push-examples for examples on how this can be used.