Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defaults for interval/retry or bulk edit #2590

Closed
1 task done
luckman212 opened this issue Jan 12, 2023 · 3 comments
Closed
1 task done

Defaults for interval/retry or bulk edit #2590

luckman212 opened this issue Jan 12, 2023 · 3 comments
Labels
feature-request Request for new features to be added

Comments

@luckman212
Copy link
Contributor

luckman212 commented Jan 12, 2023

⚠️ Please verify that this feature request has NOT been suggested before.

  • I checked and didn't find similar feature request

🏷️ Feature Request Type

Other

🔖 Feature description

It would be awesome if:

  • defaults could be set somewhere so new monitors default to 60-3-20 (for example)
  • we could select multiple monitors (of same type) and change the parameters en masse

✔️ Solution

After setting up 40 or so ICMP monitors, I started getting false alarms with 1 dropped ping packet. I realized the defaults of 60-0-60 are not ideal for me. I prefer 60-3-20. But now I have to manually edit each monitor and re-save it.

❓ Alternatives

I think I could execute some SQL directly on the db to do the bulk update of these parameters, but I am not sure if that is safe.

📝 Additional Context

No response

@luckman212 luckman212 added the feature-request Request for new features to be added label Jan 12, 2023
@luckman212
Copy link
Contributor Author

For now, I poked around the SQLite db and figured out how to do it manually.

List all monitors with some detail

# sqlite3 -header /app/data/kuma.db 'select id,type,name,hostname,interval,maxretries,retry_interval from monitor'

Update all ICMP monitors that don't have retries==3 and interval==20:

# sqlite3 /app/data/kuma.db 'UPDATE monitor SET maxretries = 3, retry_interval = 20 WHERE type = "ping" AND (maxretries != 3 OR retry_interval != 20)'

@CommanderStorm
Copy link
Collaborator

@luckman212
I think this is a partial duplicate of #455
Duplicates only create immortal zombies and are really hard to issue-manage.
Could you edit your issue (description + title) to make this unique? ^^

@luckman212
Copy link
Contributor Author

@CommanderStorm You are correct, this appears to be a duplicate of #455. I will close this one, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features to be added
Projects
None yet
Development

No branches or pull requests

2 participants