Expedition Dashboard chart for disk usage

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Expedition Dashboard chart for disk usage

L1 Bithead

I have a new install of Expedition and moved the /data to a bigger partition. On the dashboard page the under ML Health, the DISK usage shows to correct size. However on the chart, the disk is showing the / root directory which is on a different partition. Does anyone know where I can update the chart to use /data instead of / root directory? I included a screen shot of the Dashboard area.

1 accepted solution

Accepted Solutions

L1 Bithead

I found the $path / to update the chart in file /var/www/html/libs/cpu_status_functions.php

    try {
        $path = '/data';
        $diskStatus = new DiskStatus($path);
        $totalSpace = $diskStatus->totalSpace();
        $barWidth = ($diskStatus->usedSpace() / 100);
        $out[] = [
            "item" => "DISK usage",
            "pct" => $barWidth,
            "used" => round($diskStatus->usedSpace()/100*$totalSpace, 2). " out of ".$totalSpace ." at $path"
        ];


    }

 


View solution in original post

1 REPLY 1

L1 Bithead

I found the $path / to update the chart in file /var/www/html/libs/cpu_status_functions.php

    try {
        $path = '/data';
        $diskStatus = new DiskStatus($path);
        $totalSpace = $diskStatus->totalSpace();
        $barWidth = ($diskStatus->usedSpace() / 100);
        $out[] = [
            "item" => "DISK usage",
            "pct" => $barWidth,
            "used" => round($diskStatus->usedSpace()/100*$totalSpace, 2). " out of ".$totalSpace ." at $path"
        ];


    }

 


  • 1 accepted solution
  • 1063 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!