Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Feature Requests
  3. Email notifications of app failures/restarts

Email notifications of app failures/restarts

Scheduled Pinned Locked Moved Feature Requests
notificationsemailresources
19 Posts 8 Posters 3.4k Views 9 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • jccelayaJ jccelaya

    Hi,

    As a business we need to receive email notifications on app failure, restart, lack of resources etc. At the moment they only appear if you log into cloudron.

    I think an option to enable or disable email notifications, if possible per app, would be a great start.

    Realtime notifications can be quite necessary for business usage so i would start with that, if it’s spammy they can just disable notifications and that’s it.

    You can always add the more advanced setting of receiving aggregated crashes in the future instead of realtime.

    Just my two cents.

    Regards,

    murgeroM Offline
    murgeroM Offline
    murgero
    App Dev
    wrote on last edited by
    #2

    @jccelaya there is an app on the appstore that can do this already. Great request regardless, but you can do it right now

    --
    https://urgero.org
    ~ Professional Nerd. Freelance Programmer. ~

    jdaviescoatesJ benborgesB 2 Replies Last reply
    1
    • murgeroM murgero

      @jccelaya there is an app on the appstore that can do this already. Great request regardless, but you can do it right now

      jdaviescoatesJ Offline
      jdaviescoatesJ Offline
      jdaviescoates
      wrote on last edited by
      #3

      @murgero said in Email notifications of app failures/restarts:

      @jccelaya there is an app on the appstore that can do this already. Great request regardless, but you can do it right now

      What app?

      I use Cloudron with Gandi & Hetzner

      murgeroM 1 Reply Last reply
      2
      • murgeroM murgero

        @jccelaya there is an app on the appstore that can do this already. Great request regardless, but you can do it right now

        benborgesB Offline
        benborgesB Offline
        benborges
        wrote on last edited by
        #4

        @murgero I wish Cloudron would have some kind of native integration with self-hosted ntfy.sh

        that would be dope, to organize events alerts

        BenB

        1 Reply Last reply
        3
        • jdaviescoatesJ jdaviescoates

          @murgero said in Email notifications of app failures/restarts:

          @jccelaya there is an app on the appstore that can do this already. Great request regardless, but you can do it right now

          What app?

          murgeroM Offline
          murgeroM Offline
          murgero
          App Dev
          wrote on last edited by
          #5

          @jdaviescoates PHP Server Monitor can do basic TCP / HTTP checks for the apps when configured properly.

          --
          https://urgero.org
          ~ Professional Nerd. Freelance Programmer. ~

          jdaviescoatesJ 1 Reply Last reply
          0
          • murgeroM murgero

            @jdaviescoates PHP Server Monitor can do basic TCP / HTTP checks for the apps when configured properly.

            jdaviescoatesJ Offline
            jdaviescoatesJ Offline
            jdaviescoates
            wrote on last edited by jdaviescoates
            #6

            @murgero ah, right. I thought you meant there was some secret "Cloudron notifications app" I wasn't aware of! πŸ˜„

            I think @timconsidine has also packaged ntfy.sh and uses that and I guess n8n could perhaps be used somehow too.

            But yeah, just having configurable notifications within Cloudron would be better.

            I seem to remember we did used to get email from Cloudron all the time, but some people complained and so they were removed.

            Really configurations options should've been added then imho, or at least there should've been more discussion here before the email notifications were removed (because, as is clear, some people really want them - and those that didn't could've e.g. easily set-up an email rule to bin them).

            I use Cloudron with Gandi & Hetzner

            1 Reply Last reply
            1
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #7

              I think in the past we just carelessly sent out emails left and right. I think we should add back notifications but this time with a little bit more thought and customization πŸ™‚

              jccelayaJ potemkin_aiP 2 Replies Last reply
              6
              • girishG girish

                I think in the past we just carelessly sent out emails left and right. I think we should add back notifications but this time with a little bit more thought and customization πŸ™‚

                jccelayaJ Offline
                jccelayaJ Offline
                jccelaya
                wrote on last edited by
                #8

                @girish said in Email notifications of app failures/restarts:

                I think in the past we just carelessly sent out emails left and right. I think we should add back notifications but this time with a little bit more thought and customization πŸ™‚

                I think an option to enable or disable email notifications globally, if possible per app, would be a great start.

                You can always add the more advanced setting of receiving aggregated crashes for a period of time. Or things like choosing type of notifications you receive.

                1 Reply Last reply
                2
                • girishG girish

                  I think in the past we just carelessly sent out emails left and right. I think we should add back notifications but this time with a little bit more thought and customization πŸ™‚

                  potemkin_aiP Offline
                  potemkin_aiP Offline
                  potemkin_ai
                  wrote on last edited by
                  #9

                  @girish it's really required, as well as an option to choose a delivery method for those notifications - e-mail / push / etc.

                  benborgesB 1 Reply Last reply
                  2
                  • potemkin_aiP potemkin_ai

                    @girish it's really required, as well as an option to choose a delivery method for those notifications - e-mail / push / etc.

                    benborgesB Offline
                    benborgesB Offline
                    benborges
                    wrote on last edited by
                    #10

                    Would love a ntfy.sh integration for this, much easier to "consume" and stay alert on than email in my opinion πŸ™‚

                    BenB

                    potemkin_aiP 1 Reply Last reply
                    3
                    • benborgesB benborges

                      Would love a ntfy.sh integration for this, much easier to "consume" and stay alert on than email in my opinion πŸ™‚

                      potemkin_aiP Offline
                      potemkin_aiP Offline
                      potemkin_ai
                      wrote on last edited by
                      #11

                      @benborges for an urgent notifications - yes, absolutely.

                      I personally prefer Telegram notifications, that are just converted mails.

                      benborgesB 1 Reply Last reply
                      1
                      • potemkin_aiP potemkin_ai

                        @benborges for an urgent notifications - yes, absolutely.

                        I personally prefer Telegram notifications, that are just converted mails.

                        benborgesB Offline
                        benborgesB Offline
                        benborges
                        wrote on last edited by benborges
                        #12

                        @potemkin_ai It seems ntfy is now available in the app store :)))

                        it would be really neat to be able to use ntfy priority management of notifications to on the cloudron side define which notifications are more important than others, so to be able to have silent notifications or very visible popup notification for more important alert, but I guess for this to work, Cloudron should have a notification API that could integrate at the cloudron level with ntfy ?

                        BenB

                        potemkin_aiP 1 Reply Last reply
                        3
                        • benborgesB benborges

                          @potemkin_ai It seems ntfy is now available in the app store :)))

                          it would be really neat to be able to use ntfy priority management of notifications to on the cloudron side define which notifications are more important than others, so to be able to have silent notifications or very visible popup notification for more important alert, but I guess for this to work, Cloudron should have a notification API that could integrate at the cloudron level with ntfy ?

                          potemkin_aiP Offline
                          potemkin_aiP Offline
                          potemkin_ai
                          wrote on last edited by
                          #13

                          @benborges I'm not an expert, but I would be completely satisfied with a generic webhooks that cloudron will trigger and I can then proceed them as required, for example, using n8n

                          benborgesB 1 Reply Last reply
                          5
                          • potemkin_aiP potemkin_ai

                            @benborges I'm not an expert, but I would be completely satisfied with a generic webhooks that cloudron will trigger and I can then proceed them as required, for example, using n8n

                            benborgesB Offline
                            benborgesB Offline
                            benborges
                            wrote on last edited by
                            #14

                            @potemkin_ai agreed, that would make it all super simple to setup, without having to add anything special on cloudron side, perhaps different webhooks for different alerts and then leave to N8N/ntfy node the definition of how it has to be processed.

                            BenB

                            1 Reply Last reply
                            1
                            • SansGuidonS Offline
                              SansGuidonS Offline
                              SansGuidon
                              wrote on last edited by SansGuidon
                              #15

                              Hi, I was just looking for a similar feature in my Cloudron dashboard, I missed a few Reboot required notifications and app crashes notifications and if I forget to connect to Cloudron dashboard, I'll miss opportunities to catch incidents and problems on time.
                              So a big UP on this request ! I believe it's an important one πŸ™‚ , we get email notifications for monitoring new replies on NodeBB so why not for monitoring our critical systems / apps ? πŸ™

                              Another solution I had in mind was to use Changedetection for this purpose, but as I've configured 2FA on my Cloudron instance, this workaround has no chance πŸ˜†

                              Edit: I could workaround this thanks to some automation based on Changedetection, despite my Cloudron is protected with 2FA. I've used some JS lib to calculate the TOTP Verification code and fill the login form on my instance thanks to some JS one liner cooked by ChatGPT πŸ˜†
                              So thanks to Changedetection using Playwright fetch mode -> Browser steps (including JS injection) + visual filter selector, I can now monitor my important notifications.

                              e8daf366-9dae-41fe-a4e8-2c3f84e08add-image.png

                              If interested, the JS code injected in my Browser steps is (one liner)

                              (function(){var s=document.createElement('script');s.src="https://cdnjs.cloudflare.com/ajax/libs/otpauth/9.3.1/otpauth.umd.min.js";s.onload=function(){var u=document.getElementById('inputUsername'),p=document.getElementById('inputPassword'),t=document.getElementById('inputTotpToken');u?u.value="YOUR_CLOUDRON_USERNAME":console.error('Input field with ID "inputUsername" not found.'),p?p.value="YOUR_CLOUDRON_PASSWORD":console.error('Input field with ID "inputPassword" not found.');var totp=new OTPAuth.TOTP({issuer:"ACME",label:"AzureDiamond",algorithm:"SHA1",digits:6,period:30,secret:OTPAuth.Secret.fromBase32("YOUR_CLOUDRON_AUTH_KEY")}),token=totp.generate();t?t.value=token:console.error('Input field with ID "inputTotpToken" not found.');var delta=totp.validate({token:token,window:1});delta!==null?console.log("Token is valid. Delta:",delta):console.log("Token is invalid.");var seconds=totp.period-(Math.floor(Date.now()/1000)%totp.period);console.log("Seconds until token changes:",seconds);var uri=totp.toString();console.log("Key URI:",uri)};document.head.appendChild(s);})();
                              

                              And the browser steps are :
                              36acbbb3-7e91-4447-9c17-2fd1c899a708-image.png

                              About me / Now

                              S 1 Reply Last reply
                              0
                              • SansGuidonS SansGuidon

                                Hi, I was just looking for a similar feature in my Cloudron dashboard, I missed a few Reboot required notifications and app crashes notifications and if I forget to connect to Cloudron dashboard, I'll miss opportunities to catch incidents and problems on time.
                                So a big UP on this request ! I believe it's an important one πŸ™‚ , we get email notifications for monitoring new replies on NodeBB so why not for monitoring our critical systems / apps ? πŸ™

                                Another solution I had in mind was to use Changedetection for this purpose, but as I've configured 2FA on my Cloudron instance, this workaround has no chance πŸ˜†

                                Edit: I could workaround this thanks to some automation based on Changedetection, despite my Cloudron is protected with 2FA. I've used some JS lib to calculate the TOTP Verification code and fill the login form on my instance thanks to some JS one liner cooked by ChatGPT πŸ˜†
                                So thanks to Changedetection using Playwright fetch mode -> Browser steps (including JS injection) + visual filter selector, I can now monitor my important notifications.

                                e8daf366-9dae-41fe-a4e8-2c3f84e08add-image.png

                                If interested, the JS code injected in my Browser steps is (one liner)

                                (function(){var s=document.createElement('script');s.src="https://cdnjs.cloudflare.com/ajax/libs/otpauth/9.3.1/otpauth.umd.min.js";s.onload=function(){var u=document.getElementById('inputUsername'),p=document.getElementById('inputPassword'),t=document.getElementById('inputTotpToken');u?u.value="YOUR_CLOUDRON_USERNAME":console.error('Input field with ID "inputUsername" not found.'),p?p.value="YOUR_CLOUDRON_PASSWORD":console.error('Input field with ID "inputPassword" not found.');var totp=new OTPAuth.TOTP({issuer:"ACME",label:"AzureDiamond",algorithm:"SHA1",digits:6,period:30,secret:OTPAuth.Secret.fromBase32("YOUR_CLOUDRON_AUTH_KEY")}),token=totp.generate();t?t.value=token:console.error('Input field with ID "inputTotpToken" not found.');var delta=totp.validate({token:token,window:1});delta!==null?console.log("Token is valid. Delta:",delta):console.log("Token is invalid.");var seconds=totp.period-(Math.floor(Date.now()/1000)%totp.period);console.log("Seconds until token changes:",seconds);var uri=totp.toString();console.log("Key URI:",uri)};document.head.appendChild(s);})();
                                

                                And the browser steps are :
                                36acbbb3-7e91-4447-9c17-2fd1c899a708-image.png

                                S Offline
                                S Offline
                                shrey
                                wrote on last edited by
                                #16
                                This post is deleted!
                                1 Reply Last reply
                                0
                                • potemkin_aiP Offline
                                  potemkin_aiP Offline
                                  potemkin_ai
                                  wrote on last edited by
                                  #17

                                  Another way - it's to use Cloudron's API - https://github.com/NoCloud-today/CloudronWatcher

                                  1 Reply Last reply
                                  2
                                  • SansGuidonS Offline
                                    SansGuidonS Offline
                                    SansGuidon
                                    wrote on last edited by SansGuidon
                                    #18

                                    @Potherca Thanks for the inspiration ! I forgot that Cloudron had an API. Good to know, then using the API TOKEN created through user's Cloudron profile, a simple CURL could be enough
                                    curl https://YOUR_CLOUDRON_DOMAIN/api/v1/notifications -H "Authorization: Bearer YOUR_API_TOKEN" and that could be used with Changedetection or anything like n8n also πŸ™‚

                                    About me / Now

                                    potemkin_aiP 1 Reply Last reply
                                    2
                                    • SansGuidonS SansGuidon

                                      @Potherca Thanks for the inspiration ! I forgot that Cloudron had an API. Good to know, then using the API TOKEN created through user's Cloudron profile, a simple CURL could be enough
                                      curl https://YOUR_CLOUDRON_DOMAIN/api/v1/notifications -H "Authorization: Bearer YOUR_API_TOKEN" and that could be used with Changedetection or anything like n8n also πŸ™‚

                                      potemkin_aiP Offline
                                      potemkin_aiP Offline
                                      potemkin_ai
                                      wrote on last edited by
                                      #19

                                      @SansGuidon you are absolutely welcome πŸ™‚

                                      1 Reply Last reply
                                      1
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes


                                      • Login

                                      • Don't have an account? Register

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • Bookmarks
                                      • Search