check_mk-exchange-database-.../pnp-templates/check_mk-exchange_db_size.php
2014-12-30 13:09:33 +02:00

14 lines
480 B
PHP

<?php
#
# Plugin: check_mk-exchange_db_size
#
$opt[1] = "--vertical-label \"Size in MB\" -X0 -b1024 -l0 --title \"Mailbox Size $servicedesc\" ";
$def[1] = "DEF:size=$RRDFILE[1]:$DS[1]:MAX ";
if ($WARN[1] != "") {
$def[1] .= "HRULE:$WARN[1]#FFFF00:\"Warning\: $WARN[1]MB\" ";
$def[1] .= "HRULE:$CRIT[1]#FF0000:\"Critical\: $CRIT[1]MB\" ";
}
$def[1] .= rrd::area("size", "#EACC00", "size ") ;
$def[1] .= rrd::gprint("size", array("LAST", "AVERAGE", "MAX"), "%6.0lf MB");
?>