mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@2968 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/mem.rrd";
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/mem.rrd";
|
||||||
|
@@ -3,6 +3,7 @@
|
|||||||
$scale_min = "0";
|
$scale_min = "0";
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/altiga-ssl.rrd.rrd";
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/altiga-ssl.rrd.rrd";
|
||||||
|
@@ -21,7 +21,6 @@ $colour_area_max = "FFEE99";
|
|||||||
$graph_max = 1;
|
$graph_max = 1;
|
||||||
$multiplier = 8;
|
$multiplier = 8;
|
||||||
|
|
||||||
|
|
||||||
$unit_text = "Kbps";
|
$unit_text = "Kbps";
|
||||||
|
|
||||||
include("includes/graphs/generic_simplex.inc.php");
|
include("includes/graphs/generic_simplex.inc.php");
|
||||||
|
@@ -33,6 +33,4 @@ $unit_text = "Rows";
|
|||||||
|
|
||||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -32,7 +32,4 @@ $unit_text = "Semaphores";
|
|||||||
|
|
||||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -30,5 +30,4 @@ $unit_text = "transactions";
|
|||||||
|
|
||||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -33,5 +33,4 @@ $unit_text = "Keys";
|
|||||||
|
|
||||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -9,7 +9,6 @@ if (is_file($mysql_rrd))
|
|||||||
$rrd_filename = $mysql_rrd;
|
$rrd_filename = $mysql_rrd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$array = array('QCQICe' => array('descr' => 'Queries in cache', 'colour' => '22FF22'),
|
$array = array('QCQICe' => array('descr' => 'Queries in cache', 'colour' => '22FF22'),
|
||||||
'QCHs' => array('descr' => 'Cache hits', 'colour' => '0022FF'),
|
'QCHs' => array('descr' => 'Cache hits', 'colour' => '0022FF'),
|
||||||
'QCIs' => array('descr' => 'Inserts', 'colour' => 'FF0000'),
|
'QCIs' => array('descr' => 'Inserts', 'colour' => 'FF0000'),
|
||||||
@@ -36,6 +35,4 @@ $unit_text = "Commands";
|
|||||||
|
|
||||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -31,5 +31,4 @@ $unit_text = "Bytes";
|
|||||||
|
|
||||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
|
|
||||||
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'.rrd';
|
$rrd_filename = $config["rrd_dir"] . '/' . $device["hostname"] . '/app-mysql-'.$app["app_id"].'.rrd';
|
||||||
|
|
||||||
$array = array( 'SFJn' => 'Full Join',
|
$array = array( 'SFJn' => 'Full Join',
|
||||||
|
@@ -31,5 +31,4 @@ $unit_text = "Queries";
|
|||||||
|
|
||||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -34,6 +34,4 @@ $unit_text = "";
|
|||||||
|
|
||||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -32,6 +32,4 @@ $unit_text = "Table locks";
|
|||||||
|
|
||||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -33,6 +33,4 @@ $unit_text = "Temp";
|
|||||||
|
|
||||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -29,6 +29,7 @@ if (is_file($ntpdserver_rrd))
|
|||||||
}
|
}
|
||||||
|
|
||||||
// include("includes/graphs/generic_bits.inc.php");
|
// include("includes/graphs/generic_bits.inc.php");
|
||||||
|
|
||||||
include("includes/graphs/generic_duplex.inc.php");
|
include("includes/graphs/generic_duplex.inc.php");
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -28,6 +28,7 @@ if (is_file($rrd_filename))
|
|||||||
}
|
}
|
||||||
|
|
||||||
// include("includes/graphs/generic_multi_line.inc.php");
|
// include("includes/graphs/generic_multi_line.inc.php");
|
||||||
|
|
||||||
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -15,7 +15,4 @@ if ($auth && is_numeric($_GET['mod']) && is_numeric($_GET['chan']))
|
|||||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/c6kxbar-" . safename($_GET['mod']. "-".$_GET['chan']. ".rrd");
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/c6kxbar-" . safename($_GET['mod']. "-".$_GET['chan']. ".rrd");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -3,6 +3,7 @@
|
|||||||
$scale_min = "0";
|
$scale_min = "0";
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/cras_sessions.rrd";
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/cras_sessions.rrd";
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
$rrd_filename_4 = $config['rrd_dir'] . "/" . $device['hostname'] . "/ipSystemStats-ipv4.rrd";
|
$rrd_filename_4 = $config['rrd_dir'] . "/" . $device['hostname'] . "/ipSystemStats-ipv4.rrd";
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/ipSystemStats-ipv4.rrd";
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/ipSystemStats-ipv4.rrd";
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/ipSystemStats-ipv4.rrd";
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/ipSystemStats-ipv4.rrd";
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/ipSystemStats-ipv6.rrd";
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/ipSystemStats-ipv6.rrd";
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/ipSystemStats-ipv6.rrd";
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/ipSystemStats-ipv6.rrd";
|
||||||
|
@@ -9,5 +9,4 @@ $multiplier = 8;
|
|||||||
|
|
||||||
include("includes/graphs/generic_bits.inc.php");
|
include("includes/graphs/generic_bits.inc.php");
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/netstats-ip.rrd";
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/netstats-ip.rrd";
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/netstats-ip.rrd";
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/netstats-ip.rrd";
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/netstats-snmp.rrd";
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/netstats-snmp.rrd";
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/netstats-tcp.rrd";
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/netstats-tcp.rrd";
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/netstats-udp.rrd";
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/netstats-udp.rrd";
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
$dsdescr = "Flows/s ";
|
$dsdescr = "Flows/s ";
|
||||||
$dsprefix = "flows_";
|
$dsprefix = "flows_";
|
||||||
|
|
||||||
include("nfsen_common.inc.php");
|
include("nfsen_common.inc.php");
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
$dsdescr = "Packets/s ";
|
$dsdescr = "Packets/s ";
|
||||||
$dsprefix = "packets_";
|
$dsprefix = "packets_";
|
||||||
|
|
||||||
include("nfsen_common.inc.php");
|
include("nfsen_common.inc.php");
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
$dsdescr = "Byts/s ";
|
$dsdescr = "Byts/s ";
|
||||||
$dsprefix = "traffic_";
|
$dsprefix = "traffic_";
|
||||||
|
|
||||||
include("nfsen_common.inc.php");
|
include("nfsen_common.inc.php");
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
if ($_GET['width'] > "300") { $descr_len = "40"; } else { $descr_len = "22"; }
|
if ($_GET['width'] > "300") { $descr_len = "40"; } else { $descr_len = "22"; }
|
||||||
|
@@ -100,8 +100,6 @@ $descr = str_replace(":", "\:", substr(str_pad("Average", $descr_len),0,$descr_l
|
|||||||
$rrd_options .= " GPRINT:avsd:'%5.1lf%Ss'";
|
$rrd_options .= " GPRINT:avsd:'%5.1lf%Ss'";
|
||||||
$rrd_options .= " GPRINT:avmsr:'%5.1lf%s\\l'";
|
$rrd_options .= " GPRINT:avmsr:'%5.1lf%s\\l'";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# $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'";
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
$rrd_options .= " -l 0 -E ";
|
$rrd_options .= " -l 0 -E ";
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . "ucd_cpu.rrd";
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/" . "ucd_cpu.rrd";
|
||||||
$rrd_options .= " DEF:user=$rrd_filename:user:AVERAGE";
|
$rrd_options .= " DEF:user=$rrd_filename:user:AVERAGE";
|
||||||
$rrd_options .= " DEF:nice=$rrd_filename:nice:AVERAGE";
|
$rrd_options .= " DEF:nice=$rrd_filename:nice:AVERAGE";
|
||||||
|
@@ -3,6 +3,7 @@
|
|||||||
$scale_min = "0";
|
$scale_min = "0";
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/ucd_load.rrd";
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/ucd_load.rrd";
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/ucd_mem.rrd";
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/ucd_mem.rrd";
|
||||||
|
@@ -3,6 +3,7 @@
|
|||||||
$scale_min = "0";
|
$scale_min = "0";
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/uptime.rrd";
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/uptime.rrd";
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/vpdn-l2tp.rrd";
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/vpdn-l2tp.rrd";
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/vpdn-l2tp.rrd";
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/vpdn-l2tp.rrd";
|
||||||
|
@@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$device = device_by_id_cache($id);
|
$device = device_by_id_cache($id);
|
||||||
|
|
||||||
$rrd_options .= " -l 0 -E ";
|
$rrd_options .= " -l 0 -E ";
|
||||||
|
@@ -8,7 +8,7 @@ include("includes/graphs/common.inc.php");
|
|||||||
$unit_text = str_pad(truncate($unit_text,18,''),18);
|
$unit_text = str_pad(truncate($unit_text,18,''),18);
|
||||||
$line_text = str_pad(truncate($line_text,12,''),12);
|
$line_text = str_pad(truncate($line_text,12,''),12);
|
||||||
|
|
||||||
if($multiplier)
|
if ($multiplier)
|
||||||
{
|
{
|
||||||
$rrd_options .= " DEF:".$ds."_o=".$rrd_filename.":".$ds.":AVERAGE";
|
$rrd_options .= " DEF:".$ds."_o=".$rrd_filename.":".$ds.":AVERAGE";
|
||||||
$rrd_options .= " DEF:".$ds."_max_o=".$rrd_filename.":".$ds.":MAX";
|
$rrd_options .= " DEF:".$ds."_max_o=".$rrd_filename.":".$ds.":MAX";
|
||||||
@@ -19,7 +19,6 @@ if($multiplier)
|
|||||||
$rrd_options .= " DEF:".$ds."_max=".$rrd_filename.":".$ds.":MAX";
|
$rrd_options .= " DEF:".$ds."_max=".$rrd_filename.":".$ds.":MAX";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($print_total)
|
if ($print_total)
|
||||||
{
|
{
|
||||||
$rrd_options .= " VDEF:".$ds."_total=ds,TOTAL";
|
$rrd_options .= " VDEF:".$ds."_total=ds,TOTAL";
|
||||||
|
@@ -59,6 +59,7 @@ function graph_error($string)
|
|||||||
$_GET['bg'] = "FFBBBB";
|
$_GET['bg'] = "FFBBBB";
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$rrd_options .= " HRULE:0#555555";
|
$rrd_options .= " HRULE:0#555555";
|
||||||
$rrd_options .= " --title='".$string."'";
|
$rrd_options .= " --title='".$string."'";
|
||||||
|
|
||||||
|
@@ -6,7 +6,7 @@ $ds_in = "INOCTETS";
|
|||||||
$ds_out = "OUTOCTETS";
|
$ds_out = "OUTOCTETS";
|
||||||
|
|
||||||
$i=1;
|
$i=1;
|
||||||
foreach($devices as $device)
|
foreach ($devices as $device)
|
||||||
{
|
{
|
||||||
foreach (dbFetchRows("SELECT * FROM `ports` WHERE `device_id` = ?", array($device['device_id'])) as $int)
|
foreach (dbFetchRows("SELECT * FROM `ports` WHERE `device_id` = ?", array($device['device_id'])) as $int)
|
||||||
{
|
{
|
||||||
@@ -64,5 +64,4 @@ $colour_area_out = "C3D9FF";
|
|||||||
|
|
||||||
include("includes/graphs/generic_multi_bits_separated.inc.php");
|
include("includes/graphs/generic_multi_bits_separated.inc.php");
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -28,7 +28,6 @@ if($width > "500")
|
|||||||
$descr = substr(str_pad(short_hrDeviceDescr($mempool['mempool_descr']), $descr_len),0,$descr_len);
|
$descr = substr(str_pad(short_hrDeviceDescr($mempool['mempool_descr']), $descr_len),0,$descr_len);
|
||||||
$descr = str_replace(":", "\:", $descr);
|
$descr = str_replace(":", "\:", $descr);
|
||||||
|
|
||||||
|
|
||||||
$perc = round($mempool['mempool_perc'], 0);
|
$perc = round($mempool['mempool_perc'], 0);
|
||||||
$background = get_percentage_colours($perc);
|
$background = get_percentage_colours($perc);
|
||||||
|
|
||||||
|
@@ -18,10 +18,10 @@
|
|||||||
|
|
||||||
#include("includes/graphs/generic_simplex.inc.php");
|
#include("includes/graphs/generic_simplex.inc.php");
|
||||||
|
|
||||||
|
|
||||||
$scale_min = 0;
|
$scale_min = 0;
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$graph_max = 1;
|
$graph_max = 1;
|
||||||
|
|
||||||
$ds = "RserverCurrentConns";
|
$ds = "RserverCurrentConns";
|
||||||
@@ -31,7 +31,6 @@ $colour_line = "191970";
|
|||||||
|
|
||||||
$colour_area_max = "FFEE99";
|
$colour_area_max = "FFEE99";
|
||||||
|
|
||||||
|
|
||||||
$nototal = 1;
|
$nototal = 1;
|
||||||
$unit_text = "Conns";
|
$unit_text = "Conns";
|
||||||
|
|
||||||
|
@@ -3,6 +3,7 @@
|
|||||||
$scale_min = 0;
|
$scale_min = 0;
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$graph_max = 1;
|
$graph_max = 1;
|
||||||
|
|
||||||
$ds = "RserverCurrentConns";
|
$ds = "RserverCurrentConns";
|
||||||
@@ -12,7 +13,6 @@ $colour_line = "191970";
|
|||||||
|
|
||||||
$colour_area_max = "FFEE99";
|
$colour_area_max = "FFEE99";
|
||||||
|
|
||||||
|
|
||||||
$nototal = 1;
|
$nototal = 1;
|
||||||
$unit_text = "Conns";
|
$unit_text = "Conns";
|
||||||
|
|
||||||
|
@@ -3,6 +3,7 @@
|
|||||||
$scale_min = 0;
|
$scale_min = 0;
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$graph_max = 1;
|
$graph_max = 1;
|
||||||
|
|
||||||
$ds = "RserverTotalConns";
|
$ds = "RserverTotalConns";
|
||||||
@@ -12,7 +13,6 @@ $colour_line = "191970";
|
|||||||
|
|
||||||
$colour_area_max = "FFEE99";
|
$colour_area_max = "FFEE99";
|
||||||
|
|
||||||
|
|
||||||
$nototal = 1;
|
$nototal = 1;
|
||||||
$unit_text = "Conns";
|
$unit_text = "Conns";
|
||||||
|
|
||||||
|
@@ -31,7 +31,6 @@ if($width > "500")
|
|||||||
$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'";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if($src['hostname'] == $config['own_hostname'])
|
if($src['hostname'] == $config['own_hostname'])
|
||||||
{
|
{
|
||||||
$filename = $config['smokeping']['dir'] . $device['hostname'].'.rrd';
|
$filename = $config['smokeping']['dir'] . $device['hostname'].'.rrd';
|
||||||
|
@@ -31,7 +31,6 @@ if($width > "500")
|
|||||||
$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'";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if($device['hostname'] == $config['own_hostname'])
|
if($device['hostname'] == $config['own_hostname'])
|
||||||
{
|
{
|
||||||
$filename = $config['smokeping']['dir'] . $dest['hostname'].'.rrd';
|
$filename = $config['smokeping']['dir'] . $dest['hostname'].'.rrd';
|
||||||
|
@@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
#include("includes/graphs/common.inc.php");
|
#include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
|
|
||||||
$ds_in = "ByteCounts";
|
$ds_in = "ByteCounts";
|
||||||
$ds_out = "ClientByteCounts";
|
$ds_out = "ClientByteCounts";
|
||||||
|
|
||||||
include("includes/graphs/generic_bytes.inc.php");
|
include("includes/graphs/generic_bytes.inc.php");
|
||||||
|
|
||||||
#include("includes/graphs/generic_duplex.inc.php");
|
#include("includes/graphs/generic_duplex.inc.php");
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@@ -3,6 +3,7 @@
|
|||||||
$scale_min = 0;
|
$scale_min = 0;
|
||||||
|
|
||||||
include("includes/graphs/common.inc.php");
|
include("includes/graphs/common.inc.php");
|
||||||
|
|
||||||
$graph_max = 1;
|
$graph_max = 1;
|
||||||
|
|
||||||
$ds = "NumberOfConnections";
|
$ds = "NumberOfConnections";
|
||||||
@@ -12,7 +13,6 @@ $colour_line = "191970";
|
|||||||
|
|
||||||
$colour_area_max = "FFEE99";
|
$colour_area_max = "FFEE99";
|
||||||
|
|
||||||
|
|
||||||
$nototal = 1;
|
$nototal = 1;
|
||||||
$unit_text = "Conns";
|
$unit_text = "Conns";
|
||||||
|
|
||||||
|
@@ -15,4 +15,5 @@ $graph_max = 1;
|
|||||||
$unit_text = "Packets";
|
$unit_text = "Packets";
|
||||||
|
|
||||||
include("includes/graphs/generic_duplex.inc.php");
|
include("includes/graphs/generic_duplex.inc.php");
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user