Nagios XI - NCPA Disk Check Issue
Posted: Fri Sep 22, 2023 10:53 am
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
However, all the other disk checks in NCPA are not showing negative values.
Thank you.
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
However, all the other disk checks in NCPA are not showing negative values.
Thank you.