File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -219,10 +219,14 @@ function monitorDiskUsage() {
219219 * calculate the state
220220 */
221221 $ usePercent = floatval ($ data [$ i ]['percent ' ]);
222- if ($ usePercent > 75 ) $ state = $ this ->_setState ($ state , 'info ' );
223- if ($ usePercent > 80 ) $ state = $ this ->_setState ($ state , 'warning ' );
224- if ($ usePercent > 90 ) $ state = $ this ->_setState ($ state , 'critical ' );
225- if ($ usePercent > 95 ) $ state = $ this ->_setState ($ state , 'error ' );
222+
223+ //* We dont want to check the cdrom drive as a cd / dvd is always 100% full
224+ if ($ data [$ i ]['type ' ] != 'iso9660 ' ) {
225+ if ($ usePercent > 75 ) $ state = $ this ->_setState ($ state , 'info ' );
226+ if ($ usePercent > 80 ) $ state = $ this ->_setState ($ state , 'warning ' );
227+ if ($ usePercent > 90 ) $ state = $ this ->_setState ($ state , 'critical ' );
228+ if ($ usePercent > 95 ) $ state = $ this ->_setState ($ state , 'error ' );
229+ }
226230 }
227231 }
228232
You can’t perform that action at this time.
0 commit comments