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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
icsense
Posts: 4
Joined: Thu Oct 14, 2021 7:23 am

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

Post 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)
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

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

Post 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
icsense
Posts: 4
Joined: Thu Oct 14, 2021 7:23 am

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

Post 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.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

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

Post 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
You do not have the required permissions to view the files attached to this post.
Locked