louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
57.38k stars 5.18k forks source link

[Feature Request] Bulk Edit #455

Open rg9400 opened 3 years ago

rg9400 commented 3 years ago

Is your feature request related to a problem? Please describe. For the various monitors, some of the settings are consistent, e.g. the interval between checks. If you have a lot of monitors (70 in my case), it becomes cumbersome to change each one manually when I want to make a bulk edit.

Describe the solution you'd like It would be nice to give an option to bulk edit and bulk delete monitors.

Describe alternatives you've considered Manually edit each monitor, or edit the DB. One is time consuming, the other is potentially risky/destructive.

Neer171 commented 3 years ago

yeah it will be great.

utlilb commented 3 years ago

Along with this a bulk pause/resume option.

yllekz commented 2 years ago

Would be super interested in this. I need to take my NAS down for maintenance and I currently have a separate server monitoring each and every individual Docker container hosted on it. Presently I need to click into each monitor and pause them but it would be cool to just be able to change into a "bulk" mode and pause them that way.

Computroniks commented 2 years ago

Just going to link in #1457 here. They are not the same but closely related.

stanthewizzard commented 2 years ago

yes would be awesome for all the settings :)

jeroenrotty commented 1 year ago

Just started using Uptime Kuma the last week and I'm missing this badly.

edewillians10 commented 1 year ago

so sad we can't add multiple URL for sure this would be a great feature to have

rhtenhove commented 1 year ago

There's a way to do bulk editing if you're not afraid to do SQL queries.

For example, after installing the tool sqlite3, the following will set the retries for all monitors to 5.

sqlite3 kuma.db "UPDATE monitor SET maxretries = 5;"

Adding monitors (and other scripted changes such as the above) can probably easily be automated using this project.

sourcecodemage commented 1 year ago

Is the value read by the application "live" or would I need to restart uptime kuma after making the change?

I installed uptime kuma yesterday, set up a bunch of monitoring, and rebooted my virtualization hosts that everything runs on today. Wow, I got a flood of down and up alerts. There might be another way to avoid getting them, but I like allowing for short downtimes for reboots and application restarts . Especially now when I'm re-organizing my home network and moving apps to new homes.

rhtenhove commented 1 year ago

It's undocumented, so all bets are off. Give it a go and see what happens. Perhaps some monitors will read the value over time. I would recommend making such changes while uptime kuma is down, to prevent inconsistencies.

CommanderStorm commented 1 year ago

@sourcecodemage Sorry to necropost (mybe this can help you still): What you are searching for is declaring a maintenance window (basically a notification pause)

CommanderStorm commented 1 year ago

Along with this a bulk pause/resume option.

https://github.com/louislam/uptime-kuma/pull/1886 which is slated to be in the 1.23 release is doing work which could allow for editing in a PR down the line

jaxjexjox commented 1 year ago

I will personally donate 20 us dollars towards the project for bulk edit mode.

It will solve a variety of issues I have.

Your hard work is appreciated.

I recommend others consider offering some kind of bounty.

Thank you for your time! It's very much appreciated

To be clear I suspect some kind of messy, large, almost excel spreadsheet looking interface would be easiest for this.

It won't be pretty and it will look bad on mobile, but for those of us on desktop, trying to get things done, this could be a massive time saver.

Thank you

arazilsongweaver commented 10 months ago

I would like to see a bulk edit function similar to the SolarWinds Orion product line.

On those products, you select the items you want to edit from the list and then hit the "Edit" button. That brings you to a modified device configuration screen. The screen looks like an individual configuration screen but with a few differences:

I have found this method to be extremely efficient for editing large groups of devices that require certain uniform parameters.

jaxjexjox commented 7 months ago

Does anyone know if there's intention to look at this short or long term? Any ideas being thrown around about potential solutions?

CommanderStorm commented 7 months ago

if there's intention to look at this short or long term

When you look at recent releases, we have made some progress in this regard. image

Though, no plan has been made for concrete solutions to this subproblem. I also don't know how we should approach this (read: how does this functional and architectural work), as this seems like a huge (and difficult to get right) issue.

For the next 2 or 3 releases, I think this is not something that core maintainers will tackle (fixing performance, user management and the api are big enough changes). Though, this is open source => timelines are fluid, our contribution guide is here... 😉

jaxjexjox commented 7 months ago

I really appreciate the help and I maintain my $20 US bounty <3

I just want a big, giant, messy, nasty, sheet with all the fields open in front of me, that I can double click on a field, change something.

(example heartbeat interval, choosing the monitor group, etc)

Like I said I think the best solution is a horribl ugly, giant page (for the time being