22 lines
754 B
PHP
22 lines
754 B
PHP
<?php
|
|
#
|
|
# Copyright (c) 2006-2012 Joerg Linge (http://www.pnp4nagios.org)
|
|
# Plugin: check_jmx4perl
|
|
# Dataset: connector_received
|
|
# Perfdata: bytes_received=57223.4645669291;83886080;104857600
|
|
#
|
|
$opt[1] = "--vertical-label \"Bytes\" --title \"Connector Received $hostname / $servicedesc\" ";
|
|
$def[1] = rrd::def("var1",$RRDFILE[1],$DS[1],"AVERAGE") ;
|
|
$def[1] .= rrd::gradient('var1', '#F5F5F5', '#C0C0C0' );
|
|
$def[1] .= rrd::line1 ("var1", "#B80000", $LABEL[1]);
|
|
$def[1] .= rrd::gprint("var1", array("LAST","MAX","AVERAGE"), "%6.2lf %sB");
|
|
if ($WARN[1] != "") {
|
|
$def[1] .= rrd::hrule($WARN[1],"#FFFF00", "Warning\\n");
|
|
}
|
|
if ($CRIT[1] != "") {
|
|
$def[1] .= rrd::hrule($CRIT[1],"#FF0000", "Critical");
|
|
}
|
|
$def[1] .= rrd::comment ("jolokia.org");
|
|
|
|
?>
|