Check_xi_ncpa disk check not getting right disk value

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
imadc
Posts: 58
Joined: Wed Jun 14, 2017 12:10 pm

Check_xi_ncpa disk check not getting right disk value

Post by imadc »

Hello Team

I am using the following service check on a windows 2012 server with NCPA agent running there

Check command : Check_xi_ncpa
Check view: $USER1$/check_ncpa.py -H $HOSTADDRESS$ $ARG1$
$ARG1$ : -t '' -P 5693 -M 'disk/logical/E:|/' -u G -w 90 -c 95

The return I am getting is -

WARNING: Used disk space was 90.30 % (Used: 920.90 GB, Free: 99.15 GB, Total: 1020.05 GB)
Date/Time: 2020-02-20 15:59:26

When I can see E drive size as 950 GB on server, but the alert says its Total of 1020 GB

Any
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check_xi_ncpa disk check not getting right disk value

Post by lmiltchev »

Do you get the expected results if you use "Gi" instead of "G"?

Example:

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H x.x.x.x -t 'token' -M 'disk/logical/E:|' -w 90 -c 95 -u Gi
Be sure to check out our Knowledgebase for helpful articles and solutions!
imadc
Posts: 58
Joined: Wed Jun 14, 2017 12:10 pm

Re: Check_xi_ncpa disk check not getting right disk value

Post by imadc »

Thanks that solved the issue

Now are getting actual values

you can close this ticket

Thansk
Insurity
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Check_xi_ncpa disk check not getting right disk value

Post by lmiltchev »

I am glad I could help!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked