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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Disk usage in System Info: show history

    Feature Requests
    3
    4
    182
    Loading More Posts
    • 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.
    • necrevistonnezr
      necrevistonnezr last edited by

      Hi,

      maybe this could be an easy modification: Can we show the "history" of disk usage under "System Info"? This could be helpful identifying sudden increases e.g. in app or backup sizes...

      So instead of having one bar showing disk usage at the moment, you have several bars showing disk usage over days / weeks:
      0cfe5c33-b307-423b-8700-314deb7acaec-image.png

      nebulon micmc 2 Replies Last reply Reply Quote 3
      • Moved from Discuss by  nebulon nebulon 
      • nebulon
        nebulon Staff @necrevistonnezr last edited by

        @necrevistonnezr I moved this to the feature request section. Currently we only have real-time data there, so that would require to either get the data we need into collectd and fetch it from there or keep a record on our own.

        1 Reply Last reply Reply Quote 2
        • micmc
          micmc @necrevistonnezr last edited by

          @necrevistonnezr said in Disk usage in System Info: show history:

          Can we show the "history" of disk usage under "System Info"?

          Great and useful suggestion.


          https://marketingtechnology.agency
          For cutting edge web technologies

          1 Reply Last reply Reply Quote 0
          • necrevistonnezr
            necrevistonnezr last edited by necrevistonnezr

            Work-around for the time being: Show disk usage for the last 7 days via SSH login

            nano diskusage.sh (note, I have two local disks that need monitoring; the command below adds date and data for both disks in one line)

            #!/bin/sh
            echo $(date +%F && df -h /dev/sda1 --output=source,fstype,size,used,avail,pcent | tail -n1 && df -h /dev/sdc --output=source,fstype,size,used,avail,pcent | tail -n1)>> /home/USER/Disk.txt
            

            cat Disk.txt

            2021-12-08 /dev/sda1 ext4 1,8T 1,1T 694G 61% /dev/sdc ext4 916G 444G 426G 52%
            2021-12-09 /dev/sda1 ext4 1,8T 1,1T 694G 61% /dev/sdc ext4 916G 445G 426G 52%
            

            crontab -e add

            45 4 * * * sh /home/USER/diskusage.sh >/dev/null 2>&1
            

            nano ~/.bash.rc add

            printf "\t\n" 
            cat /home/kdj/Disk.txt | tail -7
            
            1 Reply Last reply Reply Quote 4
            • First post
              Last post
            Powered by NodeBB