sub checkSizeType { if ($type !~ m/^mb$|^gb$/i) { $np->nagios_die('size can only mb,Mb,gb,GB'); } }