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
NCPA - Monitor multiple logical disks
Re: NCPA - Monitor multiple logical disks
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
check_nt!USEDDISKSPACE!-l e -w 80 -c 90
there in bold and red I define the disk that I want to monitor
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: NCPA - Monitor multiple logical disks
@dmartins, Please check out these commands:
The thresholds are triggered if the used space is greater than the supplied value.
The thresholds are triggered if the free space is less than the supplied value.
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
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NCPA - Monitor multiple logical disks
You would just change the your commanddmartins 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
for example if this is the command for C:
Code: Select all
./check_ncpa.py -H <ncpaserver> -t mytoken -M 'disk/logical/C:|'
Code: Select all
./check_ncpa.py -H <ncpaserver> -t mytoken -M 'disk/logical/D:|'
Re: NCPA - Monitor multiple logical disks
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
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
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NCPA - Monitor multiple logical disks
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
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
Yes that is what I was trying to look for Scott! I saw that too but was hoping something already existed
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
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NCPA - Monitor multiple logical disks
Should be out in the next minor I believe 2.2.0 but not 100% sure.