Page 1 of 1
NCPA - Monitor multiple logical disks
Posted: Tue Mar 06, 2018 10:26 am
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
Re: NCPA - Monitor multiple logical disks
Posted: Tue Mar 06, 2018 1:37 pm
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
Re: NCPA - Monitor multiple logical disks
Posted: Tue Mar 06, 2018 4:32 pm
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
Re: NCPA - Monitor multiple logical disks
Posted: Tue Mar 06, 2018 4:42 pm
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:|'
Re: NCPA - Monitor multiple logical disks
Posted: Wed Mar 07, 2018 11:58 am
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
Re: NCPA - Monitor multiple logical disks
Posted: Thu Mar 08, 2018 10:48 am
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
Re: NCPA - Monitor multiple logical disks
Posted: Fri Mar 09, 2018 5:35 am
by dmartins
Yes that is what I was trying to look for Scott! I saw that too but was hoping something already existed
Re: NCPA - Monitor multiple logical disks
Posted: Fri Mar 09, 2018 10:11 am
by scottwilkerson
Should be out in the next minor I believe 2.2.0 but not 100% sure.