Commit version 24.12.13800
This commit is contained in:
@ -5,42 +5,42 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "app-asterisk-".$app['app_id'].".rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-asterisk-" . $app['app_id'] . ".rrd");
|
||||
|
||||
$array = array('activechan' => array('descr' => 'Active Channels', 'colour' => '750F7DFF'),
|
||||
'activecall' => array('descr' => 'Active Calls', 'colour' => '00FF00FF'),
|
||||
'iaxchannels' => array('descr' => 'IAX Channels', 'colour' => '4444FFFF'),
|
||||
'sipchannels' => array('descr' => 'SIP Channels', 'colour' => '157419FF'),
|
||||
);
|
||||
$array = ['activechan' => ['descr' => 'Active Channels', 'colour' => '750F7DFF'],
|
||||
'activecall' => ['descr' => 'Active Calls', 'colour' => '00FF00FF'],
|
||||
'iaxchannels' => ['descr' => 'IAX Channels', 'colour' => '4444FFFF'],
|
||||
'sipchannels' => ['descr' => 'SIP Channels', 'colour' => '157419FF'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $rrd_filename"); }
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Channels";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
#include($config['html_dir']."/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
|
||||
|
@ -5,40 +5,40 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "app-asterisk-".$app['app_id'].".rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-asterisk-" . $app['app_id'] . ".rrd");
|
||||
|
||||
$array = array('sippeers' => array('descr' => 'SIP Peers', 'colour' => '750F7DFF'),
|
||||
'sippeersonline' => array('descr' => 'SIP Peers Active', 'colour' => '00FF00FF'),
|
||||
'iaxpeers' => array('descr' => 'IAX Peers', 'colour' => '4444FFFF'),
|
||||
'iaxpeersonline' => array('descr' => 'IAX Peers Active', 'colour' => '157419FF'),
|
||||
);
|
||||
$array = ['sippeers' => ['descr' => 'SIP Peers', 'colour' => '750F7DFF'],
|
||||
'sippeersonline' => ['descr' => 'SIP Peers Active', 'colour' => '00FF00FF'],
|
||||
'iaxpeers' => ['descr' => 'IAX Peers', 'colour' => '4444FFFF'],
|
||||
'iaxpeersonline' => ['descr' => 'IAX Peers Active', 'colour' => '157419FF'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $rrd_filename"); }
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "Peers";
|
||||
|
||||
#include($config['html_dir']."/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -1,5 +1,4 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
@ -7,17 +6,17 @@
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
if (is_numeric($vars['id']) && ($auth || application_permitted($vars['id'])))
|
||||
{
|
||||
$app = get_application_by_id($vars['id']);
|
||||
$device = device_by_id_cache($app['device_id']);
|
||||
$title = generate_device_link($device);
|
||||
$title .= $graph_subtype;
|
||||
$auth = TRUE;
|
||||
if (is_intnum($vars['id']) && ($auth || application_permitted($vars['id']))) {
|
||||
$app = get_application_by_id($vars['id']);
|
||||
$device = device_by_id_cache($app['device_id']);
|
||||
|
||||
$auth = TRUE;
|
||||
|
||||
$graph_title = device_name($device, TRUE);
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
@ -5,49 +5,47 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-".$app['app_id']."-ns-stats.rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-" . $app['app_id'] . "-ns-stats.rrd");
|
||||
|
||||
$array = array(
|
||||
'Response' => array('descr' => "Responses sent", 'colour' => '999999'),
|
||||
'QrySuccess' => array('descr' => "Successful answers", 'colour' => '33cc33'),
|
||||
'QryAuthAns' => array('descr' => "Authoritative answer", 'colour' => '009900'),
|
||||
'QryNoauthAns' => array('descr' => "Non-authoritative answer", 'colour' => '336633'),
|
||||
'QryReferral' => array('descr' => "Referral answer", 'colour' => '996633'),
|
||||
'QryNxrrset' => array('descr' => "Empty answers", 'colour' => '36393d'),
|
||||
'QrySERVFAIL' => array('descr' => "SERVFAIL answer", 'colour' => 'ff3333'),
|
||||
'QryFORMERR' => array('descr' => "FORMERR answer", 'colour' => 'ffcccc'),
|
||||
'QryNXDOMAIN' => array('descr' => "NXDOMAIN answers", 'colour' => 'ff33ff'),
|
||||
'QryDropped' => array('descr' => "Dropped queries", 'colour' => '666666'),
|
||||
'QryFailure' => array('descr' => "Failed queries", 'colour' => 'ff0000'),
|
||||
'XfrReqDone' => array('descr' => "Transfers completed", 'colour' => '6666ff'),
|
||||
);
|
||||
$i = 0;
|
||||
$array = [
|
||||
'Response' => ['descr' => "Responses sent", 'colour' => '999999'],
|
||||
'QrySuccess' => ['descr' => "Successful answers", 'colour' => '33cc33'],
|
||||
'QryAuthAns' => ['descr' => "Authoritative answer", 'colour' => '009900'],
|
||||
'QryNoauthAns' => ['descr' => "Non-authoritative answer", 'colour' => '336633'],
|
||||
'QryReferral' => ['descr' => "Referral answer", 'colour' => '996633'],
|
||||
'QryNxrrset' => ['descr' => "Empty answers", 'colour' => '36393d'],
|
||||
'QrySERVFAIL' => ['descr' => "SERVFAIL answer", 'colour' => 'ff3333'],
|
||||
'QryFORMERR' => ['descr' => "FORMERR answer", 'colour' => 'ffcccc'],
|
||||
'QryNXDOMAIN' => ['descr' => "NXDOMAIN answers", 'colour' => 'ff33ff'],
|
||||
'QryDropped' => ['descr' => "Dropped queries", 'colour' => '666666'],
|
||||
'QryFailure' => ['descr' => "Failed queries", 'colour' => 'ff0000'],
|
||||
'XfrReqDone' => ['descr' => "Transfers completed", 'colour' => '6666ff'],
|
||||
];
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,47 +5,44 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "Entries";
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-".$app['app_id']."-cache-default.rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-" . $app['app_id'] . "-cache-default.rrd");
|
||||
|
||||
#$rrtypes = array('SOA', 'A', 'AAAA', 'NS', 'MX', 'CNAME', 'TXT', 'PTR', 'DNSKEY', 'RRSIG');
|
||||
$rrtypes = array('SOA', 'A', 'AAAA', 'NS', 'MX', 'CNAME', 'DNAME', 'TXT', 'SPF', 'SRV', 'SSHFP', 'TLSA', 'IPSECKEY', 'PTR', 'DNSKEY', 'RRSIG', 'NSEC', 'NSEC3', 'NSEC3PARAM', 'DS', 'DLV');
|
||||
$array = array();
|
||||
foreach ($rrtypes as $rrtype)
|
||||
{
|
||||
// Consistent random colours, offset picked for funny colours :-)
|
||||
$colour = substr(md5($rrtype), 1, 6);
|
||||
$array[$rrtype] = array('descr' => $rrtype, 'colour' => $colour, 'invert' => False);
|
||||
$array['NEG_'.$rrtype] = array('descr' => '!'.$rrtype, 'colour' => $colour, 'invert' => True);
|
||||
$rrtypes = ['SOA', 'A', 'AAAA', 'NS', 'MX', 'CNAME', 'DNAME', 'TXT', 'SPF', 'SRV', 'SSHFP', 'TLSA', 'IPSECKEY', 'PTR', 'DNSKEY', 'RRSIG', 'NSEC', 'NSEC3', 'NSEC3PARAM', 'DS', 'DLV'];
|
||||
$array = [];
|
||||
foreach ($rrtypes as $rrtype) {
|
||||
// Consistent random colours, offset picked for funny colours :-)
|
||||
$colour = substr(md5($rrtype), 1, 6);
|
||||
$array[$rrtype] = ['descr' => $rrtype, 'colour' => $colour, 'invert' => FALSE];
|
||||
$array['NEG_' . $rrtype] = ['descr' => '!' . $rrtype, 'colour' => $colour, 'invert' => TRUE];
|
||||
}
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$rrd_list[$i]['invert'] = $data['invert'];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$rrd_list[$i]['invert'] = $data['invert'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
#include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,44 +5,41 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "Requests";
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-".$app['app_id']."-query-in.rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-" . $app['app_id'] . "-query-in.rrd");
|
||||
|
||||
#$rrtypes = array('A', 'AAAA', 'PTR', 'ANY', 'IXFR', 'AXFR');
|
||||
$rrtypes = array('SOA', 'A', 'AAAA', 'NS', 'MX', 'CNAME', 'DNAME', 'TXT', 'SPF', 'SRV', 'SSHFP', 'TLSA', 'IPSECKEY', 'PTR', 'DNSKEY', 'RRSIG', 'NSEC', 'NSEC3', 'NSEC3PARAM', 'DS', 'DLV', 'ANY', 'IXFR', 'AXFR');
|
||||
$inverted = array('ANY', 'IXFR', 'AXFR');
|
||||
$array = array();
|
||||
foreach ($rrtypes as $rrtype)
|
||||
{
|
||||
$array[$rrtype] = array('descr' => $rrtype);
|
||||
$rrtypes = ['SOA', 'A', 'AAAA', 'NS', 'MX', 'CNAME', 'DNAME', 'TXT', 'SPF', 'SRV', 'SSHFP', 'TLSA', 'IPSECKEY', 'PTR', 'DNSKEY', 'RRSIG', 'NSEC', 'NSEC3', 'NSEC3PARAM', 'DS', 'DLV', 'ANY', 'IXFR', 'AXFR'];
|
||||
$inverted = ['ANY', 'IXFR', 'AXFR'];
|
||||
$array = [];
|
||||
foreach ($rrtypes as $rrtype) {
|
||||
$array[$rrtype] = ['descr' => $rrtype];
|
||||
}
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['invert'] = in_array($data['descr'], $inverted);
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['invert'] = in_array($data['descr'], $inverted);
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
#include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,44 +5,41 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "Requests";
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-".$app['app_id']."-query-out-default.rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-" . $app['app_id'] . "-query-out-default.rrd");
|
||||
|
||||
#$rrtypes = array('A', 'AAAA', 'PTR', 'ANY', 'IXFR', 'AXFR');
|
||||
$rrtypes = array('SOA', 'A', 'AAAA', 'NS', 'MX', 'CNAME', 'DNAME', 'TXT', 'SPF', 'SRV', 'SSHFP', 'TLSA', 'IPSECKEY', 'PTR', 'DNSKEY', 'RRSIG', 'NSEC', 'NSEC3', 'NSEC3PARAM', 'DS', 'DLV', 'ANY', 'IXFR', 'AXFR');
|
||||
$inverted = array('ANY', 'IXFR', 'AXFR');
|
||||
$array = array();
|
||||
foreach ($rrtypes as $rrtype)
|
||||
{
|
||||
$array[$rrtype] = array('descr' => $rrtype);
|
||||
$rrtypes = ['SOA', 'A', 'AAAA', 'NS', 'MX', 'CNAME', 'DNAME', 'TXT', 'SPF', 'SRV', 'SSHFP', 'TLSA', 'IPSECKEY', 'PTR', 'DNSKEY', 'RRSIG', 'NSEC', 'NSEC3', 'NSEC3PARAM', 'DS', 'DLV', 'ANY', 'IXFR', 'AXFR'];
|
||||
$inverted = ['ANY', 'IXFR', 'AXFR'];
|
||||
$array = [];
|
||||
foreach ($rrtypes as $rrtype) {
|
||||
$array[$rrtype] = ['descr' => $rrtype];
|
||||
}
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['invert'] = in_array($data['descr'], $inverted);
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['invert'] = in_array($data['descr'], $inverted);
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
#include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,42 +5,40 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-".$app['app_id']."-ns-stats.rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-" . $app['app_id'] . "-ns-stats.rrd");
|
||||
|
||||
$array = array(
|
||||
'AuthQryRej' => array('descr' => "Auth queries rejected", 'colour' => '6495ed'),
|
||||
'RecQryRej' => array('descr' => "Recursive queries rejected", 'colour' => '40e0d0'),
|
||||
'XfrRej' => array('descr' => "Transfer requests rejected", 'colour' => 'ffd700'),
|
||||
'UpdateRej' => array('descr' => "Update requests rejected", 'colour' => 'cd853f'),
|
||||
'UpdateBadPrereq' => array('descr' => "Updates rejected due to prereq fail", 'colour' => 'ff8c00'),
|
||||
);
|
||||
$i = 0;
|
||||
$array = [
|
||||
'AuthQryRej' => ['descr' => "Auth queries rejected", 'colour' => '6495ed'],
|
||||
'RecQryRej' => ['descr' => "Recursive queries rejected", 'colour' => '40e0d0'],
|
||||
'XfrRej' => ['descr' => "Transfer requests rejected", 'colour' => 'ffd700'],
|
||||
'UpdateRej' => ['descr' => "Update requests rejected", 'colour' => 'cd853f'],
|
||||
'UpdateBadPrereq' => ['descr' => "Updates rejected due to prereq fail", 'colour' => 'ff8c00'],
|
||||
];
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,40 +5,38 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "Requests";
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-".$app['app_id']."-req-in.rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-" . $app['app_id'] . "-req-in.rrd");
|
||||
|
||||
$array = array(
|
||||
'query' => array('descr' => 'Query'),
|
||||
'status' => array('descr' => 'Status'),
|
||||
'notify' => array('descr' => 'Notify'),
|
||||
'update' => array('descr' => 'Update'),
|
||||
);
|
||||
$i = 0;
|
||||
$array = [
|
||||
'query' => ['descr' => 'Query'],
|
||||
'status' => ['descr' => 'Status'],
|
||||
'notify' => ['descr' => 'Notify'],
|
||||
'update' => ['descr' => 'Update'],
|
||||
];
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,48 +5,46 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-".$app['app_id']."-ns-stats.rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-" . $app['app_id'] . "-ns-stats.rrd");
|
||||
|
||||
$array = array(
|
||||
'Requestv4' => array('descr' => "IPv4 requests", 'colour' => '006600'),
|
||||
'Requestv6' => array('descr' => "IPv6 requests", 'colour' => '66cc66'),
|
||||
'ReqEdns0' => array('descr' => "EDNS(0) requests", 'colour' => '9999ff'),
|
||||
'RespEDNS0' => array('descr' => "EDNS(0) responses", 'colour' => '6666ff'),
|
||||
'ReqTSIG' => array('descr' => "TSIG requests", 'colour' => 'ff9999'),
|
||||
'RespTSIG' => array('descr' => "TSIG responses", 'colour' => 'ff6666'),
|
||||
'ReqSIG0' => array('descr' => "SIG(0) requests", 'colour' => 'da70d6'),
|
||||
'RespSIG0' => array('descr' => "responses with SIG(0) sent", 'colour' => '9932cc'),
|
||||
'ReqTCP' => array('descr' => "TCP requests", 'colour' => 'ffd700'),
|
||||
'Response' => array('descr' => "Responses sent", 'colour' => '999999'),
|
||||
'TruncatedResp' => array('descr' => "Truncated Responses", 'colour' => 'ff0000'),
|
||||
);
|
||||
$i = 0;
|
||||
$array = [
|
||||
'Requestv4' => ['descr' => "IPv4 requests", 'colour' => '006600'],
|
||||
'Requestv6' => ['descr' => "IPv6 requests", 'colour' => '66cc66'],
|
||||
'ReqEdns0' => ['descr' => "EDNS(0) requests", 'colour' => '9999ff'],
|
||||
'RespEDNS0' => ['descr' => "EDNS(0) responses", 'colour' => '6666ff'],
|
||||
'ReqTSIG' => ['descr' => "TSIG requests", 'colour' => 'ff9999'],
|
||||
'RespTSIG' => ['descr' => "TSIG responses", 'colour' => 'ff6666'],
|
||||
'ReqSIG0' => ['descr' => "SIG(0) requests", 'colour' => 'da70d6'],
|
||||
'RespSIG0' => ['descr' => "responses with SIG(0) sent", 'colour' => '9932cc'],
|
||||
'ReqTCP' => ['descr' => "TCP requests", 'colour' => 'ffd700'],
|
||||
'Response' => ['descr' => "Responses sent", 'colour' => '999999'],
|
||||
'TruncatedResp' => ['descr' => "Truncated Responses", 'colour' => 'ff0000'],
|
||||
];
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,42 +5,40 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-".$app['app_id']."-resolver-default.rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-" . $app['app_id'] . "-resolver-default.rrd");
|
||||
|
||||
$array = array(
|
||||
'ValAttempt' => array('descr' => "Attempted validation", 'colour' => '4242CC', 'invert' => True),
|
||||
'ValOk' => array('descr' => "Succeeded validation", 'colour' => '33A533'),
|
||||
'ValNegOk' => array('descr' => "NX Succeeded validation", 'colour' => 'FFA500'),
|
||||
'ValFail' => array('descr' => "Failed validation", 'colour' => 'ff0000'),
|
||||
);
|
||||
$i = 0;
|
||||
$array = [
|
||||
'ValAttempt' => ['descr' => "Attempted validation", 'colour' => '4242CC', 'invert' => TRUE],
|
||||
'ValOk' => ['descr' => "Succeeded validation", 'colour' => '33A533'],
|
||||
'ValNegOk' => ['descr' => "NX Succeeded validation", 'colour' => 'FFA500'],
|
||||
'ValFail' => ['descr' => "Failed validation", 'colour' => 'ff0000'],
|
||||
];
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$rrd_list[$i]['invert'] = $data['invert'];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$rrd_list[$i]['invert'] = $data['invert'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,46 +5,44 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-".$app['app_id']."-resolver-default.rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-" . $app['app_id'] . "-resolver-default.rrd");
|
||||
|
||||
$array = array(
|
||||
'EDNS0Fail' => array('descr' => "EDNS(0) query failures", 'colour' => '87cefa'),
|
||||
'Mismatch' => array('descr' => "Mismatch responses received", 'colour' => '00bfff'),
|
||||
'Truncated' => array('descr' => "Truncated responses received", 'colour' => 'ff69b4'),
|
||||
'Lame' => array('descr' => "Lame delegations received", 'colour' => 'ff1493'),
|
||||
'Retry' => array('descr' => "Retried queries", 'colour' => 'ffa07a'),
|
||||
'QueryAbort' => array('descr' => "Aborted due to quota", 'colour' => 'ff6533'),
|
||||
'QuerySockFail' => array('descr' => "Socket errors", 'colour' => 'ff8c00'),
|
||||
'QueryTimeout' => array('descr' => "Timeouts", 'colour' => 'ff0000'),
|
||||
);
|
||||
$array = [
|
||||
'EDNS0Fail' => ['descr' => "EDNS(0) query failures", 'colour' => '87cefa'],
|
||||
'Mismatch' => ['descr' => "Mismatch responses received", 'colour' => '00bfff'],
|
||||
'Truncated' => ['descr' => "Truncated responses received", 'colour' => 'ff69b4'],
|
||||
'Lame' => ['descr' => "Lame delegations received", 'colour' => 'ff1493'],
|
||||
'Retry' => ['descr' => "Retried queries", 'colour' => 'ffa07a'],
|
||||
'QueryAbort' => ['descr' => "Aborted due to quota", 'colour' => 'ff6533'],
|
||||
'QuerySockFail' => ['descr' => "Socket errors", 'colour' => 'ff8c00'],
|
||||
'QueryTimeout' => ['descr' => "Timeouts", 'colour' => 'ff0000'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,46 +5,44 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-".$app['app_id']."-resolver-default.rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-" . $app['app_id'] . "-resolver-default.rrd");
|
||||
|
||||
$array = array(
|
||||
'Queryv4' => array('descr' => "Queries sent IPv4", 'colour' => '87cefa'),
|
||||
'Responsev4' => array('descr' => "Responses received IPv4", 'colour' => '00bfff'),
|
||||
'Queryv6' => array('descr' => "Queries sent IPv6", 'colour' => 'ff69b4'),
|
||||
'Responsev6' => array('descr' => "Responses received IPv6", 'colour' => 'ff1493'),
|
||||
'NXDOMAIN' => array('descr' => "NXDOMAIN received", 'colour' => 'ffa07a', 'invert' => True),
|
||||
'SERVFAIL' => array('descr' => "SERVFAIL received", 'colour' => 'ff6533', 'invert' => True),
|
||||
'FORMERR' => array('descr' => "FORMERR received", 'colour' => 'ff8c00', 'invert' => True),
|
||||
'OtherError' => array('descr' => "Other error received", 'colour' => 'ff0000', 'invert' => True),
|
||||
);
|
||||
$i = 0;
|
||||
$array = [
|
||||
'Queryv4' => ['descr' => "Queries sent IPv4", 'colour' => '87cefa'],
|
||||
'Responsev4' => ['descr' => "Responses received IPv4", 'colour' => '00bfff'],
|
||||
'Queryv6' => ['descr' => "Queries sent IPv6", 'colour' => 'ff69b4'],
|
||||
'Responsev6' => ['descr' => "Responses received IPv6", 'colour' => 'ff1493'],
|
||||
'NXDOMAIN' => ['descr' => "NXDOMAIN received", 'colour' => 'ffa07a', 'invert' => TRUE],
|
||||
'SERVFAIL' => ['descr' => "SERVFAIL received", 'colour' => 'ff6533', 'invert' => TRUE],
|
||||
'FORMERR' => ['descr' => "FORMERR received", 'colour' => 'ff8c00', 'invert' => TRUE],
|
||||
'OtherError' => ['descr' => "Other error received", 'colour' => 'ff0000', 'invert' => TRUE],
|
||||
];
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$rrd_list[$i]['invert'] = $data['invert'];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$rrd_list[$i]['invert'] = $data['invert'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,43 +5,41 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-".$app['app_id']."-resolver-default.rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-" . $app['app_id'] . "-resolver-default.rrd");
|
||||
|
||||
$array = array(
|
||||
'QryRTT10' => array('descr' => "< 10ms", 'colour' => '00d200'),
|
||||
'QryRTT100' => array('descr' => "10-100ms", 'colour' => '26ac00'),
|
||||
'QryRTT500' => array('descr' => "100-500ms", 'colour' => '498900'),
|
||||
'QryRTT800' => array('descr' => "500-800ms", 'colour' => '894900'),
|
||||
'QryRTT1600' => array('descr' => "800-1600ms", 'colour' => 'ac2600'),
|
||||
'QryRTT1600plus' => array('descr' => "> 1600ms", 'colour' => 'd20000'),
|
||||
);
|
||||
$i = 0;
|
||||
$array = [
|
||||
'QryRTT10' => ['descr' => "< 10ms", 'colour' => '00d200'],
|
||||
'QryRTT100' => ['descr' => "10-100ms", 'colour' => '26ac00'],
|
||||
'QryRTT500' => ['descr' => "100-500ms", 'colour' => '498900'],
|
||||
'QryRTT800' => ['descr' => "500-800ms", 'colour' => '894900'],
|
||||
'QryRTT1600' => ['descr' => "800-1600ms", 'colour' => 'ac2600'],
|
||||
'QryRTT1600plus' => ['descr' => "> 1600ms", 'colour' => 'd20000'],
|
||||
];
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,44 +5,42 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-".$app['app_id']."-ns-stats.rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-" . $app['app_id'] . "-ns-stats.rrd");
|
||||
|
||||
$array = array(
|
||||
'UpdateDone' => array('descr' => "Completed", 'colour' => '228b22'),
|
||||
'UpdateFail' => array('descr' => "Failed", 'colour' => 'ff0000'),
|
||||
'UpdateRej' => array('descr' => "Rejected", 'colour' => 'cd853f'),
|
||||
'UpdateBadPrereq' => array('descr' => "Rejected due to prereq fail", 'colour' => 'ff8c00'),
|
||||
'UpdateReqFwd' => array('descr' => "Fwd request", 'colour' => '6495ed'),
|
||||
'UpdateRespFwd' => array('descr' => "Fwd response", 'colour' => '40e0d0'),
|
||||
'UpdateFwdFail' => array('descr' => "Fwd failed", 'colour' => 'ffd700'),
|
||||
);
|
||||
$i = 0;
|
||||
$array = [
|
||||
'UpdateDone' => ['descr' => "Completed", 'colour' => '228b22'],
|
||||
'UpdateFail' => ['descr' => "Failed", 'colour' => 'ff0000'],
|
||||
'UpdateRej' => ['descr' => "Rejected", 'colour' => 'cd853f'],
|
||||
'UpdateBadPrereq' => ['descr' => "Rejected due to prereq fail", 'colour' => 'ff8c00'],
|
||||
'UpdateReqFwd' => ['descr' => "Fwd request", 'colour' => '6495ed'],
|
||||
'UpdateRespFwd' => ['descr' => "Fwd response", 'colour' => '40e0d0'],
|
||||
'UpdateFwdFail' => ['descr' => "Fwd failed", 'colour' => 'ffd700'],
|
||||
];
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,50 +5,48 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-".$app['app_id']."-zone-maint.rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-bind-" . $app['app_id'] . "-zone-maint.rrd");
|
||||
|
||||
$array = array(
|
||||
'NotifyOutv4' => array('descr' => "Notifies sent IPv4", 'colour' => '87cefa'),
|
||||
'NotifyOutv6' => array('descr' => "Notifies sent IPv6", 'colour' => '00bfff'),
|
||||
'NotifyInv4' => array('descr' => "Notifies received IPv4", 'colour' => '3cb371'),
|
||||
'NotifyInv6' => array('descr' => "Notifies received IPv6", 'colour' => '2e8b57'),
|
||||
'NotifyRej' => array('descr' => "Notifies rejected", 'colour' => 'ff8c00'),
|
||||
'SOAOutv4' => array('descr' => "SOA queries sent IPv4", 'colour' => 'daa520'),
|
||||
'SOAOutv6' => array('descr' => "SOA queries sent IPv6", 'colour' => 'b8860b'),
|
||||
'AXFRReqv4' => array('descr' => "AXFR requested IPv4", 'colour' => 'da70d6'),
|
||||
'AXFRReqv6' => array('descr' => "AXFR requested IPv6", 'colour' => '9932cc'),
|
||||
'IXFRReqv4' => array('descr' => "IXFR requested IPv4", 'colour' => 'ff69b4'),
|
||||
'IXFRReqv6' => array('descr' => "IXFR requested IPv6", 'colour' => 'ff1493'),
|
||||
'XfrSuccess' => array('descr' => "Successful transfer", 'colour' => '32cd32'),
|
||||
'XfrFail' => array('descr' => "Failed transfer", 'colour' => 'ff0000'),
|
||||
);
|
||||
$i = 0;
|
||||
$array = [
|
||||
'NotifyOutv4' => ['descr' => "Notifies sent IPv4", 'colour' => '87cefa'],
|
||||
'NotifyOutv6' => ['descr' => "Notifies sent IPv6", 'colour' => '00bfff'],
|
||||
'NotifyInv4' => ['descr' => "Notifies received IPv4", 'colour' => '3cb371'],
|
||||
'NotifyInv6' => ['descr' => "Notifies received IPv6", 'colour' => '2e8b57'],
|
||||
'NotifyRej' => ['descr' => "Notifies rejected", 'colour' => 'ff8c00'],
|
||||
'SOAOutv4' => ['descr' => "SOA queries sent IPv4", 'colour' => 'daa520'],
|
||||
'SOAOutv6' => ['descr' => "SOA queries sent IPv6", 'colour' => 'b8860b'],
|
||||
'AXFRReqv4' => ['descr' => "AXFR requested IPv4", 'colour' => 'da70d6'],
|
||||
'AXFRReqv6' => ['descr' => "AXFR requested IPv6", 'colour' => '9932cc'],
|
||||
'IXFRReqv4' => ['descr' => "IXFR requested IPv4", 'colour' => 'ff69b4'],
|
||||
'IXFRReqv6' => ['descr' => "IXFR requested IPv6", 'colour' => 'ff1493'],
|
||||
'XfrSuccess' => ['descr' => "Successful transfer", 'colour' => '32cd32'],
|
||||
'XfrFail' => ['descr' => "Failed transfer", 'colour' => 'ff0000'],
|
||||
];
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,38 +5,36 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "opsd";
|
||||
$nototal = "true";
|
||||
$rrd_filename = get_rrd_path($device, "app-ceph-".$app['app_id'].".rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-ceph-" . $app['app_id'] . ".rrd");
|
||||
|
||||
$array = array(
|
||||
'ops' => array('descr' => 'Ceph Operations per second'),
|
||||
);
|
||||
$array = [
|
||||
'ops' => ['descr' => 'Ceph Operations per second'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
|
@ -5,42 +5,40 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$rrd_filename = get_rrd_path($device, "app-ceph-".$app['app_id'].".rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-ceph-" . $app['app_id'] . ".rrd");
|
||||
|
||||
$array = array(
|
||||
'OSD_total' => array('descr' => 'OSD total'),
|
||||
'OSD_in' => array('descr' => 'OSD in'),
|
||||
'OSD_out' => array('descr' => 'OSD out'),
|
||||
);
|
||||
$i = 0;
|
||||
$array = [
|
||||
'OSD_total' => ['descr' => 'OSD total'],
|
||||
'OSD_in' => ['descr' => 'OSD in'],
|
||||
'OSD_out' => ['descr' => 'OSD out'],
|
||||
];
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,26 +5,25 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = get_rrd_path($device, "app-ceph-".$app['app_id'].".rrd");
|
||||
$mysql_rrd = get_rrd_path($device, "app-ceph-" . $app['app_id'] . ".rrd");
|
||||
|
||||
if (rrd_is_file($mysql_rrd))
|
||||
{
|
||||
$rrd_filename = $mysql_rrd;
|
||||
if (rrd_is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
|
||||
$format = "bytes";
|
||||
|
||||
$ds_in = "wrbps";
|
||||
$ds_in = "wrbps";
|
||||
$ds_out = "rdbps";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_data.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -3,51 +3,49 @@
|
||||
/**
|
||||
* Observium Network Management and Monitoring System
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @author Sander Steffann <sander@steffann.nl>
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @author Sander Steffann <sander@steffann.nl>
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$rrd_filename = str_replace('%index%', $app['app_id'], $config['rrd_types']['dhcpkit-stats']['file']);
|
||||
$rrd_filename = get_rrd_path($device, $rrd_filename);
|
||||
$simple_rrd = TRUE;
|
||||
|
||||
$array = array(
|
||||
'msg_in_solicit' => array('descr' => 'Solicit', 'invert' => FALSE),
|
||||
'msg_in_request' => array('descr' => 'Request', 'invert' => FALSE),
|
||||
'msg_in_confirm' => array('descr' => 'Confirm', 'invert' => FALSE),
|
||||
'msg_in_renew' => array('descr' => 'Renew', 'invert' => FALSE),
|
||||
'msg_in_rebind' => array('descr' => 'Rebind', 'invert' => FALSE),
|
||||
'msg_in_release' => array('descr' => 'Release', 'invert' => FALSE),
|
||||
'msg_in_decline' => array('descr' => 'Decline', 'invert' => FALSE),
|
||||
'msg_in_inf_req' => array('descr' => 'Inform. Request', 'invert' => FALSE),
|
||||
'msg_out_advertise' => array('descr' => 'Advertise', 'invert' => TRUE),
|
||||
'msg_out_reply' => array('descr' => 'Reply', 'invert' => TRUE),
|
||||
'msg_out_reconfigure' => array('descr' => 'Reconfigure', 'invert' => TRUE),
|
||||
);
|
||||
$i = 0;
|
||||
$array = [
|
||||
'msg_in_solicit' => ['descr' => 'Solicit', 'invert' => FALSE],
|
||||
'msg_in_request' => ['descr' => 'Request', 'invert' => FALSE],
|
||||
'msg_in_confirm' => ['descr' => 'Confirm', 'invert' => FALSE],
|
||||
'msg_in_renew' => ['descr' => 'Renew', 'invert' => FALSE],
|
||||
'msg_in_rebind' => ['descr' => 'Rebind', 'invert' => FALSE],
|
||||
'msg_in_release' => ['descr' => 'Release', 'invert' => FALSE],
|
||||
'msg_in_decline' => ['descr' => 'Decline', 'invert' => FALSE],
|
||||
'msg_in_inf_req' => ['descr' => 'Inform. Request', 'invert' => FALSE],
|
||||
'msg_out_advertise' => ['descr' => 'Advertise', 'invert' => TRUE],
|
||||
'msg_out_reply' => ['descr' => 'Reply', 'invert' => TRUE],
|
||||
'msg_out_reconfigure' => ['descr' => 'Reconfigure', 'invert' => TRUE],
|
||||
];
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['invert'] = $data['invert'];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['invert'] = $data['invert'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -3,47 +3,45 @@
|
||||
/**
|
||||
* Observium Network Management and Monitoring System
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @author Sander Steffann <sander@steffann.nl>
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @author Sander Steffann <sander@steffann.nl>
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$rrd_filename = str_replace('%index%', $app['app_id'], $config['rrd_types']['dhcpkit-stats']['file']);
|
||||
$rrd_filename = get_rrd_path($device, $rrd_filename);
|
||||
$simple_rrd = TRUE;
|
||||
|
||||
$array = array(
|
||||
'incoming_packets' => array('descr' => 'Incoming', 'invert' => FALSE),
|
||||
'outgoing_packets' => array('descr' => 'Outgoing', 'invert' => TRUE),
|
||||
'unparsable_packets' => array('descr' => 'Unparsable', 'invert' => TRUE),
|
||||
'handling_errors' => array('descr' => 'Handling error', 'invert' => TRUE),
|
||||
'for_other_server' => array('descr' => 'For other server', 'invert' => TRUE),
|
||||
'do_not_respond' => array('descr' => 'Ignored', 'invert' => TRUE),
|
||||
'use_multicast' => array('descr' => 'Use multicast', 'invert' => TRUE),
|
||||
);
|
||||
$i = 0;
|
||||
$array = [
|
||||
'incoming_packets' => ['descr' => 'Incoming', 'invert' => FALSE],
|
||||
'outgoing_packets' => ['descr' => 'Outgoing', 'invert' => TRUE],
|
||||
'unparsable_packets' => ['descr' => 'Unparsable', 'invert' => TRUE],
|
||||
'handling_errors' => ['descr' => 'Handling error', 'invert' => TRUE],
|
||||
'for_other_server' => ['descr' => 'For other server', 'invert' => TRUE],
|
||||
'do_not_respond' => ['descr' => 'Ignored', 'invert' => TRUE],
|
||||
'use_multicast' => ['descr' => 'Use multicast', 'invert' => TRUE],
|
||||
];
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['invert'] = $data['invert'];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['invert'] = $data['invert'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,43 +5,41 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = (($width < 550) ? 1 : 0);
|
||||
$rrd_filename = get_rrd_path($device, "app-dovecot.rrd");
|
||||
$array = array(
|
||||
'auth_successes' => array('descr' => 'Successful auths / s'),
|
||||
'auth_master_success' => array('descr' => 'Master auths / s'),
|
||||
'auth_failures' => array('descr' => 'Failed auths / s'),
|
||||
'auth_db_tempfails' => array('descr' => 'Temporary failures / s')
|
||||
);
|
||||
$array = [
|
||||
'auth_successes' => ['descr' => 'Successful auths / s'],
|
||||
'auth_master_success' => ['descr' => 'Master auths / s'],
|
||||
'auth_failures' => ['descr' => 'Failed auths / s'],
|
||||
'auth_db_tempfails' => ['descr' => 'Temporary failures / s']
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$x = (($x<=$max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data) {
|
||||
$x = (($x <= $max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,40 +5,38 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = (($width < 550) ? 1 : 0);
|
||||
$rrd_filename = get_rrd_path($device, "app-dovecot.rrd");
|
||||
$array = array(
|
||||
'auth_cache_hits' => array('descr' => 'hits')
|
||||
);
|
||||
$array = [
|
||||
'auth_cache_hits' => ['descr' => 'hits']
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$x = (($x<=$max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data) {
|
||||
$x = (($x <= $max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,40 +5,38 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = (($width < 550) ? 1 : 0);
|
||||
$rrd_filename = get_rrd_path($device, "app-dovecot.rrd");
|
||||
$array = array(
|
||||
'mail_cache_hits' => array('descr' => 'Mail cache hits')
|
||||
);
|
||||
$array = [
|
||||
'mail_cache_hits' => ['descr' => 'Mail cache hits']
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$x = (($x<=$max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data) {
|
||||
$x = (($x <= $max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,40 +5,38 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = (($width < 550) ? 1 : 0);
|
||||
$rrd_filename = get_rrd_path($device, "app-dovecot.rrd");
|
||||
$array = array(
|
||||
'num_cmds' => array('descr' => 'Commands')
|
||||
);
|
||||
$array = [
|
||||
'num_cmds' => ['descr' => 'Commands']
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$x = (($x<=$max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data) {
|
||||
$x = (($x <= $max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,40 +5,38 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = (($width < 550) ? 1 : 0);
|
||||
$rrd_filename = get_rrd_path($device, "app-dovecot.rrd");
|
||||
$array = array(
|
||||
'num_connected_sess' => array('descr' => 'Connected sessions')
|
||||
);
|
||||
$array = [
|
||||
'num_connected_sess' => ['descr' => 'Connected sessions']
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$x = (($x<=$max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data) {
|
||||
$x = (($x <= $max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,41 +5,39 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = (($width < 550) ? 1 : 0);
|
||||
$rrd_filename = get_rrd_path($device, "app-dovecot.rrd");
|
||||
$array = array(
|
||||
'user_cpu' => array('descr' => 'User CPU'),
|
||||
'sys_cpu' => array('descr' => 'System CPU')
|
||||
);
|
||||
$array = [
|
||||
'user_cpu' => ['descr' => 'User CPU'],
|
||||
'sys_cpu' => ['descr' => 'System CPU']
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$x = (($x<=$max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data) {
|
||||
$x = (($x <= $max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,45 +5,43 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = (($width < 550) ? 1 : 0);
|
||||
$rrd_filename = get_rrd_path($device, "app-dovecot.rrd");
|
||||
$array = array(
|
||||
'disk_input' => array('descr' => 'Disk Input'),
|
||||
'disk_output' => array('descr' => 'Disk Output'),
|
||||
'read_count' => array('descr' => 'Read Count'),
|
||||
'read_bytes' => array('descr' => 'Read Bytes'),
|
||||
'write_count' => array('descr' => 'Write Count'),
|
||||
'write_bytes' => array('descr' => 'Write Bytes')
|
||||
);
|
||||
$array = [
|
||||
'disk_input' => ['descr' => 'Disk Input'],
|
||||
'disk_output' => ['descr' => 'Disk Output'],
|
||||
'read_count' => ['descr' => 'Read Count'],
|
||||
'read_bytes' => ['descr' => 'Read Bytes'],
|
||||
'write_count' => ['descr' => 'Write Count'],
|
||||
'write_bytes' => ['descr' => 'Write Bytes']
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$x = (($x<=$max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data) {
|
||||
$x = (($x <= $max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,41 +5,39 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = (($width < 550) ? 1 : 0);
|
||||
$rrd_filename = get_rrd_path($device, "app-dovecot.rrd");
|
||||
$array = array(
|
||||
'min_faults' => array('descr' => 'Minor page reclaims'),
|
||||
'maj_faults' => array('descr' => 'Major page reclaims')
|
||||
);
|
||||
$array = [
|
||||
'min_faults' => ['descr' => 'Minor page reclaims'],
|
||||
'maj_faults' => ['descr' => 'Major page reclaims']
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$x = (($x<=$max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data) {
|
||||
$x = (($x <= $max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,43 +5,41 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = (($width < 550) ? 1 : 0);
|
||||
$rrd_filename = get_rrd_path($device, "app-dovecot.rrd");
|
||||
$array = array(
|
||||
'mail_lookup_path' => array('descr' => 'open() and stat() calls'),
|
||||
'mail_lookup_attr' => array('descr' => 'stat() and fstat() calls'),
|
||||
'mail_read_count' => array('descr' => 'read() calls for messages'),
|
||||
'mail_read_bytes' => array('descr' => 'message bytes read()')
|
||||
);
|
||||
$array = [
|
||||
'mail_lookup_path' => ['descr' => 'open() and stat() calls'],
|
||||
'mail_lookup_attr' => ['descr' => 'stat() and fstat() calls'],
|
||||
'mail_read_count' => ['descr' => 'read() calls for messages'],
|
||||
'mail_read_bytes' => ['descr' => 'message bytes read()']
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$x = (($x<=$max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data) {
|
||||
$x = (($x <= $max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,41 +5,39 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = (($width < 550) ? 1 : 0);
|
||||
$rrd_filename = get_rrd_path($device, "app-dovecot.rrd");
|
||||
$array = array(
|
||||
'vol_cs' => array('descr' => 'Voluntary Context Switchess'),
|
||||
'invol_cs' => array('descr' => 'Involuntary Context Switches')
|
||||
);
|
||||
$array = [
|
||||
'vol_cs' => ['descr' => 'Voluntary Context Switchess'],
|
||||
'invol_cs' => ['descr' => 'Involuntary Context Switches']
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$x = (($x<=$max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data) {
|
||||
$x = (($x <= $max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,32 +5,31 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$drbd_rrd = get_rrd_path($device, "app-drbd-".$app['app_instance'].".rrd");
|
||||
$drbd_rrd = get_rrd_path($device, "app-drbd-" . $app['app_instance'] . ".rrd");
|
||||
|
||||
if (rrd_is_file($drbd_rrd))
|
||||
{
|
||||
$rrd_filename = $drbd_rrd;
|
||||
if (rrd_is_file($drbd_rrd)) {
|
||||
$rrd_filename = $drbd_rrd;
|
||||
}
|
||||
|
||||
$ds_in = "dr";
|
||||
$ds_out = "dw";
|
||||
$ds_in = "dr";
|
||||
$ds_out = "dw";
|
||||
|
||||
$leg_in = "Read";
|
||||
$leg_out = "Written";
|
||||
|
||||
$multiplier = "1024";
|
||||
$format = "bytes";
|
||||
$format = "bytes";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_data.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,28 +5,27 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$drbd_rrd = get_rrd_path($device, "app-drbd-".$app['app_instance'].".rrd");
|
||||
$drbd_rrd = get_rrd_path($device, "app-drbd-" . $app['app_instance'] . ".rrd");
|
||||
|
||||
if (rrd_is_file($drbd_rrd))
|
||||
{
|
||||
$rrd_filename = $drbd_rrd;
|
||||
if (rrd_is_file($drbd_rrd)) {
|
||||
$rrd_filename = $drbd_rrd;
|
||||
}
|
||||
|
||||
$ds_in = "nr";
|
||||
$ds_in = "nr";
|
||||
$ds_out = "ns";
|
||||
|
||||
$multiplier = "1024";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_data.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,44 +5,43 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "app-drbd-".$app['app_instance'].".rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-drbd-" . $app['app_instance'] . ".rrd");
|
||||
|
||||
$array = array(
|
||||
'lo' => 'Local I/O',
|
||||
'pe' => 'Pending',
|
||||
'ua' => 'UnAcked',
|
||||
'ap' => 'App Pending',
|
||||
);
|
||||
$array = [
|
||||
'lo' => 'Local I/O',
|
||||
'pe' => 'Pending',
|
||||
'ua' => 'UnAcked',
|
||||
'ap' => 'App Pending',
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($data))
|
||||
{
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
} else {
|
||||
$rrd_list[$i]['descr'] = $data;
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
if (is_array($data)) {
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
} else {
|
||||
$rrd_list[$i]['descr'] = $data;
|
||||
}
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $rrd_filename"); }
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,21 +5,20 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$drbd_rrd = get_rrd_path($device, "app-drbd-".$app['app_instance'].".rrd");
|
||||
$drbd_rrd = get_rrd_path($device, "app-drbd-" . $app['app_instance'] . ".rrd");
|
||||
|
||||
if (rrd_is_file($drbd_rrd))
|
||||
{
|
||||
$rrd_filename = $drbd_rrd;
|
||||
if (rrd_is_file($drbd_rrd)) {
|
||||
$rrd_filename = $drbd_rrd;
|
||||
}
|
||||
|
||||
$ds = "oos";
|
||||
@ -29,11 +28,11 @@ $colour_line = "006600";
|
||||
|
||||
$colour_area_max = "FFEE99";
|
||||
|
||||
$graph_max = 1;
|
||||
$graph_max = 1;
|
||||
$multiplier = 1000;
|
||||
|
||||
$unit_text = "Bytes";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,29 +5,28 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Current Requests";
|
||||
$rrd_filename = get_rrd_path($device, "wmi-app-exchange-as.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Current Requests";
|
||||
$rrd_list[0]['ds'] = "currentrequests";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Current Requests";
|
||||
$rrd_list[0]['ds'] = "currentrequests";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,29 +5,28 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Ping Commands Pending";
|
||||
$rrd_filename = get_rrd_path($device, "wmi-app-exchange-as.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Ping Commands Pending";
|
||||
$rrd_list[0]['ds'] = "pingcommandspending";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Ping Commands Pending";
|
||||
$rrd_list[0]['ds'] = "pingcommandspending";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,29 +5,28 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Sync Commands Pending";
|
||||
$rrd_filename = get_rrd_path($device, "wmi-app-exchange-as.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Sync Commands Pending";
|
||||
$rrd_list[0]['ds'] = "synccommandspending";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Sync Commands Pending";
|
||||
$rrd_list[0]['ds'] = "synccommandspending";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,29 +5,28 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Total Error Responses";
|
||||
$rrd_filename = get_rrd_path($device, "wmi-app-exchange-auto.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Total Error Responses";
|
||||
$rrd_list[0]['ds'] = "errorresponses";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Total Error Responses";
|
||||
$rrd_list[0]['ds'] = "errorresponses";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,29 +5,28 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Total Requests";
|
||||
$rrd_filename = get_rrd_path($device, "wmi-app-exchange-auto.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Total Requests";
|
||||
$rrd_list[0]['ds'] = "totalrequests";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Total Requests";
|
||||
$rrd_list[0]['ds'] = "totalrequests";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,29 +5,28 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Count";
|
||||
$rrd_filename = get_rrd_path($device, "wmi-app-exchange-is.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Active Connection Count";
|
||||
$rrd_list[0]['ds'] = "activeconcount";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Active Connection Count";
|
||||
$rrd_list[0]['ds'] = "activeconcount";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,29 +5,28 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Failed Requests";
|
||||
$rrd_filename = get_rrd_path($device, "wmi-app-exchange-is.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Failed RPC Requests (Server Busy)";
|
||||
$rrd_list[0]['ds'] = "clientrpcfailbusy";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Failed RPC Requests (Server Busy)";
|
||||
$rrd_list[0]['ds'] = "clientrpcfailbusy";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,33 +5,32 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Requests";
|
||||
$rrd_filename = get_rrd_path($device, "wmi-app-exchange-is.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "RPC Requests";
|
||||
$rrd_list[0]['ds'] = "rpcrequests";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "RPC Requests";
|
||||
$rrd_list[0]['ds'] = "rpcrequests";
|
||||
|
||||
$rrd_list[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = "RPC Average Latency";
|
||||
$rrd_list[1]['ds'] = "rpcavglatency";
|
||||
$rrd_list[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = "RPC Average Latency";
|
||||
$rrd_list[1]['ds'] = "rpcavglatency";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,29 +5,28 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "User Count";
|
||||
$rrd_filename = get_rrd_path($device, "wmi-app-exchange-is.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Current User Count";
|
||||
$rrd_list[0]['ds'] = "usercount";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Current User Count";
|
||||
$rrd_list[0]['ds'] = "usercount";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,29 +5,28 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "ms";
|
||||
$rrd_filename = get_rrd_path($device, "wmi-app-exchange-mailbox.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "RPC Average Latency";
|
||||
$rrd_list[0]['ds'] = "rpcavglatency";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "RPC Average Latency";
|
||||
$rrd_list[0]['ds'] = "rpcavglatency";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,37 +5,36 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Messages";
|
||||
$rrd_filename = get_rrd_path($device, "wmi-app-exchange-mailbox.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Messages Sent per Second";
|
||||
$rrd_list[0]['ds'] = "msgsentsec";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Messages Sent per Second";
|
||||
$rrd_list[0]['ds'] = "msgsentsec";
|
||||
|
||||
$rrd_list[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = "Messages Delivered per Second";
|
||||
$rrd_list[1]['ds'] = "msgdeliversec";
|
||||
$rrd_list[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = "Messages Delivered per Second";
|
||||
$rrd_list[1]['ds'] = "msgdeliversec";
|
||||
|
||||
$rrd_list[2]['filename'] = $rrd_filename;
|
||||
$rrd_list[2]['descr'] = "Messages Submitted per Second";
|
||||
$rrd_list[2]['ds'] = "msgsubmitsec";
|
||||
$rrd_list[2]['filename'] = $rrd_filename;
|
||||
$rrd_list[2]['descr'] = "Messages Submitted per Second";
|
||||
$rrd_list[2]['ds'] = "msgsubmitsec";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,8 +5,8 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
@ -5,29 +5,28 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Download Tasks Completed";
|
||||
$rrd_filename = get_rrd_path($device, "wmi-app-exchange-oab.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Download Tasks Completed";
|
||||
$rrd_list[0]['ds'] = "dltaskscompleted";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Download Tasks Completed";
|
||||
$rrd_list[0]['ds'] = "dltaskscompleted";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,29 +5,28 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Download Tasks Queued";
|
||||
$rrd_filename = get_rrd_path($device, "wmi-app-exchange-oab.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Download Tasks Queued";
|
||||
$rrd_list[0]['ds'] = "dltasksqueued";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Download Tasks Queued";
|
||||
$rrd_list[0]['ds'] = "dltasksqueued";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,29 +5,28 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "req/sec";
|
||||
$rrd_filename = get_rrd_path($device, "wmi-app-exchange-owa.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Requests Per Second";
|
||||
$rrd_list[0]['ds'] = "requestspersecond";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Requests Per Second";
|
||||
$rrd_list[0]['ds'] = "requestspersecond";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,33 +5,32 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Milliseconds";
|
||||
$rrd_filename = get_rrd_path($device, "wmi-app-exchange-owa.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Average Response Time";
|
||||
$rrd_list[0]['ds'] = "avgresponsetime";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Average Response Time";
|
||||
$rrd_list[0]['ds'] = "avgresponsetime";
|
||||
|
||||
$rrd_list[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = "Average Search Time";
|
||||
$rrd_list[1]['ds'] = "avgsearchtime";
|
||||
$rrd_list[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = "Average Search Time";
|
||||
$rrd_list[1]['ds'] = "avgsearchtime";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,29 +5,28 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Users";
|
||||
$rrd_filename = get_rrd_path($device, "wmi-app-exchange-owa.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Current Unique Users";
|
||||
$rrd_list[0]['ds'] = "currentuniqueusers";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Current Unique Users";
|
||||
$rrd_list[0]['ds'] = "currentuniqueusers";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,29 +5,28 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Queues";
|
||||
$rrd_filename = get_rrd_path($device, "wmi-app-exchange-tqs.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Active Mailbox Queues";
|
||||
$rrd_list[0]['ds'] = "mbdeliverqueue";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Active Mailbox Queues";
|
||||
$rrd_list[0]['ds'] = "mbdeliverqueue";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,33 +5,32 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Queues";
|
||||
$rrd_filename = get_rrd_path($device, "wmi-app-exchange-tqs.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Total Queued Messages";
|
||||
$rrd_list[0]['ds'] = "aggregatequeue";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Total Queued Messages";
|
||||
$rrd_list[0]['ds'] = "aggregatequeue";
|
||||
|
||||
$rrd_list[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = "Delivery Queues per Second";
|
||||
$rrd_list[1]['ds'] = "deliveryqpersec";
|
||||
$rrd_list[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = "Delivery Queues per Second";
|
||||
$rrd_list[1]['ds'] = "deliveryqpersec";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,33 +5,32 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Queues";
|
||||
$rrd_filename = get_rrd_path($device, "wmi-app-exchange-smtp.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Current Connections";
|
||||
$rrd_list[0]['ds'] = "currentconnections";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Current Connections";
|
||||
$rrd_list[0]['ds'] = "currentconnections";
|
||||
|
||||
$rrd_list[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = "Messages Sent per Second";
|
||||
$rrd_list[1]['ds'] = "msgsentpersec";
|
||||
$rrd_list[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = "Messages Sent per Second";
|
||||
$rrd_list[1]['ds'] = "msgsentpersec";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,29 +5,28 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Queues";
|
||||
$rrd_filename = get_rrd_path($device, "wmi-app-exchange-tqs.rrd");
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Submission Queues";
|
||||
$rrd_list[0]['ds'] = "submissionqueue";
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Submission Queues";
|
||||
$rrd_list[0]['ds'] = "submissionqueue";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,41 +5,39 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$rrd_filename = get_rrd_path($device, "app-exim-mailqueue-".$app['app_id'].".rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-exim-mailqueue-" . $app['app_id'] . ".rrd");
|
||||
|
||||
$array = array(
|
||||
'frozen' => array('descr' => 'Frozen'),
|
||||
'bounces' => array('descr' => 'Bounces'),
|
||||
'active' => array('descr' => 'Active'),
|
||||
'total' => array('descr' => 'Total')
|
||||
);
|
||||
$i = 0;
|
||||
$array = [
|
||||
'frozen' => ['descr' => 'Frozen'],
|
||||
'bounces' => ['descr' => 'Bounces'],
|
||||
'active' => ['descr' => 'Active'],
|
||||
'total' => ['descr' => 'Total']
|
||||
];
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename']= $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,44 +5,42 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = (($width < 550) ? 1 : 0);
|
||||
$unit_text = "Messages/minute";
|
||||
$rrd_filename = get_rrd_path($device, "app-exim.rrd");
|
||||
$array = array(
|
||||
'rejected' => array('descr' => 'Rejected'),
|
||||
'bounced' => array('descr' => 'Bounced'),
|
||||
'greylisted' => array('descr' => 'Greylisted'),
|
||||
'delayed' => array('descr' => 'Delayed'),
|
||||
);
|
||||
$array = [
|
||||
'rejected' => ['descr' => 'Rejected'],
|
||||
'bounced' => ['descr' => 'Bounced'],
|
||||
'greylisted' => ['descr' => 'Greylisted'],
|
||||
'delayed' => ['descr' => 'Delayed'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$x = (($x<=$max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data) {
|
||||
$x = (($x <= $max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/minute_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/minute_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,42 +5,40 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = (($width < 550) ? 1 : 0);
|
||||
$unit_text = "Messages/minute";
|
||||
$rrd_filename = get_rrd_path($device, "app-exim.rrd");
|
||||
$array = array(
|
||||
'sent' => array('descr' => 'Sent'),
|
||||
'received' => array('descr' => 'Received'),
|
||||
);
|
||||
$array = [
|
||||
'sent' => ['descr' => 'Sent'],
|
||||
'received' => ['descr' => 'Received'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$x = (($x<=$max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data) {
|
||||
$x = (($x <= $max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/minute_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/minute_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,42 +5,40 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = (($width < 550) ? 1 : 0);
|
||||
$unit_text = "Messages/minute";
|
||||
$rrd_filename = get_rrd_path($device, "app-exim.rrd");
|
||||
$array = array(
|
||||
'virus' => array('descr' => 'Virus'),
|
||||
'spam' => array('descr' => 'Spam'),
|
||||
);
|
||||
$array = [
|
||||
'virus' => ['descr' => 'Virus'],
|
||||
'spam' => ['descr' => 'Spam'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$x = (($x<=$max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data) {
|
||||
$x = (($x <= $max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/minute_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/minute_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,47 +5,45 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = (($width < 550) ? 1 : 0);
|
||||
$unit_text = "Access/sec";
|
||||
$rrd_filename = get_rrd_path($device, "app-freeradius-" . $app['app_id'] . ".rrd");
|
||||
$array = array(
|
||||
'AccountingReqs' => array('descr' => 'Accounting Requests'),
|
||||
'AccountingResponses' => array('descr' => 'Accounting Responses'),
|
||||
'AcctDroppedReqs' => array('descr' => 'Acct Dropped Requests'),
|
||||
'AcctDuplicateReqs' => array('descr' => 'Acct Duplicate Requests'),
|
||||
'AcctInvalidReqs' => array('descr' => 'Acct Invalid Requests'),
|
||||
'AcctMalformedReqs' => array('descr' => 'Acct Malformed Requests'),
|
||||
'AcctUnknownTypes' => array('descr' => 'Acct Unknown Types'),
|
||||
);
|
||||
$array = [
|
||||
'AccountingReqs' => ['descr' => 'Accounting Requests'],
|
||||
'AccountingResponses' => ['descr' => 'Accounting Responses'],
|
||||
'AcctDroppedReqs' => ['descr' => 'Acct Dropped Requests'],
|
||||
'AcctDuplicateReqs' => ['descr' => 'Acct Duplicate Requests'],
|
||||
'AcctInvalidReqs' => ['descr' => 'Acct Invalid Requests'],
|
||||
'AcctMalformedReqs' => ['descr' => 'Acct Malformed Requests'],
|
||||
'AcctUnknownTypes' => ['descr' => 'Acct Unknown Types'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$x = (($x<=$max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data) {
|
||||
$x = (($x <= $max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,50 +5,48 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = (($width < 550) ? 1 : 0);
|
||||
$unit_text = "Access/sec";
|
||||
$rrd_filename = get_rrd_path($device, "app-freeradius-" . $app['app_id'] . ".rrd");
|
||||
$array = array(
|
||||
'AccessAccepts' => array('descr' => 'Access Accepts'),
|
||||
'AccessChallenges' => array('descr' => 'Access Challenges'),
|
||||
'AccessRejects' => array('descr' => 'Access Rejects'),
|
||||
'AccessReqs' => array('descr' => 'Access Requests'),
|
||||
'AuthDroppedReqs' => array('descr' => 'Auth Dropped Requests'),
|
||||
'AuthDuplicateReqs' => array('descr' => 'Auth Duplicate Requests'),
|
||||
'AuthInvalidReqs' => array('descr' => 'Auth Invalid Requests'),
|
||||
'AuthMalformedReqs' => array('descr' => 'Auth Malformed Requests'),
|
||||
'AuthResponses' => array('descr' => 'Auth Responses'),
|
||||
'AuthUnknownTypes' => array('descr' => 'Auth Unknown Types'),
|
||||
);
|
||||
$array = [
|
||||
'AccessAccepts' => ['descr' => 'Access Accepts'],
|
||||
'AccessChallenges' => ['descr' => 'Access Challenges'],
|
||||
'AccessRejects' => ['descr' => 'Access Rejects'],
|
||||
'AccessReqs' => ['descr' => 'Access Requests'],
|
||||
'AuthDroppedReqs' => ['descr' => 'Auth Dropped Requests'],
|
||||
'AuthDuplicateReqs' => ['descr' => 'Auth Duplicate Requests'],
|
||||
'AuthInvalidReqs' => ['descr' => 'Auth Invalid Requests'],
|
||||
'AuthMalformedReqs' => ['descr' => 'Auth Malformed Requests'],
|
||||
'AuthResponses' => ['descr' => 'Auth Responses'],
|
||||
'AuthUnknownTypes' => ['descr' => 'Auth Unknown Types'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$x = (($x<=$max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data) {
|
||||
$x = (($x <= $max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,13 +5,13 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$ds = "current";
|
||||
@ -20,13 +20,12 @@ $colour_line = "880000";
|
||||
$colour_area_max = "FFCCCC";
|
||||
$graph_max = 0;
|
||||
$unit_text = "Current";
|
||||
$icecast_rrd = get_rrd_path($device, "app-icecast-".$app['app_id'].".rrd");
|
||||
$icecast_rrd = get_rrd_path($device, "app-icecast-" . $app['app_id'] . ".rrd");
|
||||
|
||||
if (rrd_is_file($icecast_rrd))
|
||||
{
|
||||
$rrd_filename = $icecast_rrd;
|
||||
if (rrd_is_file($icecast_rrd)) {
|
||||
$rrd_filename = $icecast_rrd;
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,13 +5,13 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$ds = "max";
|
||||
@ -20,13 +20,12 @@ $colour_line = "880000";
|
||||
$colour_area_max = "FFCCCC";
|
||||
$graph_max = 0;
|
||||
$unit_text = "Max";
|
||||
$icecast_rrd = get_rrd_path($device, "app-icecast-".$app['app_id'].".rrd");
|
||||
$icecast_rrd = get_rrd_path($device, "app-icecast-" . $app['app_id'] . ".rrd");
|
||||
|
||||
if (rrd_is_file($icecast_rrd))
|
||||
{
|
||||
$rrd_filename = $icecast_rrd;
|
||||
if (rrd_is_file($icecast_rrd)) {
|
||||
$rrd_filename = $icecast_rrd;
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -1,43 +1,41 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed-q12";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "IOPs";
|
||||
$nototal = "true";
|
||||
$colours = "mixed-q12";
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "IOPs";
|
||||
$nototal = "true";
|
||||
//$multiplier = "1000000";
|
||||
$rrd_filename = get_rrd_path($device, "app-ioping-".$app['app_instance'].".rrd");
|
||||
$array = array(
|
||||
'reqps' => array('descr' => 'I/O Requests per second'),
|
||||
);
|
||||
$rrd_filename = get_rrd_path($device, "app-ioping-" . $app['app_instance'] . ".rrd");
|
||||
$array = [
|
||||
'reqps' => ['descr' => 'I/O Requests per second'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename']= $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
|
@ -1,43 +1,41 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "greens";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "B/sec";
|
||||
$nototal = "true";
|
||||
$colours = "greens";
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "B/sec";
|
||||
$nototal = "true";
|
||||
//$multiplier = "1000000";
|
||||
$rrd_filename = get_rrd_path($device, "app-ioping-".$app['app_instance'].".rrd");
|
||||
$array = array(
|
||||
'tfspeed' => array('descr' => 'Transfer Speed'),
|
||||
);
|
||||
$rrd_filename = get_rrd_path($device, "app-ioping-" . $app['app_instance'] . ".rrd");
|
||||
$array = [
|
||||
'tfspeed' => ['descr' => 'Transfer Speed'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
|
@ -1,45 +1,43 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "nano second";
|
||||
$nototal = "true";
|
||||
$multiplier = "1000000";
|
||||
$rrd_filename = get_rrd_path($device, "app-ioping-".$app['app_instance'].".rrd");
|
||||
$array = array(
|
||||
'minreqtime' => array('descr' => 'Minimum Response Time'),
|
||||
'avgreqtime' => array('descr' => 'Average Response Time'),
|
||||
'maxreqtime' => array('descr' => 'Maximum Request Time'),
|
||||
);
|
||||
$rrd_filename = get_rrd_path($device, "app-ioping-" . $app['app_instance'] . ".rrd");
|
||||
$array = [
|
||||
'minreqtime' => ['descr' => 'Minimum Response Time'],
|
||||
'avgreqtime' => ['descr' => 'Average Response Time'],
|
||||
'maxreqtime' => ['descr' => 'Maximum Request Time'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$i];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
|
@ -5,39 +5,37 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-'.$app["app_id"].'.rrd');
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-' . $app["app_id"] . '.rrd');
|
||||
|
||||
$array = array(
|
||||
'LoadedClassCount' => array('descr' => 'Loaded Class Count'),
|
||||
'UnloadedClassCount' => array('descr' => 'Unloaded Class Count'),
|
||||
);
|
||||
$array = [
|
||||
'LoadedClassCount' => ['descr' => 'Loaded Class Count'],
|
||||
'UnloadedClassCount' => ['descr' => 'Unloaded Class Count'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Number";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,39 +5,37 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-'.$app["app_id"].'.rrd');
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-' . $app["app_id"] . '.rrd');
|
||||
|
||||
$array = array(
|
||||
'EdenSpaceMax' => array('descr' => 'Eden Space Max Usage'),
|
||||
'EdenSpaceUsed' => array('descr' => 'Eden Space Current Usage'),
|
||||
);
|
||||
$array = [
|
||||
'EdenSpaceMax' => ['descr' => 'Eden Space Max Usage'],
|
||||
'EdenSpaceUsed' => ['descr' => 'Eden Space Current Usage'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Bytes";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,34 +5,32 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-'.$app["app_id"].'.rrd');
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-' . $app["app_id"] . '.rrd');
|
||||
|
||||
$array = array(
|
||||
'G1OldGenCount' => array('descr' => 'G1 Old Gen Collection Count'),
|
||||
'CMSCount' => array('descr' => 'CMS Collection Count'),
|
||||
'PSMarkSweepCount' => array('descr' => 'PS Mark Sweep Collection Count'),
|
||||
);
|
||||
$array = [
|
||||
'G1OldGenCount' => ['descr' => 'G1 Old Gen Collection Count'],
|
||||
'CMSCount' => ['descr' => 'CMS Collection Count'],
|
||||
'PSMarkSweepCount' => ['descr' => 'PS Mark Sweep Collection Count'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
@ -40,6 +38,6 @@ $nototal = 1;
|
||||
$unit_text = "Events";
|
||||
|
||||
#include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,34 +5,32 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-'.$app["app_id"].'.rrd');
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-' . $app["app_id"] . '.rrd');
|
||||
|
||||
$array = array(
|
||||
'G1OldGenTime' => array('descr' => 'G1 Old Gen Collection Time'),
|
||||
'CMSTime' => array('descr' => 'CMS Collection Time'),
|
||||
'PSMarkSweepTime' => array('descr' => 'PS Mark Sweep Collection Time'),
|
||||
);
|
||||
$array = [
|
||||
'G1OldGenTime' => ['descr' => 'G1 Old Gen Collection Time'],
|
||||
'CMSTime' => ['descr' => 'CMS Collection Time'],
|
||||
'PSMarkSweepTime' => ['descr' => 'PS Mark Sweep Collection Time'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
@ -42,6 +40,6 @@ $unit_text = "Seconds";
|
||||
$divider = 1000;
|
||||
|
||||
#include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,35 +5,33 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-'.$app["app_id"].'.rrd');
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-' . $app["app_id"] . '.rrd');
|
||||
|
||||
$array = array(
|
||||
'G1YoungGenCount' => array('descr' => 'G1 Young Gen Collection Count'),
|
||||
'ParNewCount' => array('descr' => 'Par New Collection Count'),
|
||||
'CopyCount' => array('descr' => 'Copy Collection Count'),
|
||||
'PSScavengeTime' => array('descr' => 'PS Scavenge Collection Count'),
|
||||
);
|
||||
$array = [
|
||||
'G1YoungGenCount' => ['descr' => 'G1 Young Gen Collection Count'],
|
||||
'ParNewCount' => ['descr' => 'Par New Collection Count'],
|
||||
'CopyCount' => ['descr' => 'Copy Collection Count'],
|
||||
'PSScavengeTime' => ['descr' => 'PS Scavenge Collection Count'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
@ -41,6 +39,6 @@ $nototal = 1;
|
||||
$unit_text = "Events";
|
||||
|
||||
#include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,35 +5,33 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-'.$app["app_id"].'.rrd');
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-' . $app["app_id"] . '.rrd');
|
||||
|
||||
$array = array(
|
||||
'G1YoungGenTime' => array('descr' => 'G1 Young Gen Collection Time'),
|
||||
'ParNewTime' => array('descr' => 'Par New Collection Time'),
|
||||
'CopyTime' => array('descr' => 'Copy Collection Time'),
|
||||
'PSScavengeTime' => array('descr' => 'PS Scavenge Collection Time'),
|
||||
);
|
||||
$array = [
|
||||
'G1YoungGenTime' => ['descr' => 'G1 Young Gen Collection Time'],
|
||||
'ParNewTime' => ['descr' => 'Par New Collection Time'],
|
||||
'CopyTime' => ['descr' => 'Copy Collection Time'],
|
||||
'PSScavengeTime' => ['descr' => 'PS Scavenge Collection Time'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
@ -43,6 +41,6 @@ $unit_text = "Seconds";
|
||||
$divider = 1000;
|
||||
|
||||
#include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,39 +5,37 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-'.$app["app_id"].'.rrd');
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-' . $app["app_id"] . '.rrd');
|
||||
|
||||
$array = array(
|
||||
'HeapMemoryMaxUsage' => array('descr' => 'Heap Memory Max Usage'),
|
||||
'HeapMemoryUsed' => array('descr' => 'Heap Memory Current Usage'),
|
||||
);
|
||||
$array = [
|
||||
'HeapMemoryMaxUsage' => ['descr' => 'Heap Memory Max Usage'],
|
||||
'HeapMemoryUsed' => ['descr' => 'Heap Memory Current Usage'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Bytes";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,40 +5,38 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-'.$app["app_id"].'.rrd');
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-' . $app["app_id"] . '.rrd');
|
||||
|
||||
$array = array(
|
||||
'EdenSpaceUsed' => array('descr' => 'Eden Space'),
|
||||
'PermGenUsed' => array('descr' => 'Permanent Generation'),
|
||||
'OldGenUsed' => array('descr' => 'Old Generation'),
|
||||
);
|
||||
$array = [
|
||||
'EdenSpaceUsed' => ['descr' => 'Eden Space'],
|
||||
'PermGenUsed' => ['descr' => 'Permanent Generation'],
|
||||
'OldGenUsed' => ['descr' => 'Old Generation'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Bytes";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,39 +5,37 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-'.$app["app_id"].'.rrd');
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-' . $app["app_id"] . '.rrd');
|
||||
|
||||
$array = array(
|
||||
'NonHeapMemoryMax' => array('descr' => 'Non Heap Memory Max Usage'),
|
||||
'NonHeapMemoryUsed' => array('descr' => 'Non Heap Memory Current Usage'),
|
||||
);
|
||||
$array = [
|
||||
'NonHeapMemoryMax' => ['descr' => 'Non Heap Memory Max Usage'],
|
||||
'NonHeapMemoryUsed' => ['descr' => 'Non Heap Memory Current Usage'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Bytes";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,39 +5,37 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-'.$app["app_id"].'.rrd');
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-' . $app["app_id"] . '.rrd');
|
||||
|
||||
$array = array(
|
||||
'OldGenMax' => array('descr' => 'Old Generation Max Usage'),
|
||||
'OldGenUsed' => array('descr' => 'Old Generation Current Usage'),
|
||||
);
|
||||
$array = [
|
||||
'OldGenMax' => ['descr' => 'Old Generation Max Usage'],
|
||||
'OldGenUsed' => ['descr' => 'Old Generation Current Usage'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Bytes";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,39 +5,37 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-'.$app["app_id"].'.rrd');
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-' . $app["app_id"] . '.rrd');
|
||||
|
||||
$array = array(
|
||||
'PermGenMax' => array('descr' => 'PermGen Max Usage'),
|
||||
'PermGenUsed' => array('descr' => 'PermGen Current Usage'),
|
||||
);
|
||||
$array = [
|
||||
'PermGenMax' => ['descr' => 'PermGen Max Usage'],
|
||||
'PermGenUsed' => ['descr' => 'PermGen Current Usage'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Bytes";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,32 +5,30 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-'.$app["app_id"].'.rrd');
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-' . $app["app_id"] . '.rrd');
|
||||
|
||||
$array = array(
|
||||
'UpTime' => array('descr' => 'Uptime'),
|
||||
);
|
||||
$array = [
|
||||
'UpTime' => ['descr' => 'Uptime'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
@ -41,6 +39,6 @@ $unit_text = "Seconds";
|
||||
$divider = 3600;
|
||||
|
||||
#include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,39 +5,37 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-'.$app["app_id"].'.rrd');
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-' . $app["app_id"] . '.rrd');
|
||||
|
||||
$array = array(
|
||||
'DaemonThreads' => array('descr' => 'Daemon Threads'),
|
||||
'TotalThreads' => array('descr' => 'Total Threads'),
|
||||
);
|
||||
$array = [
|
||||
'DaemonThreads' => ['descr' => 'Daemon Threads'],
|
||||
'TotalThreads' => ['descr' => 'Total Threads'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Number";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
@ -25,37 +25,37 @@
|
||||
DS:coreunsupportedmeth:COUNTER:600:0:125000000000 \
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-".$app['app_id'].".rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-" . $app['app_id'] . ".rrd");
|
||||
|
||||
$array = array('corebadURIsrcvd' => array('descr' => 'Bad URIs Recieved'),
|
||||
'corebadmsghdr' => array('descr' => 'Bad Msg Header'),
|
||||
'coredropreplies' => array('descr' => 'Dropped Replies'),
|
||||
'coredroprequests' => array('descr' => 'Drop Requests'),
|
||||
'coreerrreplies' => array('descr' => 'Error Replies'),
|
||||
'coreerrrequests' => array('descr' => 'Error Requests'),
|
||||
'corefwdreplies' => array('descr' => 'Forward Replies'),
|
||||
'corefwdrequests' => array('descr' => 'Forward Requests'),
|
||||
'corercvrequests' => array('descr' => 'Recieved Replies'),
|
||||
'corercvreplies' => array('descr' => 'Recieved Requests'),
|
||||
'coreunsupportedmeth' => array('descr' => 'Unsupported Methods'),
|
||||
);
|
||||
$array = ['corebadURIsrcvd' => ['descr' => 'Bad URIs Recieved'],
|
||||
'corebadmsghdr' => ['descr' => 'Bad Msg Header'],
|
||||
'coredropreplies' => ['descr' => 'Dropped Replies'],
|
||||
'coredroprequests' => ['descr' => 'Drop Requests'],
|
||||
'coreerrreplies' => ['descr' => 'Error Replies'],
|
||||
'coreerrrequests' => ['descr' => 'Error Requests'],
|
||||
'corefwdreplies' => ['descr' => 'Forward Replies'],
|
||||
'corefwdrequests' => ['descr' => 'Forward Requests'],
|
||||
'corercvrequests' => ['descr' => 'Recieved Replies'],
|
||||
'corercvreplies' => ['descr' => 'Recieved Requests'],
|
||||
'coreunsupportedmeth' => ['descr' => 'Unsupported Methods'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $rrd_filename"); }
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
@ -5,41 +5,41 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-".$app['app_id'].".rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-" . $app['app_id'] . ".rrd");
|
||||
|
||||
$array = array('corebadURIsrcvd' => array('descr' => 'Bad URIs Recieved'),
|
||||
'corebadmsghdr' => array('descr' => 'Bad Msg Header'),
|
||||
'coreerrreplies' => array('descr' => 'Error Replies'),
|
||||
'coreerrrequests' => array('descr' => 'Error Requests'),
|
||||
'coreunsupportedmeth' => array('descr' => 'Unsupported Methods'),
|
||||
'dnsfaileddnsrequest' => array('descr' => 'DNS Failed Requests'),
|
||||
'mysqldrivererrors' => array('descr' => 'MySQL Driver Errors'),
|
||||
'slfailures' => array('descr' => 'SL Failures'),
|
||||
'registrarrejregs' => array('descr' => 'Rejected Registrations'),
|
||||
);
|
||||
$array = ['corebadURIsrcvd' => ['descr' => 'Bad URIs Recieved'],
|
||||
'corebadmsghdr' => ['descr' => 'Bad Msg Header'],
|
||||
'coreerrreplies' => ['descr' => 'Error Replies'],
|
||||
'coreerrrequests' => ['descr' => 'Error Requests'],
|
||||
'coreunsupportedmeth' => ['descr' => 'Unsupported Methods'],
|
||||
'dnsfaileddnsrequest' => ['descr' => 'DNS Failed Requests'],
|
||||
'mysqldrivererrors' => ['descr' => 'MySQL Driver Errors'],
|
||||
'slfailures' => ['descr' => 'SL Failures'],
|
||||
'registrarrejregs' => ['descr' => 'Rejected Registrations'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $rrd_filename"); }
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = "mixed";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
@ -20,29 +20,29 @@
|
||||
DS:registrarrejregs:COUNTER:600:0:125000000000 \
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-".$app['app_id'].".rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-" . $app['app_id'] . ".rrd");
|
||||
|
||||
$array = array('registraraccregs' => array('descr' => 'Accepted Registrations'),
|
||||
'registrarmaxcontact' => array('descr' => 'Max Contacts'),
|
||||
'registrarrejregs' => array('descr' => 'Rejected Registrations'),
|
||||
);
|
||||
$array = ['registraraccregs' => ['descr' => 'Accepted Registrations'],
|
||||
'registrarmaxcontact' => ['descr' => 'Max Contacts'],
|
||||
'registrarrejregs' => ['descr' => 'Rejected Registrations'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $rrd_filename"); }
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = "mixed";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
@ -4,9 +4,9 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2020 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
@ -19,89 +19,89 @@
|
||||
DS:shmemusedsize:GAUGE:600:0:125000000000 \
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-".$app['app_id'].".rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-" . $app['app_id'] . ".rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
if($width > 500)
|
||||
{
|
||||
$descr_len = 22;
|
||||
if ($width > 500) {
|
||||
$descr_len = 22;
|
||||
} else {
|
||||
$descr_len = 12;
|
||||
$descr_len = 12;
|
||||
}
|
||||
$descr_len += round(($width - 150) / 8);
|
||||
|
||||
$iter = 0;
|
||||
$iter = 0;
|
||||
$colours = 'mixed';
|
||||
|
||||
$rrd_options .= " COMMENT:'".str_pad('Size %used', $descr_len+20, ' ', STR_PAD_LEFT)."\\\l'";
|
||||
$rrd_options .= " COMMENT:'" . str_pad('Size %used', $descr_len + 20, ' ', STR_PAD_LEFT) . "\\\l'";
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$colour=$config['graph_colours'][$colours][$iter];
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$colour = $config['graph_colours'][$colours][$iter];
|
||||
|
||||
$descr = 'Max Used';
|
||||
$descr = 'Max Used';
|
||||
|
||||
$rrd_options .= " DEF:".$iter."used=$rrd_filename_escape:shmemmaxusedsize:AVERAGE";
|
||||
$rrd_options .= " DEF:".$iter."size=$rrd_filename_escape:shmemtotalsize:AVERAGE";
|
||||
$rrd_options .= " CDEF:".$iter."free=".$iter."size,".$iter."used,-";
|
||||
$rrd_options .= " CDEF:".$iter."perc=".$iter."used,".$iter."size,/,100,*";
|
||||
$rrd_options .= " AREA:".$iter."used#" . $colour . "10";
|
||||
$rrd_options .= " LINE1.25:".$iter."used#" . $colour . ":'$descr'";
|
||||
$rrd_options .= " GPRINT:".$iter."used:LAST:%6.2lf%sB";
|
||||
$rrd_options .= " GPRINT:".$iter."perc:LAST:%5.2lf%%\\\l";
|
||||
$iter++;
|
||||
$rrd_options .= " DEF:" . $iter . "used=$rrd_filename_escape:shmemmaxusedsize:AVERAGE";
|
||||
$rrd_options .= " DEF:" . $iter . "size=$rrd_filename_escape:shmemtotalsize:AVERAGE";
|
||||
$rrd_options .= " CDEF:" . $iter . "free=" . $iter . "size," . $iter . "used,-";
|
||||
$rrd_options .= " CDEF:" . $iter . "perc=" . $iter . "used," . $iter . "size,/,100,*";
|
||||
$rrd_options .= " AREA:" . $iter . "used#" . $colour . "10";
|
||||
$rrd_options .= " LINE1.25:" . $iter . "used#" . $colour . ":'$descr'";
|
||||
$rrd_options .= " GPRINT:" . $iter . "used:LAST:%6.2lf%sB";
|
||||
$rrd_options .= " GPRINT:" . $iter . "perc:LAST:%5.2lf%%\\\l";
|
||||
$iter++;
|
||||
|
||||
$colour=$config['graph_colours'][$colours][$iter];
|
||||
$colour = $config['graph_colours'][$colours][$iter];
|
||||
|
||||
$descr = 'Used';
|
||||
$descr = 'Used';
|
||||
|
||||
$rrd_options .= " DEF:".$iter."used=$rrd_filename_escape:shmemusedsize:AVERAGE";
|
||||
$rrd_options .= " DEF:".$iter."free=$rrd_filename_escape:shmemfreesize:AVERAGE";
|
||||
$rrd_options .= " DEF:".$iter."size=$rrd_filename_escape:shmemtotalsize:AVERAGE";
|
||||
$rrd_options .= " CDEF:".$iter."perc=".$iter."used,".$iter."size,/,100,*";
|
||||
$rrd_options .= " AREA:".$iter."used#" . $colour . "10";
|
||||
$rrd_options .= " LINE1.25:".$iter."used#" . $colour . ":'$descr'";
|
||||
$rrd_options .= " GPRINT:".$iter."used:LAST:%6.2lf%sB";
|
||||
$rrd_options .= " GPRINT:".$iter."perc:LAST:%5.2lf%%\\\l";
|
||||
$iter++;
|
||||
$rrd_options .= " DEF:" . $iter . "used=$rrd_filename_escape:shmemusedsize:AVERAGE";
|
||||
$rrd_options .= " DEF:" . $iter . "free=$rrd_filename_escape:shmemfreesize:AVERAGE";
|
||||
$rrd_options .= " DEF:" . $iter . "size=$rrd_filename_escape:shmemtotalsize:AVERAGE";
|
||||
$rrd_options .= " CDEF:" . $iter . "perc=" . $iter . "used," . $iter . "size,/,100,*";
|
||||
$rrd_options .= " AREA:" . $iter . "used#" . $colour . "10";
|
||||
$rrd_options .= " LINE1.25:" . $iter . "used#" . $colour . ":'$descr'";
|
||||
$rrd_options .= " GPRINT:" . $iter . "used:LAST:%6.2lf%sB";
|
||||
$rrd_options .= " GPRINT:" . $iter . "perc:LAST:%5.2lf%%\\\l";
|
||||
$iter++;
|
||||
|
||||
$colour=$config['graph_colours'][$colours][$iter];
|
||||
$colour = $config['graph_colours'][$colours][$iter];
|
||||
|
||||
$descr = 'Real Used';
|
||||
$descr = 'Real Used';
|
||||
|
||||
$rrd_options .= " DEF:".$iter."used=$rrd_filename_escape:shmemrealusedsize:AVERAGE";
|
||||
$rrd_options .= " DEF:".$iter."size=$rrd_filename_escape:shmemtotalsize:AVERAGE";
|
||||
$rrd_options .= " CDEF:".$iter."free=".$iter."size,".$iter."used,-";
|
||||
$rrd_options .= " CDEF:".$iter."perc=".$iter."used,".$iter."size,/,100,*";
|
||||
$rrd_options .= " AREA:".$iter."used#" . $colour . "10";
|
||||
$rrd_options .= " LINE1.25:".$iter."used#" . $colour . ":'$descr'";
|
||||
$rrd_options .= " GPRINT:".$iter."used:LAST:%6.2lf%sB";
|
||||
$rrd_options .= " GPRINT:".$iter."perc:LAST:%5.2lf%%\\\l";
|
||||
$iter++;
|
||||
$rrd_options .= " DEF:" . $iter . "used=$rrd_filename_escape:shmemrealusedsize:AVERAGE";
|
||||
$rrd_options .= " DEF:" . $iter . "size=$rrd_filename_escape:shmemtotalsize:AVERAGE";
|
||||
$rrd_options .= " CDEF:" . $iter . "free=" . $iter . "size," . $iter . "used,-";
|
||||
$rrd_options .= " CDEF:" . $iter . "perc=" . $iter . "used," . $iter . "size,/,100,*";
|
||||
$rrd_options .= " AREA:" . $iter . "used#" . $colour . "10";
|
||||
$rrd_options .= " LINE1.25:" . $iter . "used#" . $colour . ":'$descr'";
|
||||
$rrd_options .= " GPRINT:" . $iter . "used:LAST:%6.2lf%sB";
|
||||
$rrd_options .= " GPRINT:" . $iter . "perc:LAST:%5.2lf%%\\\l";
|
||||
$iter++;
|
||||
|
||||
$colour=$config['graph_colours'][$colours][$iter];
|
||||
$colour = $config['graph_colours'][$colours][$iter];
|
||||
|
||||
$descr = 'Fragments';
|
||||
$descr = 'Fragments';
|
||||
|
||||
$rrd_options .= " DEF:".$iter."used=$rrd_filename_escape:shmemfragments:AVERAGE";
|
||||
$rrd_options .= " DEF:".$iter."size=$rrd_filename_escape:shmemtotalsize:AVERAGE";
|
||||
$rrd_options .= " CDEF:".$iter."free=".$iter."size,".$iter."used,-";
|
||||
$rrd_options .= " CDEF:".$iter."perc=".$iter."used,".$iter."size,/,100,*";
|
||||
$rrd_options .= " AREA:".$iter."used#" . $colour . "10";
|
||||
$rrd_options .= " LINE1.25:".$iter."used#" . $colour . ":'$descr'";
|
||||
$rrd_options .= " GPRINT:".$iter."used:LAST:%6.2lf%sB";
|
||||
$rrd_options .= " GPRINT:".$iter."perc:LAST:%5.2lf%%\\\l";
|
||||
$iter++;
|
||||
$rrd_options .= " DEF:" . $iter . "used=$rrd_filename_escape:shmemfragments:AVERAGE";
|
||||
$rrd_options .= " DEF:" . $iter . "size=$rrd_filename_escape:shmemtotalsize:AVERAGE";
|
||||
$rrd_options .= " CDEF:" . $iter . "free=" . $iter . "size," . $iter . "used,-";
|
||||
$rrd_options .= " CDEF:" . $iter . "perc=" . $iter . "used," . $iter . "size,/,100,*";
|
||||
$rrd_options .= " AREA:" . $iter . "used#" . $colour . "10";
|
||||
$rrd_options .= " LINE1.25:" . $iter . "used#" . $colour . ":'$descr'";
|
||||
$rrd_options .= " GPRINT:" . $iter . "used:LAST:%6.2lf%sB";
|
||||
$rrd_options .= " GPRINT:" . $iter . "perc:LAST:%5.2lf%%\\\l";
|
||||
$iter++;
|
||||
|
||||
$colour=$config['graph_colours'][$colours][$iter];
|
||||
$colour = $config['graph_colours'][$colours][$iter];
|
||||
|
||||
$descr = 'Total';
|
||||
$descr = 'Total';
|
||||
|
||||
$rrd_options .= " DEF:".$iter."size=$rrd_filename_escape:shmemtotalsize:AVERAGE";
|
||||
$rrd_options .= " LINE1.25:".$iter."size#" . $colour . ":'$descr'";
|
||||
$rrd_options .= " GPRINT:".$iter."size:LAST:%6.2lf%sB";
|
||||
$rrd_options .= "\\\l";
|
||||
} else { echo("file missing: $rrd_filename"); }
|
||||
$rrd_options .= " DEF:" . $iter . "size=$rrd_filename_escape:shmemtotalsize:AVERAGE";
|
||||
$rrd_options .= " LINE1.25:" . $iter . "size#" . $colour . ":'$descr'";
|
||||
$rrd_options .= " GPRINT:" . $iter . "size:LAST:%6.2lf%sB";
|
||||
$rrd_options .= "\\\l";
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
@ -22,34 +22,34 @@
|
||||
DS:sl3xxreplies:COUNTER:600:0:125000000000 \
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-".$app['app_id'].".rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-" . $app['app_id'] . ".rrd");
|
||||
|
||||
$array = array('sl1xxreplies' => array('descr' => '1XX Replies'),
|
||||
'sl200replies' => array('descr' => '200 Replies'),
|
||||
'sl202replies' => array('descr' => '202 Replies'),
|
||||
'sl2xxreplies' => array('descr' => '2XX Replies'),
|
||||
'sl300replies' => array('descr' => '300 Replies'),
|
||||
'sl301replies' => array('descr' => '301 Replies'),
|
||||
'sl302replies' => array('descr' => '302 Replies'),
|
||||
'sl3xxreplies' => array('descr' => '3XX Replies'),
|
||||
);
|
||||
$array = ['sl1xxreplies' => ['descr' => '1XX Replies'],
|
||||
'sl200replies' => ['descr' => '200 Replies'],
|
||||
'sl202replies' => ['descr' => '202 Replies'],
|
||||
'sl2xxreplies' => ['descr' => '2XX Replies'],
|
||||
'sl300replies' => ['descr' => '300 Replies'],
|
||||
'sl301replies' => ['descr' => '301 Replies'],
|
||||
'sl302replies' => ['descr' => '302 Replies'],
|
||||
'sl3xxreplies' => ['descr' => '3XX Replies'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $rrd_filename"); }
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = "mixed";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
@ -22,34 +22,34 @@
|
||||
DS:sl4xxreplies:COUNTER:600:0:125000000000 \
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-".$app['app_id'].".rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-" . $app['app_id'] . ".rrd");
|
||||
|
||||
$array = array('sl400replies' => array('descr' => '400 Replies'),
|
||||
'sl401replies' => array('descr' => '401 Replies'),
|
||||
'sl403replies' => array('descr' => '403 Replies'),
|
||||
'sl404replies' => array('descr' => '404 Replies'),
|
||||
'sl407replies' => array('descr' => '407 Replies'),
|
||||
'sl408replies' => array('descr' => '408 Replies'),
|
||||
'sl483replies' => array('descr' => '483 Replies'),
|
||||
'sl4xxreplies' => array('descr' => '4XX Replies'),
|
||||
);
|
||||
$array = ['sl400replies' => ['descr' => '400 Replies'],
|
||||
'sl401replies' => ['descr' => '401 Replies'],
|
||||
'sl403replies' => ['descr' => '403 Replies'],
|
||||
'sl404replies' => ['descr' => '404 Replies'],
|
||||
'sl407replies' => ['descr' => '407 Replies'],
|
||||
'sl408replies' => ['descr' => '408 Replies'],
|
||||
'sl483replies' => ['descr' => '483 Replies'],
|
||||
'sl4xxreplies' => ['descr' => '4XX Replies'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $rrd_filename"); }
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = "mixed";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
@ -21,33 +21,33 @@
|
||||
DS:slxxxreplies:COUNTER:600:0:125000000000 \
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-".$app['app_id'].".rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-" . $app['app_id'] . ".rrd");
|
||||
|
||||
$array = array('sl500replies' => array('descr' => '500 Replies'),
|
||||
'sl5xxreplies' => array('descr' => '5XX Replies'),
|
||||
'sl6xxreplies' => array('descr' => '6XX Replies'),
|
||||
'slxxxreplies' => array('descr' => 'XXX Replies'),
|
||||
'slreceivedACKs' => array('descr' => 'Received Acks'),
|
||||
'slsenterrreplies' => array('descr' => 'Sent Error Replies'),
|
||||
'slsentreplies' => array('descr' => 'Sent Replies'),
|
||||
);
|
||||
$array = ['sl500replies' => ['descr' => '500 Replies'],
|
||||
'sl5xxreplies' => ['descr' => '5XX Replies'],
|
||||
'sl6xxreplies' => ['descr' => '6XX Replies'],
|
||||
'slxxxreplies' => ['descr' => 'XXX Replies'],
|
||||
'slreceivedACKs' => ['descr' => 'Received Acks'],
|
||||
'slsenterrreplies' => ['descr' => 'Sent Error Replies'],
|
||||
'slsentreplies' => ['descr' => 'Sent Replies'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $rrd_filename"); }
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = "mixed";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
@ -26,37 +26,37 @@
|
||||
*/
|
||||
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-".$app['app_id'].".rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-" . $app['app_id'] . ".rrd");
|
||||
|
||||
$array = array('tcpconreset' => array('descr' => 'Connection Reset'),
|
||||
'tcpcontimeout' => array('descr' => 'Connection Timeout'),
|
||||
'tcpconnectfailed' => array('descr' => 'Connection Failed'),
|
||||
'tcpconnectsuccess' => array('descr' => 'Connection Success'),
|
||||
'tcpcurrentopenedcon' => array('descr' => 'Open Connections'),
|
||||
'tcpcurrentwrqsize' => array('descr' => 'Write Queue Size'),
|
||||
'tcpestablished' => array('descr' => 'Establiched'),
|
||||
'tcplocalreject' => array('descr' => 'Local Rejected'),
|
||||
'tcppassiveopen' => array('descr' => 'Passiive Open'),
|
||||
'tcpsendtimeout' => array('descr' => 'Send Timeout'),
|
||||
'tcpsendqfull' => array('descr' => 'Send Queue Full'),
|
||||
);
|
||||
$array = ['tcpconreset' => ['descr' => 'Connection Reset'],
|
||||
'tcpcontimeout' => ['descr' => 'Connection Timeout'],
|
||||
'tcpconnectfailed' => ['descr' => 'Connection Failed'],
|
||||
'tcpconnectsuccess' => ['descr' => 'Connection Success'],
|
||||
'tcpcurrentopenedcon' => ['descr' => 'Open Connections'],
|
||||
'tcpcurrentwrqsize' => ['descr' => 'Write Queue Size'],
|
||||
'tcpestablished' => ['descr' => 'Establiched'],
|
||||
'tcplocalreject' => ['descr' => 'Local Rejected'],
|
||||
'tcppassiveopen' => ['descr' => 'Passiive Open'],
|
||||
'tcpsendtimeout' => ['descr' => 'Send Timeout'],
|
||||
'tcpsendqfull' => ['descr' => 'Send Queue Full'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $rrd_filename"); }
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = "mixed";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
@ -23,35 +23,35 @@
|
||||
DS:tmxlocalreplies:COUNTER:600:0:125000000000 \
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-".$app['app_id'].".rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-" . $app['app_id'] . ".rrd");
|
||||
|
||||
$array = array('tmx2xxtransactions' => array('descr' => '2XX Transactions'),
|
||||
'tmx3xxtransactions' => array('descr' => '3XX Transactions'),
|
||||
'tmx4xxtransactions' => array('descr' => '4XX Transactions'),
|
||||
'tmx5xxtransactions' => array('descr' => '5XX Transactions'),
|
||||
'tmx6xxtransactions' => array('descr' => '6XX Transactions'),
|
||||
'tmxUACtransactions' => array('descr' => 'UAC Transactions'),
|
||||
'tmxUAStransactions' => array('descr' => 'UAS Transactions'),
|
||||
'tmxinusetransaction' => array('descr' => 'InUse Transactions'),
|
||||
'tmxlocalreplies' => array('descr' => 'Local Replies'),
|
||||
);
|
||||
$array = ['tmx2xxtransactions' => ['descr' => '2XX Transactions'],
|
||||
'tmx3xxtransactions' => ['descr' => '3XX Transactions'],
|
||||
'tmx4xxtransactions' => ['descr' => '4XX Transactions'],
|
||||
'tmx5xxtransactions' => ['descr' => '5XX Transactions'],
|
||||
'tmx6xxtransactions' => ['descr' => '6XX Transactions'],
|
||||
'tmxUACtransactions' => ['descr' => 'UAC Transactions'],
|
||||
'tmxUAStransactions' => ['descr' => 'UAS Transactions'],
|
||||
'tmxinusetransaction' => ['descr' => 'InUse Transactions'],
|
||||
'tmxlocalreplies' => ['descr' => 'Local Replies'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $rrd_filename"); }
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = "mixed";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
@ -5,9 +5,9 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
@ -17,29 +17,29 @@
|
||||
DS:usrlocregusers:GAUGE:600:0:125000000000
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-".$app['app_id'].".rrd");
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-" . $app['app_id'] . ".rrd");
|
||||
|
||||
$array = array('usrlocloccontacts' => array('descr' => 'Contacts'),
|
||||
'usrloclocusers' => array('descr' => 'Users'),
|
||||
'usrlocregusers' => array('descr' => 'Registered Users'),
|
||||
);
|
||||
$array = ['usrlocloccontacts' => ['descr' => 'Contacts'],
|
||||
'usrloclocusers' => ['descr' => 'Users'],
|
||||
'usrlocregusers' => ['descr' => 'Registered Users'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $rrd_filename"); }
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$colours = "mixed";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -2,14 +2,14 @@
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colour_area = "B0C4DE";
|
||||
$colour_line = "191970";
|
||||
#$colour_area_max = "FFEE99";
|
||||
$colour_area_max = "B0C4DE";
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "app-lighttpd-".$app['app_id']);
|
||||
$rrd_filename = get_rrd_path($device, "app-lighttpd-" . $app['app_id']);
|
||||
|
||||
$ds = "totalaccesses";
|
||||
|
||||
@ -17,6 +17,6 @@ $graph_max = 1;
|
||||
|
||||
$unit_text = "Hits/Sec";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
||||
|
@ -5,49 +5,49 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "app-lighttpd-".$app['app_id']);
|
||||
$rrd_filename = get_rrd_path($device, "app-lighttpd-" . $app['app_id']);
|
||||
|
||||
$array = array('connectionsp' => array('descr' => 'Connect', 'colour' => '750F7DFF'),
|
||||
'connectionsC' => array('descr' => 'Close', 'colour' => '00FF00FF'),
|
||||
'connectionsE' => array('descr' => 'Hard Error', 'colour' => '4444FFFF'),
|
||||
'connectionsk' => array('descr' => 'Keep-alive', 'colour' => '157419FF'),
|
||||
'connectionsr' => array('descr' => 'Read', 'colour' => 'FF0000FF'),
|
||||
'connectionsR' => array('descr' => 'Read-POST', 'colour' => '6DC8FEFF'),
|
||||
'connectionsW' => array('descr' => 'Write', 'colour' => 'FFAB00FF'),
|
||||
'connectionsh' => array('descr' => 'Handle-request', 'colour' => 'FFFF00FF'),
|
||||
'connectionsq' => array('descr' => 'Request-start', 'colour' => 'FF5576FF'),
|
||||
'connectionsQ' => array('descr' => 'Request-end', 'colour' => 'FF3005FF'),
|
||||
'connectionss' => array('descr' => 'Response-start', 'colour' => '800080'),
|
||||
'connectionsS' => array('descr' => 'Response-end', 'colour' => '959868'),
|
||||
);
|
||||
$array = ['connectionsp' => ['descr' => 'Connect', 'colour' => '750F7DFF'],
|
||||
'connectionsC' => ['descr' => 'Close', 'colour' => '00FF00FF'],
|
||||
'connectionsE' => ['descr' => 'Hard Error', 'colour' => '4444FFFF'],
|
||||
'connectionsk' => ['descr' => 'Keep-alive', 'colour' => '157419FF'],
|
||||
'connectionsr' => ['descr' => 'Read', 'colour' => 'FF0000FF'],
|
||||
'connectionsR' => ['descr' => 'Read-POST', 'colour' => '6DC8FEFF'],
|
||||
'connectionsW' => ['descr' => 'Write', 'colour' => 'FFAB00FF'],
|
||||
'connectionsh' => ['descr' => 'Handle-request', 'colour' => 'FFFF00FF'],
|
||||
'connectionsq' => ['descr' => 'Request-start', 'colour' => 'FF5576FF'],
|
||||
'connectionsQ' => ['descr' => 'Request-end', 'colour' => 'FF3005FF'],
|
||||
'connectionss' => ['descr' => 'Response-start', 'colour' => '800080'],
|
||||
'connectionsS' => ['descr' => 'Response-end', 'colour' => '959868'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $rrd_filename"); }
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $data['colour'];
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Workers";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -5,38 +5,36 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$nototal = (($width < 224) ? 1 : 0);
|
||||
$unit_text = "Servers";
|
||||
$rrd_filename = get_rrd_path($device, "app-lighttpd-".$app['app_id']);
|
||||
$rrd_filename = get_rrd_path($device, "app-lighttpd-" . $app['app_id']);
|
||||
|
||||
$array = array(
|
||||
'busyservers' => array('descr' => 'Busy Workers'),
|
||||
'idleservers' => array('descr' => 'Idle Workers'),
|
||||
);
|
||||
$i = 0;
|
||||
$array = [
|
||||
'busyservers' => ['descr' => 'Busy Workers'],
|
||||
'idleservers' => ['descr' => 'Idle Workers'],
|
||||
];
|
||||
$i = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
foreach ($array as $ds => $data) {
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
@ -2,9 +2,9 @@
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "app-lighttpd-".$app['app_id']);
|
||||
$rrd_filename = get_rrd_path($device, "app-lighttpd-" . $app['app_id']);
|
||||
|
||||
$ds = "totalkbytes";
|
||||
|
||||
@ -13,11 +13,11 @@ $colour_line = "006600";
|
||||
|
||||
$colour_area_max = "FFEE99";
|
||||
|
||||
$graph_max = 1;
|
||||
$graph_max = 1;
|
||||
$multiplier = 8;
|
||||
|
||||
$unit_text = "Kbps";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
||||
|
@ -8,27 +8,26 @@ $colour_area_max = "FFEE99";
|
||||
$graph_max = 0;
|
||||
$unit_text = "Seconds";
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "app-lighttpd-".$app['app_id']);
|
||||
$rrd_filename = get_rrd_path($device, "app-lighttpd-" . $app['app_id']);
|
||||
|
||||
include($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$ds = "uptime";
|
||||
|
||||
$rrd_options .= " DEF:uptime=".$rrd_filename_escape.":uptime:AVERAGE";
|
||||
$rrd_options .= " CDEF:cuptime=uptime,86400,/";
|
||||
$rrd_options .= " DEF:uptime=" . $rrd_filename_escape . ":uptime:AVERAGE";
|
||||
$rrd_options .= " CDEF:cuptime=uptime,86400,/";
|
||||
|
||||
if ($width<224)
|
||||
{
|
||||
$rrd_options .= " 'COMMENT:Days Cur Min Max Avg\\n'";
|
||||
if ($width < 224) {
|
||||
$rrd_options .= " 'COMMENT:Days Cur Min Max Avg\\n'";
|
||||
} else {
|
||||
$rrd_options .= " 'COMMENT:Days Current Minimum Maximum Average\\n'";
|
||||
$rrd_options .= " 'COMMENT:Days Current Minimum Maximum Average\\n'";
|
||||
}
|
||||
|
||||
$rrd_options .= " AREA:cuptime#".$colour_area.":";
|
||||
$rrd_options .= " LINE1.25:cuptime#".$colour_line.":Uptime";
|
||||
$rrd_options .= " GPRINT:cuptime:LAST:%6.2lf";
|
||||
$rrd_options .= " GPRINT:cuptime:AVERAGE:%6.2lf";
|
||||
$rrd_options .= " GPRINT:cuptime:MAX:%6.2lf";
|
||||
$rrd_options .= " GPRINT:cuptime:AVERAGE:%6.2lf\\n";
|
||||
$rrd_options .= " AREA:cuptime#" . $colour_area . ":";
|
||||
$rrd_options .= " LINE1.25:cuptime#" . $colour_line . ":Uptime";
|
||||
$rrd_options .= " GPRINT:cuptime:LAST:%6.2lf";
|
||||
$rrd_options .= " GPRINT:cuptime:AVERAGE:%6.2lf";
|
||||
$rrd_options .= " GPRINT:cuptime:MAX:%6.2lf";
|
||||
$rrd_options .= " GPRINT:cuptime:AVERAGE:%6.2lf\\n";
|
||||
|
||||
// EOF
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
include("lvs_stats_common.inc.php");
|
||||
|
||||
@ -17,6 +17,6 @@ $graph_max = 1;
|
||||
|
||||
$unit_text = "bytes/sec";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<?php
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "/app-lvs_stats-".$app['app_id'].".rrd");
|
||||
$rrd_filename = get_rrd_path($device, "/app-lvs_stats-" . $app['app_id'] . ".rrd");
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
include("lvs_stats_common.inc.php");
|
||||
|
||||
@ -17,6 +17,6 @@ $graph_max = 1;
|
||||
|
||||
$unit_text = "Con/sec";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
include("lvs_stats_common.inc.php");
|
||||
|
||||
@ -18,6 +18,6 @@ $graph_max = 1;
|
||||
|
||||
$unit_text = "Packets/sec";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
||||
|
@ -5,43 +5,41 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
include_once($config['html_dir'] . "/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = (($width < 550) ? 1 : 0);
|
||||
$unit_text = "Messages/sec";
|
||||
$rrd_filename = get_rrd_path($device, "app-mailscannerV2-" . $app['app_id'] . ".rrd");
|
||||
$array = array(
|
||||
'msg_rejected' => array('descr' => 'Rejected'),
|
||||
'msg_relay' => array('descr' => 'Relayed'),
|
||||
'msg_waiting' => array('descr' => 'Waiting'),
|
||||
);
|
||||
$array = [
|
||||
'msg_rejected' => ['descr' => 'Rejected'],
|
||||
'msg_relay' => ['descr' => 'Relayed'],
|
||||
'msg_waiting' => ['descr' => 'Waiting'],
|
||||
];
|
||||
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
$i = 0;
|
||||
$x = 0;
|
||||
|
||||
if (rrd_is_file($rrd_filename))
|
||||
{
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data)
|
||||
{
|
||||
$x = (($x<=$max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
if (rrd_is_file($rrd_filename)) {
|
||||
$max_colours = safe_count($config['graph_colours'][$colours]);
|
||||
foreach ($array as $ds => $data) {
|
||||
$x = (($x <= $max_colours) ? $x : 0);
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = $data['descr'];
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$rrd_list[$i]['colour'] = $config['graph_colours'][$colours][$x];
|
||||
$i++;
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user