Added missing definitions for $context, $domin and $snmpversion – thanks to Andrea Bolognaro for pointing this out.
Please note: as you can see this check is still quite crude compared to some of my other checks (check_hp, check_dell, …) and caused by the fact that I can’t reliably test it as I have no NetApp. If anyone wants to go through variable names, definitions and some other cleanup, you’d be more than welcome.