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. Emailing notifications of certain crucial system events, such as full disk space

Emailing notifications of certain crucial system events, such as full disk space

Scheduled Pinned Locked Moved Feature Requests
notifications
18 Posts 11 Posters 1.7k Views 11 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.
  • BrutalBirdieB BrutalBirdie

    @dev-cb said in Emailing notifications of certain crucial system events, such as full disk space:

    Backup volume not found/unmounted;
    Disk usage exceeds a threshold;
    Service X not running since X minutes → indicates a problem;
    … you name it.

    I agree with parts of your statement.
    Yes an email notification about running out of space would be nice.
    Why did the system do a local backup instead of notifying about the missing mount, or even better just try to remount the storage and then do the backup?
    (I believe I talked with @nebulon about this and this should be fixed with the new update? big emphasis on believe since I am not sure if we really talked or my mind is playing games with me šŸ˜› )

    But now we come into a territory where Clouron it self would have to implement a full monitoring solution it self.
    "Don't re-invent the wheel"

    I use Zabbix for all my systems.
    No there is no Zabbix app for Cloudron yet.

    With Zabbix I can monitor everything.
    Disk Usage, docker status Cloudron API and more.
    You want to see some data for a system? Sure here:
    fd205002-1c2d-4e4d-8064-2450325b2c9b-image.png
    eb598e01-251f-4c20-a75c-a8c4a1ff2820-image.png

    I monitor each container, I have all statistics space, ram, cpu for each container.
    DATA!!!

    Also I can setup notification flows and states about how critical an error is and when to start notifying people.
    Usage: 75% Warning 80% Average 85% High 90% Critical 95% Disaster.
    And can define groups where to send messages at each level and with what media.
    Warning only via Rocket Chat and E-Mail, High>Critical Mobile Push Telegram Bot / SMS / Alarm.

    yada yada yada.

    I am unsure if it would be good to re-invent the wheel here.
    To a certain degree OK but we should be careful.

    I think this will end up in an initial feature which is going to grow because people will want more functionality for the internal monitoring.

    . . .

    Hope you can understand why I am concerned about this becoming a feature since the overhead could become rather large.

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

    @BrutalBirdie Can you just describe how your Zabbix system is running, I'm guessing outside of the cloudron vps right ?

    BenB

    BrutalBirdieB 1 Reply Last reply
    1
    • benborgesB benborges

      @BrutalBirdie Can you just describe how your Zabbix system is running, I'm guessing outside of the cloudron vps right ?

      BrutalBirdieB Offline
      BrutalBirdieB Offline
      BrutalBirdie
      Partner
      wrote on last edited by BrutalBirdie
      #6

      @benborges
      Zabbix is running on a Master Node and each Client has an Agent. (Yes the master is an external System)
      Zabbix can monitor clients active and passive.
      Passive means the Master asks the system for data and the system delivers.

      This does not always work within special networks where the master can not reach the client.
      Then you use active monitoring then the client reports all data in a certain interval to the master.

      There can be a master / slave / proxy setup for big scale monitoring solutions. (Google Zabbix HA Cluster Setup for more details)

      For more in detail please consult the doc: https://www.zabbix.com/documentation/current/en/manual/introduction/about

      Like my work? Consider donating a drink. Cheers!

      1 Reply Last reply
      2
      • A Offline
        A Offline
        AmbroiseUnly
        wrote on last edited by
        #7

        I also encountered "disk full" issue, and I was quite dumbfounded there was no email notification for this, that seems pretty basic as far as monitoring goes.

        Cloudron is well-placed to add this functionality, and it would save us so much headaches.

        girishG 1 Reply Last reply
        1
        • A AmbroiseUnly

          I also encountered "disk full" issue, and I was quite dumbfounded there was no email notification for this, that seems pretty basic as far as monitoring goes.

          Cloudron is well-placed to add this functionality, and it would save us so much headaches.

          girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by girish
          #8

          @AmbroiseUnly for some reason, linux doesn't have an event when nearing full disk space. The only way to do this then is to keep polling aggressively but this causes a lot of disk churn. Also, the notification is then limited to how frequently you can poll. There is some quota support but it needs also kernel support (which Cloudron cannot control).

          robiR 1 Reply Last reply
          0
          • A Offline
            A Offline
            AmbroiseUnly
            wrote on last edited by
            #9

            Would it be possible to have a guide then? Something with best-practices in mind.

            Another user mentioned Zabbix, but it feels complicated to use (the doc isn't so friendly, it doesn't look simple). I don't know if that really is complex to set up, but a guide with some sort of "Cloudron recommendation" would be really nice.

            Typically, something that covers how to get alerted (email) when disk reaches 50/75/90/95/99/100% capacity, and maybe also some CPU watchers. A guide covering it from "how to install it" to "how to configure it" would be really helpful.

            Also, if it uses a Cloudron App, it might also be beneficial for Cloudron, because customers would reach 3 Cloudron apps quicker, meaning more sales for you.

            1 Reply Last reply
            0
            • necrevistonnezrN Offline
              necrevistonnezrN Offline
              necrevistonnezr
              wrote on last edited by necrevistonnezr
              #10

              You could do something like this via cron and maybe ntfy.
              We had a discussion like this already, see an example here: https://forum.cloudron.io/post/72148

              Otherwise, googling cron alert disk full mail brought up e.g.
              https://askubuntu.com/questions/1503361/script-to-notify-via-email-when-low-on-disk-space or https://github.com/corneliusroot/QuickStatus

              1 Reply Last reply
              2
              • A Offline
                A Offline
                AmbroiseUnly
                wrote on last edited by
                #11

                For anyone interested in configuring proper monitoring on your Cloudron server, I wrote a guide about it, and I hope you'll find it useful! šŸ™‚

                It's the kind of guide I wish I would have found when first looking at this topic.

                1 Reply Last reply
                1
                • K Offline
                  K Offline
                  kahrpatrick
                  wrote on last edited by kahrpatrick
                  #12

                  I am wondering if this might be possible by now. I just got the notification "Server is running out of disk space" on the Cloudron notification tab. Since there is already the possibility to subscribe to email alerts for events like "App is down", couldn't this event be added as well?
                  I like the idea of Cloudron being a self-contained system, so I don't want to add a custom monitoring system to it that needs to be maintained along side it.

                  1 Reply Last reply
                  1
                  • J Offline
                    J Offline
                    joseph
                    Staff
                    wrote on last edited by
                    #13

                    Email notification can be added but it will be unreliable (and don't want to mislead users). See https://forum.cloudron.io/topic/7555/emailing-notifications-of-certain-crucial-system-events-such-as-full-disk-space/8

                    K 1 Reply Last reply
                    1
                    • girishG girish

                      @AmbroiseUnly for some reason, linux doesn't have an event when nearing full disk space. The only way to do this then is to keep polling aggressively but this causes a lot of disk churn. Also, the notification is then limited to how frequently you can poll. There is some quota support but it needs also kernel support (which Cloudron cannot control).

                      robiR Offline
                      robiR Offline
                      robi
                      wrote on last edited by
                      #14

                      @girish How about a more indirect solution?

                      Something that correlates to disk space, such as inodes or other low cost checks.

                      If not that, then how about creating a safety system for Cloudron, let's call it AirBag with ABS brakes for when you're about to crash it deploys in a controlled way.

                      AirBag with ABS might look like a series of 10 eager zeroed files evenly dividing a threshold of say 1GB always present on disk. When the system runs out of disk, 1 of 10 is deleted and a notification is sent. Repeat 4 more times, then wait.

                      That way the system has a controlled descent to 0 and some left for when an admin comes by and needs some space to work with.

                      Thoughts?

                      Conscious tech

                      timconsidineT 1 Reply Last reply
                      1
                      • robiR robi

                        @girish How about a more indirect solution?

                        Something that correlates to disk space, such as inodes or other low cost checks.

                        If not that, then how about creating a safety system for Cloudron, let's call it AirBag with ABS brakes for when you're about to crash it deploys in a controlled way.

                        AirBag with ABS might look like a series of 10 eager zeroed files evenly dividing a threshold of say 1GB always present on disk. When the system runs out of disk, 1 of 10 is deleted and a notification is sent. Repeat 4 more times, then wait.

                        That way the system has a controlled descent to 0 and some left for when an admin comes by and needs some space to work with.

                        Thoughts?

                        timconsidineT Offline
                        timconsidineT Offline
                        timconsidine
                        App Dev
                        wrote on last edited by timconsidine
                        #15

                        @robi nice idea

                        1 Reply Last reply
                        2
                        • J joseph

                          Email notification can be added but it will be unreliable (and don't want to mislead users). See https://forum.cloudron.io/topic/7555/emailing-notifications-of-certain-crucial-system-events-such-as-full-disk-space/8

                          K Offline
                          K Offline
                          kahrpatrick
                          wrote on last edited by
                          #16

                          @joseph said in Emailing notifications of certain crucial system events, such as full disk space:

                          Email notification can be added but it will be unreliable (and don't want to mislead users). See https://forum.cloudron.io/topic/7555/emailing-notifications-of-certain-crucial-system-events-such-as-full-disk-space/8

                          Sure, I do understand those limitations. I was just thinking that it would be nice to have an email notification equivalent (maybe with a note pointing out the limitations) for every notification type shown in the Cloudron dashboard.

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

                            Currently, we run df every 30 mins. Maybe this is accurate enough already. In which case, what is missing is the email notification . Can add that for next release.

                            K 1 Reply Last reply
                            3
                            • girishG girish

                              Currently, we run df every 30 mins. Maybe this is accurate enough already. In which case, what is missing is the email notification . Can add that for next release.

                              K Offline
                              K Offline
                              kahrpatrick
                              wrote on last edited by
                              #18

                              @girish That sounds great! The last two incidents were this would have helped me were developing over several days (exploding Rocket.Chat logs and syslog.js), so this should be within the necessary precision to prevent this type of situation.

                              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