From b3b16cf8fe7dc121b2676770a550505249b36e48 Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Fri, 30 Sep 2011 13:31:06 +0000 Subject: [PATCH] move ALL the hostnames git-svn-id: http://www.observium.org/svn/observer/trunk@2617 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/graph-realtime.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/html/graph-realtime.php b/html/graph-realtime.php index 7dc052d1f..5762a025a 100755 --- a/html/graph-realtime.php +++ b/html/graph-realtime.php @@ -36,7 +36,8 @@ header("Content-type: image/svg+xml"); /********** HTTP GET Based Conf ***********/ $ifnum=@$port['ifIndex']; // BSD / SNMP interface name / number -$ifname=$device['hostname']. " ". @$port['ifDescr']; //Interface name that will be showed on top right of graph +$ifname=@$port['ifDescr']; //Interface name that will be showed on top right of graph +$hostname=$device['hostname']; /********* Other conf *******/ $scale_type="follow"; //Autoscale default setup : "up" = only increase scale; "follow" = increase and decrease scale according to current graphed datas @@ -58,6 +59,7 @@ $attribs['graph_in']='fill="none" stroke="green" stroke-opacity="0.8"'; $attribs['graph_out']='fill="none" stroke="blue" stroke-opacity="0.8"'; $attribs['legend']='fill="black" font-family="Tahoma, Verdana, Arial, Helvetica, sans-serif" font-size="4"'; $attribs['graphname']='fill="#435370" font-family="Tahoma, Verdana, Arial, Helvetica, sans-serif" font-size="8"'; +$attribs['hostname']='fill="#435370" font-family="Tahoma, Verdana, Arial, Helvetica, sans-serif" font-size="4"'; $attribs['grid_txt']='fill="gray" font-family="Tahoma, Verdana, Arial, Helvetica, sans-serif" font-size="6"'; $attribs['grid']='stroke="gray" stroke-opacity="0.5"'; $attribs['switch_unit']='fill="#435370" font-family="Tahoma, Verdana, Arial, Helvetica, sans-serif" font-size="4" text-decoration="underline"'; @@ -89,6 +91,7 @@ print('' . "\n");?> > > text-anchor="end"> + text-anchor="end"> >Switch to bytes/s >AutoScale () >