33 lines
1.2 KiB
PHP
33 lines
1.2 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Observium
|
|
*
|
|
* This file is part of Observium.
|
|
*
|
|
* @package observium
|
|
* @subpackage graphs
|
|
* @copyright (C) Adam Armstrong
|
|
*
|
|
*/
|
|
|
|
if (is_numeric($vars['id'])) {
|
|
$snatpool = dbFetchRow("SELECT * FROM `lb_snatpools` AS I, `devices` AS D WHERE I.snatpool_id = ? AND I.device_id = D.device_id", [$vars['id']]);
|
|
|
|
if (is_numeric($snatpool['device_id']) && ($auth || device_permitted($snatpool['device_id']))) {
|
|
$device = device_by_id_cache($snatpool['device_id']);
|
|
|
|
$rrd_filename = get_rrd_path($device, "lb-snatpool-" . $snatpool['snatpool_name']);
|
|
|
|
$title_array = [];
|
|
$title_array[] = ['text' => $device['hostname'], 'url' => generate_url(['page' => 'device', 'device' => $device['device_id']])];
|
|
$title_array[] = ['text' => 'F5 SNAT Pool', 'url' => generate_url(['page' => 'device', 'device' => $device['device_id'], 'tab' => 'loadbalancer', 'type' => 'lb_snatpools'])];
|
|
$title_array[] = ['text' => $snatpool['snatpool_name'], 'url' => generate_url(['page' => 'device', 'device' => $device['device_id'], 'tab' => 'loadbalancer', 'type' => 'lb_snatpools', 'snatpool' => $snatpool['snatpool_id']])];
|
|
|
|
$auth = TRUE;
|
|
|
|
}
|
|
}
|
|
|
|
// EOF
|