[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] RAQ3 problem - Disk Usage and Volume Usage incorrect Display



Can anybody help?

At some point when I click on the Active Monitor button in the GUI (Which is
flashing red),
it shows the list of items being monitored. Then I find the disk button is
also flashing red.
Clicking on the word "disk" produces an "Internal Server Error" screen in
the frame of the GUI.
Looking at the logs I find the following;

Illegal division by zero at
/usr/admserv/cgi-bin/.cobalt/diskUsage/diskUsage.cgi line 204.
[Sun Jan  5 19:29:43 2003] [error] [client X.X.X.X] Premature end of script
headers: /usr/admserv/cgi-bin/.cobalt/diskUsage/diskUsage.cgi

I found, searching through the cobalt-users archive a solution to this
problem and it worked great.

The solution was:

>>I've had the same problem. I've simply edited the file diskUsage.cgi, line
204, changing
>>
>>sprintf $fmt, $siteUsed / ($siteTotal) * 100 : '?';
>>
>>to
>>
>>sprintf $fmt, $siteUsed / ($siteTotal+1) * 100 : '?';

However, now when I click on the word "disk" I receive the following
information...


Disk Usage
         Total Space  Free Space  % Used
    Operating System and Programs  0.0 MB  0.0 MB  0.0
    Virtual Sites  0.0 MB  0.0 MB  0.0

Volume Usage
         Total Space  Free Space  % Used
    home  0.0 MB  0.0 MB  0.0

Any ideas on how to restore the information in this screen?

Thank you in advance!

Tom Nelson