checkmk-plugins/check_mk-exchange-database-size/pnp-templates/check_mk-exchange_db_size.php

14 lines
480 B
PHP
Raw Normal View History

2019-08-12 11:59:29 +03:00
<?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");
?>