NCPA - Monitor multiple logical disks

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
dmartins
Posts: 3
Joined: Tue Mar 06, 2018 9:27 am

NCPA - Monitor multiple logical disks

Post by dmartins »

Hi Gang,

New to Nagios and we have NCPA agents running now and doing checks for disks, pings, memory etc. Question is, I can disk storage utilisation for Windows C: which is great but how do I do this for other logical partitions e.g. E:, F: and so on.

I'd prefer to use the NCPA so not sure if other plug-ins are

Thanks a bunch!

Daniel
h4doukeeN
Posts: 63
Joined: Wed Aug 09, 2017 9:32 am

Re: NCPA - Monitor multiple logical disks

Post by h4doukeeN »

Hello, with NSclient I do it in the following way

check_nt!USEDDISKSPACE!-l e -w 80 -c 90

there in bold and red I define the disk that I want to monitor
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: NCPA - Monitor multiple logical disks

Post by npolovenko »

@dmartins, Please check out these commands:

The thresholds are triggered if the used space is greater than the supplied value.

Code: Select all

./check_ncpa.py -H 10.25.14.91 -t Str0ngT0k3n -M 'disk/logical/C:|/used_percent' --warning 90 --critical 95
The thresholds are triggered if the free space is less than the supplied value.

Code: Select all

./check_ncpa.py -H 10.25.14.91 -t Str0ngT0k3n -M 'disk/logical/C:|/free' --warning 10: --critical 5: -u G
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NCPA - Monitor multiple logical disks

Post by scottwilkerson »

dmartins wrote:Hi Gang,

New to Nagios and we have NCPA agents running now and doing checks for disks, pings, memory etc. Question is, I can disk storage utilisation for Windows C: which is great but how do I do this for other logical partitions e.g. E:, F: and so on.

I'd prefer to use the NCPA so not sure if other plug-ins are

Thanks a bunch!

Daniel
You would just change the your command
for example if this is the command for C:

Code: Select all

./check_ncpa.py -H <ncpaserver> -t mytoken -M 'disk/logical/C:|'
This would be D:

Code: Select all

./check_ncpa.py -H <ncpaserver> -t mytoken -M 'disk/logical/D:|'
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
dmartins
Posts: 3
Joined: Tue Mar 06, 2018 9:27 am

Re: NCPA - Monitor multiple logical disks

Post by dmartins »

Hi Guys,

Thanks for the suggestions but remember we are utilising the NCPA agent. Perhaps I wasn't clear enough so here we go again.

As I previously mentioned we already have disk checking for single disks which is great, the service command is as followed:

check_ncpa -M 'disk/logical/C:|/used_percent' -w 90 -c 95 -u G

This command uses the check_ncpa.py script.

This is great for hosts with just a single partition, but not so for servers with more than one partition like Server SQL boxes, Linux boxes and so on.

I will post on the github site for support to.

Thanks,

Daniel
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NCPA - Monitor multiple logical disks

Post by scottwilkerson »

I see, are you looking to check all the disks in 1 check?
If so there is already a request for this and it will be coming in a future version

https://github.com/NagiosEnterprises/ncpa/issues/178
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
dmartins
Posts: 3
Joined: Tue Mar 06, 2018 9:27 am

Re: NCPA - Monitor multiple logical disks

Post by dmartins »

Yes that is what I was trying to look for Scott! I saw that too but was hoping something already existed :cry:
scottwilkerson wrote:I see, are you looking to check all the disks in 1 check?
If so there is already a request for this and it will be coming in a future version

https://github.com/NagiosEnterprises/ncpa/issues/178
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NCPA - Monitor multiple logical disks

Post by scottwilkerson »

Should be out in the next minor I believe 2.2.0 but not 100% sure.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked