本文整理匯總了PHP中rrd::darkteint方法的典型用法代碼示例。如果您正苦於以下問題:PHP rrd::darkteint方法的具體用法?PHP rrd::darkteint怎麽用?PHP rrd::darkteint使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類rrd
的用法示例。
在下文中一共展示了rrd::darkteint方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
if ($UNIT[1] == "%%") {
$UNIT[1] = "%";
}
$def[1] .= rrd::hrule($WARN[1], "#FFFF00", "Warning " . $WARN[1] . $UNIT[1] . "\\n");
}
if ($CRIT[1] != "") {
if ($UNIT[1] == "%%") {
$UNIT[1] = "%";
}
$def[1] .= rrd::hrule($CRIT[1], "#FF0000", "Critical " . $CRIT[1] . $UNIT[1] . "\\n");
}
#
# Packets Lost
$ds_name[2] = "Packets Lost";
$opt[2] = "--vertical-label \"Packets lost\" -l0 -u105 --title \"Packets lost\" ";
$opt[2] .= rrd::darkteint();
$def[2] = rrd::def("var1", $RRDFILE[2], $DS[2], "AVERAGE");
$def[2] .= rrd::gradient("var1", "ff5c00", "ffdc00", "Packets Lost", 20);
$def[2] .= rrd::ticker("var1", $WARN[2], $CRIT[2]);
$def[2] .= rrd::gprint("var1", array("LAST", "MAX", "AVERAGE"), "%3.0lf {$UNIT['2']}");
$def[2] .= rrd::line1("var1", "#000000");
$def[2] .= rrd::hrule("100", "#0000ff");
if ($WARN[2] != "") {
if ($UNIT[2] == "%%") {
$UNIT[2] = "%";
}
$def[2] .= rrd::hrule($WARN[2], "#FFFF00", "Warning " . $WARN[2] . $UNIT[2] . "\\n");
}
if ($CRIT[2] != "") {
if ($UNIT[2] == "%%") {
$UNIT[2] = "%";