Exchange database size check
-p <path> Path to Exchange database directory
-n <dbname> Filename of .edb/.stm file (without .edb/.stm suffix)
-v <version> Set thresholds according to default values for <version>:
2000,2003,2003sp2,2007,2007sp1,2010 (warn set to 80%, crit to 90%)
-w <mb> Warning if a database is bigger than <mb> MB
-c <mb> Critical if a database is bigger than <mb> MB
You may specify multiple databases by providing multiple sequences of -p,-n,-w,-c arguments.
check_exchange_dbsize2.exe -p <path to db1> -n <name of db1> -w <warn for db1> -c <crit for db1> -p <path to db2> -n <name of db2> -w <warn for db2> -c <crit for db2>
Version defaults apply to all all databases which have no specific thresholds given.
Does not take white space in DB files into account.
To compile, use Microsofts Java Script Compiler (JSC,jsc.exe) included in MS .NET Framework.
Use this script with NRPE or NSClient++. For NSClient++ include as follows (example):
check_exchange_dbsize=scripts\\check_exchange_dbsize2.exe [-v <version>] -p <path> -n pub1 [ -w <mb> -c <mb>] -p <path> -n priv1 [ -w <mb> -c <mb>]