The output for check disk doesn't show space used

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
xerez
Posts: 77
Joined: Wed Apr 22, 2015 7:50 am

The output for check disk doesn't show space used

Post 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!
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

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

Post 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!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
xerez
Posts: 77
Joined: Wed Apr 22, 2015 7:50 am

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

Post by xerez »

Yes, that was, now works well! Very thanks!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post by tmcdonald »

Are we all set to close this now?
Former Nagios employee
xerez
Posts: 77
Joined: Wed Apr 22, 2015 7:50 am

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

Post by xerez »

Yes :)
Locked