Novell OES2

Linux) check NSS directory quota usag

check_oesnss_quota

This perl script uses the _admin volume to query nss directory information

Usage:

check_oesnss_quota.pl -D  -w  -c  [-d] [-h] [-v]

Options:

Flag Description
-c critical level for the free space in [k|M|G|%]if no extension is given I assume it is in GB
-d print debug info
-h print help
-v print version
-D define the NSS directory you want to monitor, this value fully quality path!
-w warning level for the free space in [k|M|G|%]if no extension is given I assume it is in GB

Examples:

check_oesnss_quota.pl -D DATA:datadir -w 10GB -c 2GB
OK: DATA:datadir free: 145GB of 400GB|DATA:datadir=40960000000;4691116032;36268883968
check_oesnss_quota.pl -D DATA:datadir -w 10% -c 5%
WARNING: DATA:datadir free: 7% of 400GB|DATA:datadir=40960000000;4691116032;36268883968