Page 1 of 1

The output for check disk doesn't show space used

Posted: Wed Jun 10, 2015 4:07 am
by xerez
Hi, I am trying monitoring the space disk with NRPE. I use this command:

Code: Select all

command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c CheckDriveSize -a ShowAll MinWarnFree=$ARG1$ MinCritFree=$ARG$ Drive=$ARG3$
From terminal, when I run this for monitoring a Windows XP host works fine:

Code: Select all

nagios@localhost:/usr/local/nagios/libexec$ check_nrpe -H <host ip> -c CheckDriveSize -a ShowAll MinWarnFree=10G MinCritFree=5G Drive=c
OK c: Total: 37.245GB - Used: 17.174GB (47%) - Free: 20.071GB (53%)|'c free'=20.07121GB;10;5;0;37.24477 'c free %'=53%;26;13;0;100
But when I run the same for a Windows Server 2003 host:

Code: Select all

nagios@localhost:/usr/local/nagios/libexec$ check_nrpe -H <host ip> -c CheckDriveSize -a ShowAll MinWarnFree=10G MinCritFree=5G Drive=c
OK: c:: 13.2G|'c: %'=66%;73;86 'c:'=13.216G;10;5;0;38.087
The output no shows total, used and free space, only shows the used space. Why?

However, the same host from web interface for another disk shows:

Code: Select all

Status Information:	CRITICAL: f:: Total: 2.73T - Used: 2.62T (96%) - Free: 107G (4%) < critical
Performance Data:	'f: %'=4%;89;94 'f:'=2685.529G;300;150;0;2792.874
And if I run this:

Code: Select all

nagios@localhsot:/usr/local/nagios/libexec$ check_nrpe -H <host ip> -c CheckDriveSize -a ShowAll MinWarnFree=10G MinCritFree=5G Drive=f
OK: f:: 2.62T|'f: %'=4%;99;99 'f:'=2685.529G;10;5;0;2792.874
It only shows the used space!!!

Why?? I don't understand :S

Thanks!

Re: The output for check disk doesn't show space used

Posted: Wed Jun 10, 2015 11:30 am
by jolson

Code: Select all

/usr/local/nagios/libexec$ check_nrpe -H <host ip> -c CheckDriveSize -a ShowAll=long MinWarnFree=10G MinCritFree=5G Drive=c
After some hunting, it looks like Showall=long is what is necessary here. Give it a shot and let us know!

Re: The output for check disk doesn't show space used

Posted: Thu Jun 11, 2015 2:58 am
by xerez
Yes, that was, now works well! Very thanks!

Re: The output for check disk doesn't show space used

Posted: Thu Jun 11, 2015 9:12 am
by tmcdonald
Are we all set to close this now?

Re: The output for check disk doesn't show space used

Posted: Fri Jun 12, 2015 6:56 am
by xerez
Yes :)