mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-04 16:12:20 +02:00
smokeping fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@2629 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -26,10 +26,9 @@ if($width > "500")
|
|||||||
|
|
||||||
if($width > "500")
|
if($width > "500")
|
||||||
{
|
{
|
||||||
$rrd_options .= " COMMENT:'".substr(str_pad($unit_text, $descr_len+5),0,$descr_len+5)." RTT Loss Maximum '";
|
$rrd_options .= " COMMENT:'".substr(str_pad($unit_text, $descr_len+5),0,$descr_len+5)." RTT Loss SDev RTT\:SDev\l'";
|
||||||
} else {
|
} else {
|
||||||
$rrd_options .= " COMMENT:'".substr(str_pad($unit_text, $descr_len+5),0,$descr_len+5)." RTT Loss SDev RTT\:SDev\l'";
|
$rrd_options .= " COMMENT:'".substr(str_pad($unit_text, $descr_len+5),0,$descr_len+5)." RTT Loss SDev RTT\:SDev\l'";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($smokeping_files[$direction][$device['hostname']] as $source => $filename)
|
foreach($smokeping_files[$direction][$device['hostname']] as $source => $filename)
|
||||||
@@ -73,7 +72,7 @@ foreach($smokeping_files[$direction][$device['hostname']] as $source => $filenam
|
|||||||
$rrd_options .= " CDEF:s2d$i=sdev$i";
|
$rrd_options .= " CDEF:s2d$i=sdev$i";
|
||||||
$rrd_options .= " AREA:dmlow$i";
|
$rrd_options .= " AREA:dmlow$i";
|
||||||
$rrd_options .= " AREA:s2d$i#".$colour."30::STACK";
|
$rrd_options .= " AREA:s2d$i#".$colour."30::STACK";
|
||||||
$rrd_options .= " LINE1:dm$i#".$colour.":$descr";
|
$rrd_options .= " LINE1:dm$i#".$colour.":'$descr'";
|
||||||
|
|
||||||
# $rrd_options .= " LINE1:sdev$i#000000:$descr";
|
# $rrd_options .= " LINE1:sdev$i#000000:$descr";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user