Page 1 of 1

NRPE check_drivesize display options

Posted: Mon Nov 05, 2018 1:23 pm
by jenstar13
first cause you always ask :-)
Installed Version: 5.5.5

I'm trying to change what is displayed in the XI Gui for check drivesize on Windows
When i run it from the Gui I get
WARNING D:: 398.155GB/479.992GB used

but when i run it from the command line, I get
/usr/local/nagios/libexec/check_nrpe -H 172.xxx.xxx.xxx -t 30 -c check_drivesize -a "drive=D:" "warn=free < 20%" "crit=free < 10%"
WARNING D:: 398.155GB/479.992GB used|'D: free'=81.83765GB;95.99845;47.99922;0;479.99227 'D: free %'=17%;20;10;0;100

how can I get the XI gui to either show all the details like the command line, or show 17% free as that is easier for the enduser.

I've hit about 30 different search pages and this forum, and can't find the answer

thank you in advance

Re: NRPE check_drivesize display options

Posted: Mon Nov 05, 2018 3:28 pm
by npolovenko
Hi, @jenstar13. Please try the following command instead:
/usr/local/nagios/libexec/check_nrpe -H 172.xxx.xxx.xxx -t 30 -c check_drivesize -a "drive=C:" "warn=free < 20%" "crit=free < 10%" detail-syntax='{${drive_or_name} ${free_pct}% free / ${size} total}' top-syntax='${status}: ${problem_list}' show-all

Re: NRPE check_drivesize display options

Posted: Tue Nov 06, 2018 5:43 am
by jenstar13
that was perfect, thank you very much!