[Nagiosplug-devel] [ nagiosplug-Patches-854538 ] check_nt - add check USEDDISKSPACE against remaining Mb

SourceForge.net noreply at sourceforge.net
Fri Feb 20 01:26:40 CET 2009


Patches item #854538, was opened at 2003-12-05 05:44
Message generated for change (Comment added) made by tonvoon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=854538&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Enhancement
Group: None
>Status: Pending
>Resolution: Wont Fix
Priority: 5
Private: No
Submitted By: Greg Vickers (daehenoc)
>Assigned to: Ton Voon (tonvoon)
Summary: check_nt - add check USEDDISKSPACE against remaining Mb

Initial Comment:
Please find attached my patch for version 1.7.2.3 of
check_nt.c. This patch adds the ability to check disk
space based on the amount of Mb left on a partition. I
wrote this because 1% of a 100Gb partition is still a
lot of space! :D

The command line option is -m or --mb. The logic behind
the checks is reversed against the percentage checks:
the percentage method checks against the amount of disk
space used; the Mb method checks against the amount of
free space left.

Technical stuff:
I used Mb values rather than Gb values because of the
use of the unsigned long type for the percentage
values, which are used extensively through out
check_nt.c. So rather than rewrite a lot of check_nt.c
so you could specify, say, -w 1.2 (Gb), I decided to
use Mb value on the command line. (Debugging revealed
that when a float value is converted into an unsigned
long, you would get a negative value in that unsigned
long - not good when checking remaining disk space!)

Thanks,
Greg Vickers


----------------------------------------------------------------------

>Comment By: Ton Voon (tonvoon)
Date: 2009-02-20 00:26

Message:
Since there is no patch and this tracker item is so old, I'm going to mark
this into a pending state so it will be closed automatically in 7 days if
there are no updates.

Ton

----------------------------------------------------------------------

Comment By: Benoit Mortier (opensides)
Date: 2004-12-28 22:47

Message:
Logged In: YES 
user_id=388184

Hi, 
 
there is no patch attached... 
 
Can you repost it 
 
thank you 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=854538&group_id=29880




More information about the Devel mailing list