Page 1 of 1

check_ncpa.py, check all logical disks with /vicepX in it

Posted: Thu Oct 14, 2021 7:31 am
by icsense
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)

Re: check_ncpa.py, check all logical disks with /vicepX in i

Posted: Fri Oct 15, 2021 8:53 am
by gsmith
Hi

When you first configure ncpa it will interrogate the remote machine and provide with a list of disks
that are available to be monitored.

Are you looking for a check to look for drives each time the check is run?

Thanks

Re: check_ncpa.py, check all logical disks with /vicepX in i

Posted: Mon Oct 18, 2021 12:52 am
by icsense
That is correct! I'd like to have a "catch all". If a disk would be added to a server and it would be forgotten to be added to Nagios, we'd still have an alert.

Re: check_ncpa.py, check all logical disks with /vicepX in i

Posted: Mon Oct 18, 2021 9:17 am
by gsmith
Hi

You would have to write a custom plugin of look for one on
Nagios Exchange (https://exchange.nagios.org/)

For example I went to Nagios Exchange and searched on "check new disk", this one looks promising:
Image1.jpg
Sometimes when looking on Nagios Exchange you might not find exactly what you are looking for, but
you may be able to take something that's there and modify it.

Do you have any more questions regarding this or can I lock this topic?

Thanks