2015-08-27 13:18:53 +02:00
|
|
|
<?php
|
2015-08-28 11:01:36 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2015 Mark Schouten <mark@tuxis.nl>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; version 2 dated June,
|
|
|
|
* 1991.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* See http://www.gnu.org/licenses/gpl.txt for the full license
|
|
|
|
*/
|
|
|
|
|
2015-08-27 13:18:53 +02:00
|
|
|
require 'includes/graphs/common.inc.php';
|
|
|
|
|
2016-08-12 11:05:58 -05:00
|
|
|
$proxmox_rrd = proxmox_rrd_name($vars['cluster'], $vars['vmid'], $vars['port']);
|
2015-08-27 13:18:53 +02:00
|
|
|
|
2016-07-08 15:09:11 -05:00
|
|
|
if (rrdtool_check_rrd_exists($proxmox_rrd)) {
|
2015-08-28 14:34:25 +02:00
|
|
|
$rrd_filename = $proxmox_rrd;
|
2015-08-27 13:18:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
$ds_in = 'INOCTETS';
|
|
|
|
$ds_out = 'OUTOCTETS';
|
|
|
|
|
|
|
|
require 'includes/graphs/generic_data.inc.php';
|