mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
improve title for ipsla
git-svn-id: http://www.observium.org/svn/observer/trunk@3009 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -54,7 +54,7 @@ foreach ($slas as $sla)
|
||||
if ($vars['view'] != 'all' && $vars['view'] != $sla['rtt_type'])
|
||||
continue;
|
||||
|
||||
$name = "SLA #". $sla['sla_nr'];
|
||||
$name = "SLA #". $sla['sla_nr'] ." - ". $sla_types[$sla['rtt_type']];
|
||||
if ($sla['tag'])
|
||||
$name .= ": ".$sla['tag'];
|
||||
if ($sla['owner'])
|
||||
|
@ -168,8 +168,6 @@ function poll_device($device, $options)
|
||||
### If there any don't match, they're added/deleted from the database.
|
||||
### Ideally we should hold graphs for xx days/weeks/polls so that we don't needlessly hide information.
|
||||
|
||||
#print_r($graphs);
|
||||
|
||||
foreach (dbFetch("SELECT `graph` FROM `device_graphs` WHERE `device_id` = ?", array($device['device_id'])) as $graph)
|
||||
{
|
||||
if (!isset($graphs[$graph["graph"]]))
|
||||
@ -184,8 +182,10 @@ function poll_device($device, $options)
|
||||
{
|
||||
if (!isset($oldgraphs[$graph]))
|
||||
{
|
||||
echo("+");
|
||||
dbInsert(array('device_id' => $device['device_id'], 'graph' => $graph), 'device_graphs');
|
||||
}
|
||||
echo($graph." ");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user