Page 1 of 1

Negative disk check result

Posted: Tue Nov 28, 2023 4:28 pm
by NVESMM
Hello!

I am running into an issue with one of our disk checks when migrating to NCPA where it is showing a negative value for the amount of used disk space:
[nagios@nagiosxi ~]$ /usr/local/nagios/libexec/check_ncpa.py -H XXX.XXX.XXX.41 -t 'TOKEN' -P 5693 -M 'disk/logical/|u04|dbs' -w '90' -c '95'
CRITICAL: Used disk space was -198.70 % (Used: -3300.27 GiB, Free: 4960.87 GiB, Total: 1660.60 GiB) | 'used'=-3300.27GiB;1495;1578; 'free'=4960.87GiB;1495;1578; 'total'=1660.60GiB;1495;1578;

Old check:
[nagios@nagiosxi ~]$ /usr/local/nagios/libexec/check_nrpe -2 -H XXX.XXX.XXX.41 -c check_disk1 -t 30 -a 6% 3% "/u04/dbs"
DISK OK - free space: /u04/dbs 5081154 MiB (27.49% inode=100%);| /u04/dbs=13396925MiB;17369395;17923737;0;18478080
negdiskcheckexample.PNG

However, all the other disk checks in NCPA are coming back as normal values.

Is there something we need to ask the system administrators of this host to check in terms of the way the partition is set up? Do we need to have them reinstall NCPA? Do you have any other suggestions for troubleshooting this issue?

Thank you.

Re: Negative disk check result

Posted: Wed Nov 29, 2023 12:00 pm
by jsimon
Hi @NVESMM,

I would recommend first rebooting the machine to see if it still does this. Assuming you have and it still does, can you check and see what you see in the NCPA API GUI?

https://localhost:5693/api?token=mytoken

Where "mytoken" is whatever NCPA community string you are using, on the host with this issue. It's also possible that this is a bug with the psutils plugin on the host in question.

Please let us know if these checks fail to get you what you need and based on the answers we can determine next steps.