tbrehm
2009-03-15 0239acdaa686ed172ee41d0b08b0ad4b61e1f421
Fixed: FS#630 - Hard disk has no more space left error is reported with cdrom in cd drive 
1 files modified
12 ■■■■■ changed files
server/mods-available/monitor_core_module.inc.php 12 ●●●●● patch | view | raw | blame | history
server/mods-available/monitor_core_module.inc.php
@@ -219,10 +219,14 @@
                 * calculate the state
                 */
                $usePercent = floatval($data[$i]['percent']);
                if ($usePercent > 75) $state = $this->_setState($state, 'info');
                if ($usePercent > 80) $state = $this->_setState($state, 'warning');
                if ($usePercent > 90) $state = $this->_setState($state, 'critical');
                if ($usePercent > 95) $state = $this->_setState($state, 'error');
                //* We dont want to check the cdrom drive as a cd / dvd is always 100% full
                if($data[$i]['type'] != 'iso9660') {
                    if ($usePercent > 75) $state = $this->_setState($state, 'info');
                    if ($usePercent > 80) $state = $this->_setState($state, 'warning');
                    if ($usePercent > 90) $state = $this->_setState($state, 'critical');
                    if ($usePercent > 95) $state = $this->_setState($state, 'error');
                }
            }
        }