check_ncpa.py, check all logical disks with /vicepX in it
Posted: Thu Oct 14, 2021 7:31 am
Hi,
I've installed the VMware .ova recently and I'd like to find an NCPA check that checks all disks that are mounted on /vicepa, /vicepb, /vicepc, ... potentially until /vicepz . Can that be done with a regex? So far I have defined the following:
-t 'TOKEN' -M 'disk/logical/|vicepa/free' --warning 150: --critical 50: -u G
but that only checks /vicepa. I don't know how to expand that to /vicepb (and how NOT to expand that to /vicepb if there isn't a /vicepb)
I've installed the VMware .ova recently and I'd like to find an NCPA check that checks all disks that are mounted on /vicepa, /vicepb, /vicepc, ... potentially until /vicepz . Can that be done with a regex? So far I have defined the following:
-t 'TOKEN' -M 'disk/logical/|vicepa/free' --warning 150: --critical 50: -u G
but that only checks /vicepa. I don't know how to expand that to /vicepb (and how NOT to expand that to /vicepb if there isn't a /vicepb)