-
Notifications
You must be signed in to change notification settings - Fork 10
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
Default Notification support #25
Comments
Hi, yes this is handled using special client side logic by the uptime kuma webui (the same is btw true for proxies) which I don't plan to replicate, however you can achieve basically the same using autokumas environment:
AUTOKUMA__DEFAULT_SETTINGS: |-
*.notification_id_list: { "1": true } |
Thanks for that! For anyone else who stumbles upon this, louislam/uptime-kuma#4411 has been merged but Uptime Kuma 2.0 (as of this writing) isn't released yet, so you'll likely note errors and no notification fired for docker containers and groups as a URL is currently expected but not included when monitoring those types of monitors. Example log:
|
@BigBoot this doesnt seem to work for me, is there any logging that can give me some hints as to why my default notifier is not checked? |
@johntdyer You will likely need to run a jq query to check that your default notifier is in fact ID of 1, similar to #2 (comment). My default notifier (before blowing away my old config folder) was actually 2. |
@undaunt mine is actually number 1
|
any thoughts ? |
The AUTOKUMA__DEFAULT_SETTINGS works, I've looked at your logs in #11 and autokuma seems to have problems connecting to your uptime kuma instance, which is probably also the reason for the excessive connection count. |
Actually I just noticed you seem to be using static monitors, these are completely static and don't go through any processing right now (i.e. no default settings), if that is what you're trying to do. |
yes, I am using a mix of static and label derived ... trying to codify my entire config.... I was able to get the notification workingby doing an int rather then a string for the label derived AUTOKUMA__DEFAULT_SETTINGS: |-
*.max_retries: 3
- *.notification_id_list: { "1": true }
+ *.notification_id_list: { 1: true } |
That can't be true, the correct syntax is with a string as key |
I'm an idiot , I must have fat fingered something or forgot to save... you're correct string is what works... look over there... something shiny ;-P |
Created #33 re: the static monitors |
I'm doing some testing and it seems that containers created by Autokuma are not given default 'on' notifications even if my provider (in this case ntfy) is set to 'default enabled' as in the below screenshot.
The text was updated successfully, but these errors were encountered: