Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#12 closed defect (fixed)

Check all disks except <list of disks>

Reported by: jbmadsen Owned by: nobody
Priority: 5 Milestone:
Component: None Version: None
Severity: Feature Requests Keywords:
Cc:

Description

It would be very useful if the CheckDriveSize check
could be configured to check all disks except a list of
disks given as argument.

My situation is that I have a number of disks which are
100% full and they are supposed to be that way. I would
like to check all other disks, but if I configure a
check for each disk, I will miss checking any new disks
which might be installed. Or in the case I am told
about the new disks, I will have to set up a new check
every time.

Change History (2)

comment:1 Changed 7 years ago by mickem

  • Resolution changed from None to fixed
  • Status changed from assigned to closed

Added in the next release (SVN).
There is a new option similar to CheckAll? called CheckAllOthers? that uses all provided Drive= as an exclusion list.

For instance:

source@gotrek:~/src$ ./check_nrpe -H 85.228.68.69 -c CheckDriveSize -a MinWarn=50% MinCrit=25% CheckAll FilterType=FIXED FilterType=REMOTE
CRITICAL: C:\: Total: 220G - Used: 187G (84%) - Free: 33.2G (16%) < critical, X:\: Total: 3.81G - Used: 2.88G (75%) - Free: 958M (25%) < critical|'C:\'=16%;50;25; 'D:\'=100%;50;25; 'X:\'=25%;50;25;

Where as:

source@gotrek:~/src$ ./check_nrpe -H 85.228.68.69 -c CheckDriveSize -a MinWarn=50% MinCrit=25% CheckAllOthers FilterType=FIXED FilterType=REMOTE "Drive=X:\\" Drive=D:\\
CRITICAL: C:\: Total: 220G - Used: 187G (84%) - Free: 33.2G (16%) < critical|'C:\'=16%;50;25;

Notice how D and X is no longer reported in the second command, Hope this is what you are looking for...

MickeM

comment:2 Changed 7 years ago by jbmadsen@…

Looks perfect. Thanks a lot.

Note: See TracTickets for help on using tickets.