Fix zpool capacity alert module and make it more error prone

Ticket:	#7182
(cherry picked from commit 09aff286748a96c1f66bfc3010e37d59805196ad)