Page 1 of 1

Check_xi_ncpa disk check not getting right disk value

Posted: Fri Feb 21, 2020 11:31 am
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

Re: Check_xi_ncpa disk check not getting right disk value

Posted: Fri Feb 21, 2020 11:50 am
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

Re: Check_xi_ncpa disk check not getting right disk value

Posted: Mon Feb 24, 2020 1:40 pm
by imadc
Thanks that solved the issue

Now are getting actual values

you can close this ticket

Thansk
Insurity

Re: Check_xi_ncpa disk check not getting right disk value

Posted: Mon Feb 24, 2020 1:56 pm
by lmiltchev
I am glad I could help!