Commit 0239acda authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#630 - Hard disk has no more space left error is reported with cdrom in cd drive

parent 40d92de1
......@@ -219,10 +219,14 @@ class monitor_core_module {
* 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');
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment