district09 / check_netapp_ontap

:four_leaf_clover: Check NetApp Ontap :four_leaf_clover:
https://outsideit.net/monitoring-netapp-ontap/
GNU General Public License v3.0
39 stars 28 forks source link

quota health check doesn't check soft limits if hard limits are defined #8

Open goldsmk opened 9 years ago

goldsmk commented 9 years ago

We have hard and soft limits, both on space and files, and expected this plugin to raise warnings when soft limits were breached and critical alerts when hard limits were breached. We received the critical alerts but not the warnings by which time issues were already being experienced.

Looking at the code in the calc_quota_health subroutine it will not check the soft limits if a hard limit is defined because of the elsif statements.

willemdh commented 9 years ago

Hey Goldsmk, Thank you for making an issue for this. You are indeed correct. I implemented it that way as I had no need to be alerted when the warning threshold was reached. Grtz Willem