exasol / nagios-monitoring

Docker container with installed and configured Nagios software for EXASOL DB monitoring.
MIT License
10 stars 11 forks source link

check_db_diskspace.py confused by multiple storage partitions #59

Closed ChristianGfK closed 2 years ago

ChristianGfK commented 4 years ago

On a system with more than one storage partition used by EXAStorage, check_db_diskspace.py returns wrong output like this: OK - Disk space usage of db = -140.9%, Usage in GiB = 7276.0GiB, Free space = -12441.0GiB|usage_percent=-140.9%;80.0;90.0 usage=7276.0GiB free=-12441.0GiB temp=12.0GiB temp_usage_ratio=0.3%;60.0;80.0 This seems to be cause by this line https://github.com/exasol/nagios-monitoring/blob/master/opt/exasol/monitoring/check_db_diskspace.py#L127, where it is assumed that the storage partition used by the database's volume is the only storage partition.

In our case, there is an additional storage partition that is used for an archive volume. Apparently, the storage volume sizes are enumerated correctly, and then subtracted from the (wrong) storage partition size.

I tried, but I don't know enough Python to fix this.