Werk #944: oracle_tablespaces: fixed calculation of space left and number of remaining increments

Component Checks & Agents
Title oracle_tablespaces: fixed calculation of space left and number of remaining increments
Date Jun 26, 2014
Checkmk Editon Checkmk Raw (CRE)
Checkmk Version 1.2.5i5
Level Prominent Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

The remaining increments and space left was not correctly calculated when the remaining memory space was not a multiple of the increment size.
For example:

Tablespace
900 MB used
100 MB free space for autoincrement

200 MB increment size

The previous version calculated 900 MB as maximum size, because the increment size was greater than the remaining autoincrement space. This was wrong. The last increment also uses the remaining space, even if the remaining size is smaller than the increment size.

As a result, this fix actually increases the amount of available free space, so it should not have any negative side effects for already configured limits.

To the list of all Werks