initial commit; version 22.5.12042
This commit is contained in:
76
html/includes/graphs/XXX_device_memory_windows.inc.php
Normal file
76
html/includes/graphs/XXX_device_memory_windows.inc.php
Normal file
@ -0,0 +1,76 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$device = device_by_id_cache($id);
|
||||
$rrd_filename = get_rrd_path($device, "mem.rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " -b 1024";
|
||||
|
||||
$rrd_options .= " DEF:atotalswap=$rrd_filename_escape:totalswap:AVERAGE";
|
||||
$rrd_options .= " DEF:aavailswap=$rrd_filename_escape:availswap:AVERAGE";
|
||||
$rrd_options .= " DEF:atotalreal=$rrd_filename_escape:totalreal:AVERAGE";
|
||||
$rrd_options .= " DEF:aavailreal=$rrd_filename_escape:availreal:AVERAGE";
|
||||
$rrd_options .= " DEF:atotalfree=$rrd_filename_escape:totalfree:AVERAGE";
|
||||
$rrd_options .= " DEF:ashared=$rrd_filename_escape:shared:AVERAGE";
|
||||
$rrd_options .= " DEF:abuffered=$rrd_filename_escape:buffered:AVERAGE";
|
||||
$rrd_options .= " DEF:acached=$rrd_filename_escape:cached:AVERAGE";
|
||||
$rrd_options .= " CDEF:totalswap=atotalswap,1024,*";
|
||||
$rrd_options .= " CDEF:availswap=aavailswap,1024,*";
|
||||
$rrd_options .= " CDEF:totalreal=atotalreal,1024,*";
|
||||
$rrd_options .= " CDEF:availreal=aavailreal,1024,*";
|
||||
$rrd_options .= " CDEF:totalfree=atotalfree,1024,*";
|
||||
$rrd_options .= " CDEF:shared=ashared,1024,*";
|
||||
$rrd_options .= " CDEF:buffered=abuffered,1024,*";
|
||||
$rrd_options .= " CDEF:cached=acached,1024,*";
|
||||
$rrd_options .= " CDEF:usedreal=totalreal,availreal,-";
|
||||
$rrd_options .= " CDEF:usedswap=totalswap,availswap,-";
|
||||
$rrd_options .= " CDEF:cusedswap=usedswap,-1,*";
|
||||
$rrd_options .= " CDEF:cdeftot=availreal,shared,buffered,usedreal,cached,usedswap,+,+,+,+,+";
|
||||
$rrd_options .= " COMMENT:'Bytes Current Average Maximum\\n'";
|
||||
$rrd_options .= " LINE1:usedreal#d0b080:";
|
||||
$rrd_options .= " AREA:usedreal#f0e0a0:used";
|
||||
$rrd_options .= " GPRINT:usedreal:LAST:\ \ \ %7.2lf%sB";
|
||||
$rrd_options .= " GPRINT:usedreal:AVERAGE:%7.2lf%sB";
|
||||
$rrd_options .= " GPRINT:usedreal:MAX:%7.2lf%sB\\n";
|
||||
$rrd_options .= " STACK:availreal#e5e5e5:free";
|
||||
$rrd_options .= " GPRINT:availreal:LAST:\ \ \ %7.2lf%sB";
|
||||
$rrd_options .= " GPRINT:availreal:AVERAGE:%7.2lf%sB";
|
||||
$rrd_options .= " GPRINT:availreal:MAX:%7.2lf%sB\\n";
|
||||
$rrd_options .= " LINE1:usedreal#d0b080:";
|
||||
$rrd_options .= " AREA:shared#afeced::";
|
||||
$rrd_options .= " AREA:buffered#cc0000::STACK";
|
||||
$rrd_options .= " AREA:cached#ffaa66::STACK";
|
||||
$rrd_options .= " LINE1.25:shared#008fea:shared";
|
||||
$rrd_options .= " GPRINT:shared:LAST:\ %7.2lf%sB";
|
||||
$rrd_options .= " GPRINT:shared:AVERAGE:%7.2lf%sB";
|
||||
$rrd_options .= " GPRINT:shared:MAX:%7.2lf%sB\\n";
|
||||
$rrd_options .= " LINE1.25:buffered#ff1a00:buffers:STACK";
|
||||
$rrd_options .= " GPRINT:buffered:LAST:%7.2lf%sB";
|
||||
$rrd_options .= " GPRINT:buffered:AVERAGE:%7.2lf%sB";
|
||||
$rrd_options .= " GPRINT:buffered:MAX:%7.2lf%sB\\n";
|
||||
$rrd_options .= " LINE1.25:cached#ea8f00:cached:STACK";
|
||||
$rrd_options .= " GPRINT:cached:LAST:\ %7.2lf%sB";
|
||||
$rrd_options .= " GPRINT:cached:AVERAGE:%7.2lf%sB";
|
||||
$rrd_options .= " GPRINT:cached:MAX:%7.2lf%sB\\n";
|
||||
$rrd_options .= " LINE1:totalreal#050505:";
|
||||
$rrd_options .= " AREA:cusedswap#C3D9FF:swap";
|
||||
$rrd_options .= " LINE1.25:cusedswap#356AA0:";
|
||||
$rrd_options .= " GPRINT:usedswap:LAST:\ \ \ %7.2lf%sB";
|
||||
$rrd_options .= " GPRINT:usedswap:AVERAGE:%7.2lf%sB";
|
||||
$rrd_options .= " GPRINT:usedswap:MAX:%7.2lf%sB\\n";
|
||||
$rrd_options .= " LINE1:totalreal#050505:total";
|
||||
$rrd_options .= " GPRINT:totalreal:AVERAGE:\ \ %7.2lf%sB";
|
||||
|
||||
// EOF
|
||||
32
html/includes/graphs/accesspoints/auth.inc.php
Normal file
32
html/includes/graphs/accesspoints/auth.inc.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
if (is_numeric($vars['id']))
|
||||
{
|
||||
$ap = accesspoint_by_id($vars['id']);
|
||||
|
||||
if (is_numeric($ap['device_id']) && ($auth || device_permitted($ap['device_id'])))
|
||||
{
|
||||
$device = device_by_id_cache($ap['device_id']);
|
||||
|
||||
$cleanmac = str_replace(':','', $ap['mac_addr']);
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "arubaap-".$cleanmac."-".$ap['radio_number'].".rrd");
|
||||
|
||||
$title = generate_device_link($device);
|
||||
$title .= " :: AP :: " . escape_html($ap['name']);
|
||||
$auth = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
// EOF
|
||||
33
html/includes/graphs/accesspoints/channel.inc.php
Normal file
33
html/includes/graphs/accesspoints/channel.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Channel";
|
||||
$rrd_list[0]['ds'] = "channel";
|
||||
|
||||
$unit_text = "Channel";
|
||||
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
}
|
||||
|
||||
?>
|
||||
33
html/includes/graphs/accesspoints/interference.inc.php
Normal file
33
html/includes/graphs/accesspoints/interference.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Interference";
|
||||
$rrd_list[0]['ds'] = "interference";
|
||||
|
||||
$unit_text = "Int";
|
||||
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
}
|
||||
|
||||
?>
|
||||
24
html/includes/graphs/accesspoints/numasoclients.inc.php
Normal file
24
html/includes/graphs/accesspoints/numasoclients.inc.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds = "numasoclients";
|
||||
$colour_line = "008C00";
|
||||
$colour_area = "CDEB8B";
|
||||
$colour_area_max = "c0c0c0";
|
||||
$graph_max = 1;
|
||||
$graph_min = 0;
|
||||
$unit_text = "Clients";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
||||
33
html/includes/graphs/accesspoints/nummonbssid.inc.php
Normal file
33
html/includes/graphs/accesspoints/nummonbssid.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "MonBSSIDs";
|
||||
$rrd_list[0]['ds'] = "nummonbssid";
|
||||
|
||||
$unit_text = "BSSIDs";
|
||||
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
}
|
||||
|
||||
?>
|
||||
33
html/includes/graphs/accesspoints/nummonclients.inc.php
Normal file
33
html/includes/graphs/accesspoints/nummonclients.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "Mon Clients";
|
||||
$rrd_list[0]['ds'] = "nummonclients";
|
||||
|
||||
$unit_text = "Clients";
|
||||
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
}
|
||||
|
||||
?>
|
||||
25
html/includes/graphs/accesspoints/radioutil.inc.php
Normal file
25
html/includes/graphs/accesspoints/radioutil.inc.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$ds = "radioutil";
|
||||
$colour_line = "555555";
|
||||
$colour_area = "999999";
|
||||
$colour_area_max = "e0e0e0";
|
||||
$scale_max = 100;
|
||||
$scale_min = 0;
|
||||
$unit_text = "Utilisation";
|
||||
$units = "%";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
?>
|
||||
33
html/includes/graphs/accesspoints/txpow.inc.php
Normal file
33
html/includes/graphs/accesspoints/txpow.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_list[0]['filename'] = $rrd_filename;
|
||||
$rrd_list[0]['descr'] = "txpow";
|
||||
$rrd_list[0]['ds'] = "txpow";
|
||||
|
||||
$unit_text = "dBm";
|
||||
|
||||
$units='';
|
||||
$total_units='';
|
||||
$colours='mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
$nototal = 1;
|
||||
|
||||
if ($rrd_list)
|
||||
{
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
}
|
||||
|
||||
?>
|
||||
37
html/includes/graphs/alert/auth.inc.php
Normal file
37
html/includes/graphs/alert/auth.inc.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
if (is_numeric($vars['id']) && $alert = get_alert_entry_by_id($vars['id']))
|
||||
{
|
||||
|
||||
$entity = get_entity_by_id_cache($alert['entity_type'], $alert['entity_id']);
|
||||
$device = device_by_id_cache($alert['device_id']);
|
||||
|
||||
if (device_permitted($device['device_id']) || $auth)
|
||||
{
|
||||
|
||||
$title = generate_device_link($device);
|
||||
|
||||
$title_array = array();
|
||||
$title_array[] = array('text' => $device['hostname'], 'url' => generate_url(array('page' => 'device', 'device' => $device['device_id'])));
|
||||
|
||||
$auth = TRUE;
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "alert-".$alert['alert_test_id']."-".$alert['entity_type']."-".$alert['entity_id'].".rrd");
|
||||
|
||||
}
|
||||
} else {
|
||||
// error?
|
||||
}
|
||||
|
||||
?>
|
||||
54
html/includes/graphs/alert/status.inc.php
Normal file
54
html/includes/graphs/alert/status.inc.php
Normal file
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
$scale_max = "1";
|
||||
$step = TRUE;
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " COMMENT:' Min Last Max\\n'";
|
||||
|
||||
$rrd_options .= " DEF:status=".$rrd_filename_escape.":status:AVERAGE";
|
||||
$rrd_options .= " DEF:code=".$rrd_filename_escape.":code:AVERAGE";
|
||||
|
||||
$rrd_options .= " CDEF:percent=status,UN,UNKN,status,IF,100,* ";
|
||||
|
||||
$rrd_options .= " CDEF:unknown=status,UN,100,UNKN,IF";
|
||||
|
||||
$rrd_options .= " CDEF:percent10=10,percent,LE,0,100,IF ";
|
||||
$rrd_options .= " CDEF:percent20=10,percent,GT,0,100,IF ";
|
||||
$rrd_options .= " CDEF:percent30=20,percent,GT,0,100,IF ";
|
||||
$rrd_options .= " CDEF:percent40=30,percent,GT,0,100,IF ";
|
||||
$rrd_options .= " CDEF:percent50=40,percent,GT,0,100,IF ";
|
||||
$rrd_options .= " CDEF:percent60=50,percent,GT,0,100,IF ";
|
||||
$rrd_options .= " CDEF:percent70=60,percent,GT,0,100,IF ";
|
||||
$rrd_options .= " CDEF:percent80=70,percent,GT,0,100,IF ";
|
||||
$rrd_options .= " CDEF:percent90=80,percent,GT,0,100,IF ";
|
||||
$rrd_options .= " CDEF:percent100=90,percent,GT,0,100,IF ";
|
||||
|
||||
$rrd_options .= " AREA:percent10#d94c20:' 0-10%'";
|
||||
$rrd_options .= " AREA:percent20#de6822:'11-20%'";
|
||||
$rrd_options .= " AREA:percent30#eaa322:'21-30%'";
|
||||
$rrd_options .= " AREA:percent40#f4bd1b:'31-40%'";
|
||||
$rrd_options .= " AREA:percent50#fee610:'41-50%'";
|
||||
$rrd_options .= " AREA:percent60#e4e11e:'51-60%'";
|
||||
$rrd_options .= " AREA:percent70#b8d029:'61-70%'";
|
||||
$rrd_options .= " AREA:percent80#90c22f:'71-80%'";
|
||||
$rrd_options .= " AREA:percent90#75b731:'81-90%'";
|
||||
$rrd_options .= " AREA:percent100#5ca53f:'91-100%'";
|
||||
$rrd_options .= " AREA:unknown#e5e5e5:'Unknown \\n'";
|
||||
|
||||
$rrd_options .= " GPRINT:percent:AVERAGE:'Percent availability\: %8.3lf %%'";
|
||||
|
||||
?>
|
||||
43
html/includes/graphs/altiga_ssl_sessions.inc.php
Normal file
43
html/includes/graphs/altiga_ssl_sessions.inc.php
Normal file
@ -0,0 +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
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
$device = device_by_id_cache($id);
|
||||
$rrd_filename = get_rrd_path($device, "/altiga-ssl.rrd.rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_options .= " DEF:TotalSessions=$rrd_filename_escape:TotalSessions:AVERAGE";
|
||||
$rrd_options .= " DEF:ActiveSessions=$rrd_filename_escape:ActiveSessions:AVERAGE";
|
||||
$rrd_options .= " DEF:MaxSessions=$rrd_filename_escape:MaxSessions:AVERAGE";
|
||||
$rrd_options .= " CDEF:a=1min,100,/";
|
||||
$rrd_options .= " CDEF:b=5min,100,/";
|
||||
$rrd_options .= " CDEF:c=15min,100,/";
|
||||
$rrd_options .= " CDEF:cdefd=a,b,c,+,+";
|
||||
$rrd_options .= " COMMENT:Load\ Average\ \ Current\ \ \ \ Average\ \ \ \ Maximum\\n";
|
||||
$rrd_options .= " AREA:a#ffeeaa:1\ Min:";
|
||||
$rrd_options .= " LINE1:a#c5aa00:";
|
||||
$rrd_options .= " GPRINT:a:LAST:\ \ \ \ %7.2lf";
|
||||
$rrd_options .= " GPRINT:a:AVERAGE:\ \ %7.2lf";
|
||||
$rrd_options .= " GPRINT:a:MAX:\ \ %7.2lf\\n";
|
||||
$rrd_options .= " LINE1.25:b#ea8f00:5\ Min:";
|
||||
$rrd_options .= " GPRINT:b:LAST:\ \ \ \ %7.2lf";
|
||||
$rrd_options .= " GPRINT:b:AVERAGE:\ \ %7.2lf";
|
||||
$rrd_options .= " GPRINT:b:MAX:\ \ %7.2lf\\n";
|
||||
$rrd_options .= " LINE1.25:c#cc0000:15\ Min";
|
||||
$rrd_options .= " GPRINT:c:LAST:\ \ \ %7.2lf";
|
||||
$rrd_options .= " GPRINT:c:AVERAGE:\ \ %7.2lf";
|
||||
$rrd_options .= " GPRINT:c:MAX:\ \ %7.2lf\\n";
|
||||
|
||||
// EOF
|
||||
47
html/includes/graphs/application/asterisk_activecall.inc.php
Normal file
47
html/includes/graphs/application/asterisk_activecall.inc.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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"); }
|
||||
|
||||
$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_simplex_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
44
html/includes/graphs/application/asterisk_peers.inc.php
Normal file
44
html/includes/graphs/application/asterisk_peers.inc.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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"); }
|
||||
|
||||
$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");
|
||||
|
||||
// EOF
|
||||
23
html/includes/graphs/application/auth.inc.php
Normal file
23
html/includes/graphs/application/auth.inc.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
// EOF
|
||||
53
html/includes/graphs/application/bind_answers.inc.php
Normal file
53
html/includes/graphs/application/bind_answers.inc.php
Normal file
@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$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;
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
51
html/includes/graphs/application/bind_cache.inc.php
Normal file
51
html/includes/graphs/application/bind_cache.inc.php
Normal file
@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Entries";
|
||||
$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);
|
||||
}
|
||||
$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++;
|
||||
}
|
||||
} else {
|
||||
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");
|
||||
|
||||
// EOF
|
||||
48
html/includes/graphs/application/bind_query_in.inc.php
Normal file
48
html/includes/graphs/application/bind_query_in.inc.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Requests";
|
||||
$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);
|
||||
}
|
||||
$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++;
|
||||
}
|
||||
} else {
|
||||
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");
|
||||
|
||||
// EOF
|
||||
48
html/includes/graphs/application/bind_query_out.inc.php
Normal file
48
html/includes/graphs/application/bind_query_out.inc.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Requests";
|
||||
$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);
|
||||
}
|
||||
$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++;
|
||||
}
|
||||
} else {
|
||||
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");
|
||||
|
||||
// EOF
|
||||
46
html/includes/graphs/application/bind_query_rejected.inc.php
Normal file
46
html/includes/graphs/application/bind_query_rejected.inc.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$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;
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
44
html/includes/graphs/application/bind_req_in.inc.php
Normal file
44
html/includes/graphs/application/bind_req_in.inc.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Requests";
|
||||
$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;
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
52
html/includes/graphs/application/bind_req_proto.inc.php
Normal file
52
html/includes/graphs/application/bind_req_proto.inc.php
Normal file
@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$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;
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
46
html/includes/graphs/application/bind_resolv_dnssec.inc.php
Normal file
46
html/includes/graphs/application/bind_resolv_dnssec.inc.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$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;
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
50
html/includes/graphs/application/bind_resolv_errors.inc.php
Normal file
50
html/includes/graphs/application/bind_resolv_errors.inc.php
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
50
html/includes/graphs/application/bind_resolv_queries.inc.php
Normal file
50
html/includes/graphs/application/bind_resolv_queries.inc.php
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$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;
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
47
html/includes/graphs/application/bind_resolv_rtt.inc.php
Normal file
47
html/includes/graphs/application/bind_resolv_rtt.inc.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$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;
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
48
html/includes/graphs/application/bind_updates.inc.php
Normal file
48
html/includes/graphs/application/bind_updates.inc.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$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;
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
54
html/includes/graphs/application/bind_zone_maint.inc.php
Normal file
54
html/includes/graphs/application/bind_zone_maint.inc.php
Normal file
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$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;
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
44
html/includes/graphs/application/ceph_iops.inc.php
Normal file
44
html/includes/graphs/application/ceph_iops.inc.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "opsd";
|
||||
$nototal = "true";
|
||||
$rrd_filename = get_rrd_path($device, "app-ceph-".$app['app_id'].".rrd");
|
||||
|
||||
$array = array(
|
||||
'ops' => array('descr' => 'Ceph Operations per second'),
|
||||
);
|
||||
|
||||
$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++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
46
html/includes/graphs/application/ceph_osd.inc.php
Normal file
46
html/includes/graphs/application/ceph_osd.inc.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$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;
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
30
html/includes/graphs/application/ceph_speed.inc.php
Normal file
30
html/includes/graphs/application/ceph_speed.inc.php
Normal file
@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = get_rrd_path($device, "app-ceph-".$app['app_id'].".rrd");
|
||||
|
||||
if (rrd_is_file($mysql_rrd))
|
||||
{
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
|
||||
$format = "bytes";
|
||||
|
||||
$ds_in = "wrbps";
|
||||
$ds_out = "rdbps";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
|
||||
// EOF
|
||||
53
html/includes/graphs/application/dhcpkit_msgtypes.inc.php
Normal file
53
html/includes/graphs/application/dhcpkit_msgtypes.inc.php
Normal file
@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$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;
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
49
html/includes/graphs/application/dhcpkit_packets.inc.php
Normal file
49
html/includes/graphs/application/dhcpkit_packets.inc.php
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$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;
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
47
html/includes/graphs/application/dovecot_auth.inc.php
Normal file
47
html/includes/graphs/application/dovecot_auth.inc.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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')
|
||||
);
|
||||
|
||||
$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++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
44
html/includes/graphs/application/dovecot_auth_cache.inc.php
Normal file
44
html/includes/graphs/application/dovecot_auth_cache.inc.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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')
|
||||
);
|
||||
|
||||
$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++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
44
html/includes/graphs/application/dovecot_cache.inc.php
Normal file
44
html/includes/graphs/application/dovecot_cache.inc.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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')
|
||||
);
|
||||
|
||||
$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++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
44
html/includes/graphs/application/dovecot_commands.inc.php
Normal file
44
html/includes/graphs/application/dovecot_commands.inc.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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')
|
||||
);
|
||||
|
||||
$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++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
44
html/includes/graphs/application/dovecot_connected.inc.php
Normal file
44
html/includes/graphs/application/dovecot_connected.inc.php
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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')
|
||||
);
|
||||
|
||||
$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++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
45
html/includes/graphs/application/dovecot_cpu.inc.php
Normal file
45
html/includes/graphs/application/dovecot_cpu.inc.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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')
|
||||
);
|
||||
|
||||
$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++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
49
html/includes/graphs/application/dovecot_io.inc.php
Normal file
49
html/includes/graphs/application/dovecot_io.inc.php
Normal file
@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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')
|
||||
);
|
||||
|
||||
$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++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
45
html/includes/graphs/application/dovecot_pages.inc.php
Normal file
45
html/includes/graphs/application/dovecot_pages.inc.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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')
|
||||
);
|
||||
|
||||
$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++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
47
html/includes/graphs/application/dovecot_storage.inc.php
Normal file
47
html/includes/graphs/application/dovecot_storage.inc.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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()')
|
||||
);
|
||||
|
||||
$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++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
45
html/includes/graphs/application/dovecot_usage.inc.php
Normal file
45
html/includes/graphs/application/dovecot_usage.inc.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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')
|
||||
);
|
||||
|
||||
$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++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
// EOF
|
||||
36
html/includes/graphs/application/drbd_disk_bits.inc.php
Normal file
36
html/includes/graphs/application/drbd_disk_bits.inc.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$drbd_rrd = get_rrd_path($device, "app-drbd-".$app['app_instance'].".rrd");
|
||||
|
||||
if (rrd_is_file($drbd_rrd))
|
||||
{
|
||||
$rrd_filename = $drbd_rrd;
|
||||
}
|
||||
|
||||
$ds_in = "dr";
|
||||
$ds_out = "dw";
|
||||
|
||||
$leg_in = "Read";
|
||||
$leg_out = "Written";
|
||||
|
||||
$multiplier = "1024";
|
||||
$format = "bytes";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
|
||||
// EOF
|
||||
32
html/includes/graphs/application/drbd_network_bits.inc.php
Normal file
32
html/includes/graphs/application/drbd_network_bits.inc.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$drbd_rrd = get_rrd_path($device, "app-drbd-".$app['app_instance'].".rrd");
|
||||
|
||||
if (rrd_is_file($drbd_rrd))
|
||||
{
|
||||
$rrd_filename = $drbd_rrd;
|
||||
}
|
||||
|
||||
$ds_in = "nr";
|
||||
$ds_out = "ns";
|
||||
|
||||
$multiplier = "1024";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_data.inc.php");
|
||||
|
||||
// EOF
|
||||
48
html/includes/graphs/application/drbd_queue.inc.php
Normal file
48
html/includes/graphs/application/drbd_queue.inc.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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',
|
||||
);
|
||||
|
||||
$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;
|
||||
}
|
||||
$rrd_list[$i]['ds'] = $ds;
|
||||
$i++;
|
||||
}
|
||||
} else { echo("file missing: $rrd_filename"); }
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 0;
|
||||
$unit_text = "";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_simplex_separated.inc.php");
|
||||
|
||||
// EOF
|
||||
39
html/includes/graphs/application/drbd_unsynced.inc.php
Normal file
39
html/includes/graphs/application/drbd_unsynced.inc.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
$scale_min = 0;
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$drbd_rrd = get_rrd_path($device, "app-drbd-".$app['app_instance'].".rrd");
|
||||
|
||||
if (rrd_is_file($drbd_rrd))
|
||||
{
|
||||
$rrd_filename = $drbd_rrd;
|
||||
}
|
||||
|
||||
$ds = "oos";
|
||||
|
||||
$colour_area = "CDEB8B";
|
||||
$colour_line = "006600";
|
||||
|
||||
$colour_area_max = "FFEE99";
|
||||
|
||||
$graph_max = 1;
|
||||
$multiplier = 1000;
|
||||
|
||||
$unit_text = "Bytes";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
||||
33
html/includes/graphs/application/exchange_as_curreqs.inc.php
Normal file
33
html/includes/graphs/application/exchange_as_curreqs.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
33
html/includes/graphs/application/exchange_as_pingcmd.inc.php
Normal file
33
html/includes/graphs/application/exchange_as_pingcmd.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
33
html/includes/graphs/application/exchange_as_syncmd.inc.php
Normal file
33
html/includes/graphs/application/exchange_as_syncmd.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
33
html/includes/graphs/application/exchange_is_active.inc.php
Normal file
33
html/includes/graphs/application/exchange_is_active.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
33
html/includes/graphs/application/exchange_is_rpcfail.inc.php
Normal file
33
html/includes/graphs/application/exchange_is_rpcfail.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
37
html/includes/graphs/application/exchange_is_rpcreq.inc.php
Normal file
37
html/includes/graphs/application/exchange_is_rpcreq.inc.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
$rrd_list[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = "RPC Average Latency";
|
||||
$rrd_list[1]['ds'] = "rpcavglatency";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
33
html/includes/graphs/application/exchange_is_users.inc.php
Normal file
33
html/includes/graphs/application/exchange_is_users.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
33
html/includes/graphs/application/exchange_mb_latency.inc.php
Normal file
33
html/includes/graphs/application/exchange_mb_latency.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
41
html/includes/graphs/application/exchange_mb_msgs.inc.php
Normal file
41
html/includes/graphs/application/exchange_mb_msgs.inc.php
Normal file
@ -0,0 +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
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
$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";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
12
html/includes/graphs/application/exchange_mb_queued.inc.php
Normal file
12
html/includes/graphs/application/exchange_mb_queued.inc.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
33
html/includes/graphs/application/exchange_oab_dlcom.inc.php
Normal file
33
html/includes/graphs/application/exchange_oab_dlcom.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
33
html/includes/graphs/application/exchange_oab_dlq.inc.php
Normal file
33
html/includes/graphs/application/exchange_oab_dlq.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
33
html/includes/graphs/application/exchange_owa_reqsec.inc.php
Normal file
33
html/includes/graphs/application/exchange_owa_reqsec.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
37
html/includes/graphs/application/exchange_owa_rtime.inc.php
Normal file
37
html/includes/graphs/application/exchange_owa_rtime.inc.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
$rrd_list[1]['filename'] = $rrd_filename;
|
||||
$rrd_list[1]['descr'] = "Average Search Time";
|
||||
$rrd_list[1]['ds'] = "avgsearchtime";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
33
html/includes/graphs/application/exchange_owa_users.inc.php
Normal file
33
html/includes/graphs/application/exchange_owa_users.inc.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
37
html/includes/graphs/application/exchange_trans_smtp.inc.php
Normal file
37
html/includes/graphs/application/exchange_trans_smtp.inc.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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";
|
||||
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = (($width<224) ? 1 : 0);
|
||||
$unit_text = "Count";
|
||||
$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;
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
48
html/includes/graphs/application/exim_reject.inc.php
Normal file
48
html/includes/graphs/application/exim_reject.inc.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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'),
|
||||
);
|
||||
|
||||
$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++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/minute_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
46
html/includes/graphs/application/exim_sent.inc.php
Normal file
46
html/includes/graphs/application/exim_sent.inc.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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'),
|
||||
);
|
||||
|
||||
$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++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/minute_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
46
html/includes/graphs/application/exim_spam.inc.php
Normal file
46
html/includes/graphs/application/exim_spam.inc.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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'),
|
||||
);
|
||||
|
||||
$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++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/minute_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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'),
|
||||
);
|
||||
|
||||
$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++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
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'),
|
||||
);
|
||||
|
||||
$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++;
|
||||
}
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
32
html/includes/graphs/application/icecast_current.inc.php
Normal file
32
html/includes/graphs/application/icecast_current.inc.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$ds = "current";
|
||||
$colour_area = "FFCECE";
|
||||
$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");
|
||||
|
||||
if (rrd_is_file($icecast_rrd))
|
||||
{
|
||||
$rrd_filename = $icecast_rrd;
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
||||
32
html/includes/graphs/application/icecast_max.inc.php
Normal file
32
html/includes/graphs/application/icecast_max.inc.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$ds = "max";
|
||||
$colour_area = "FFCECE";
|
||||
$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");
|
||||
|
||||
if (rrd_is_file($icecast_rrd))
|
||||
{
|
||||
$rrd_filename = $icecast_rrd;
|
||||
}
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
// EOF
|
||||
45
html/includes/graphs/application/ioping_iops.inc.php
Normal file
45
html/includes/graphs/application/ioping_iops.inc.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
45
html/includes/graphs/application/ioping_speed.inc.php
Normal file
45
html/includes/graphs/application/ioping_speed.inc.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
47
html/includes/graphs/application/ioping_timing.inc.php
Normal file
47
html/includes/graphs/application/ioping_timing.inc.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
*
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$colours = "mixed";
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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++;
|
||||
}
|
||||
} else {
|
||||
echo("file missing: $rrd_filename");
|
||||
}
|
||||
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
43
html/includes/graphs/application/jvmoverjmx_classes.inc.php
Normal file
43
html/includes/graphs/application/jvmoverjmx_classes.inc.php
Normal file
@ -0,0 +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
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Number";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
43
html/includes/graphs/application/jvmoverjmx_eden.inc.php
Normal file
43
html/includes/graphs/application/jvmoverjmx_eden.inc.php
Normal file
@ -0,0 +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
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Bytes";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$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");
|
||||
|
||||
// EOF
|
||||
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Seconds";
|
||||
# we need a divider since time is in ms
|
||||
$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");
|
||||
|
||||
// EOF
|
||||
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$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");
|
||||
|
||||
// EOF
|
||||
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Seconds";
|
||||
# we need a divider since time is in ms
|
||||
$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");
|
||||
|
||||
// EOF
|
||||
43
html/includes/graphs/application/jvmoverjmx_heap.inc.php
Normal file
43
html/includes/graphs/application/jvmoverjmx_heap.inc.php
Normal file
@ -0,0 +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
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Bytes";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Bytes";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
43
html/includes/graphs/application/jvmoverjmx_nonheap.inc.php
Normal file
43
html/includes/graphs/application/jvmoverjmx_nonheap.inc.php
Normal file
@ -0,0 +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
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Bytes";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
43
html/includes/graphs/application/jvmoverjmx_old.inc.php
Normal file
43
html/includes/graphs/application/jvmoverjmx_old.inc.php
Normal file
@ -0,0 +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
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Bytes";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
43
html/includes/graphs/application/jvmoverjmx_perm.inc.php
Normal file
43
html/includes/graphs/application/jvmoverjmx_perm.inc.php
Normal file
@ -0,0 +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
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Bytes";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-'.$app["app_id"].'.rrd');
|
||||
|
||||
$array = array(
|
||||
'UpTime' => array('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");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Seconds";
|
||||
|
||||
# time is in seconds. Make it hours
|
||||
$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");
|
||||
|
||||
// EOF
|
||||
43
html/includes/graphs/application/jvmoverjmx_threads.inc.php
Normal file
43
html/includes/graphs/application/jvmoverjmx_threads.inc.php
Normal file
@ -0,0 +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
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$rrd_filename = get_rrd_path($device, 'app-jvmoverjmx-'.$app["app_id"].'.rrd');
|
||||
|
||||
$array = array(
|
||||
'DaemonThreads' => array('descr' => 'Daemon Threads'),
|
||||
'TotalThreads' => array('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");
|
||||
}
|
||||
|
||||
$colours = "mixed";
|
||||
$nototal = 1;
|
||||
$unit_text = "Number";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
61
html/includes/graphs/application/kamailio_core.inc.php
Normal file
61
html/includes/graphs/application/kamailio_core.inc.php
Normal file
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
DS:corebadURIsrcvd:COUNTER:600:0:125000000000 \
|
||||
DS:corebadmsghdr:COUNTER:600:0:125000000000 \
|
||||
DS:coredropreplies:COUNTER:600:0:125000000000 \
|
||||
DS:coredroprequests:COUNTER:600:0:125000000000 \
|
||||
DS:coreerrreplies:COUNTER:600:0:125000000000 \
|
||||
DS:coreerrrequests:COUNTER:600:0:125000000000 \
|
||||
DS:corefwdreplies:COUNTER:600:0:125000000000 \
|
||||
DS:corefwdrequests:COUNTER:600:0:125000000000 \
|
||||
DS:corercvreplies:COUNTER:600:0:125000000000 \
|
||||
DS:corercvrequests:COUNTER:600:0:125000000000 \
|
||||
DS:coreunsupportedmeth:COUNTER:600:0:125000000000 \
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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"); }
|
||||
|
||||
$colours = "mixed";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
45
html/includes/graphs/application/kamailio_errors.inc.php
Normal file
45
html/includes/graphs/application/kamailio_errors.inc.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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"); }
|
||||
|
||||
$colours = "mixed";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
48
html/includes/graphs/application/kamailio_registrar.inc.php
Normal file
48
html/includes/graphs/application/kamailio_registrar.inc.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
DS:registraraccregs:COUNTER:600:0:125000000000 \
|
||||
DS:registrardefexpire:GAUGE:600:0:125000000000 \
|
||||
DS:registrardefexpirer:GAUGE:600:0:125000000000 \
|
||||
DS:registrarmaxcontact:GAUGE:600:0:125000000000 \
|
||||
DS:registrarmaxexpires:GAUGE:600:0:125000000000 \
|
||||
DS:registrarrejregs:COUNTER:600:0:125000000000 \
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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"); }
|
||||
|
||||
$colours = "mixed";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
107
html/includes/graphs/application/kamailio_shmen.inc.php
Normal file
107
html/includes/graphs/application/kamailio_shmen.inc.php
Normal file
@ -0,0 +1,107 @@
|
||||
<?php
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2020 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
DS:shmemfragments:GAUGE:600:0:125000000000 \
|
||||
DS:shmemfreesize:GAUGE:600:0:125000000000 \
|
||||
DS:shmemmaxusedsize:GAUGE:600:0:125000000000 \
|
||||
DS:shmemrealusedsize:GAUGE:600:0:125000000000 \
|
||||
DS:shmemtotalsize:GAUGE:600:0:125000000000 \
|
||||
DS:shmemusedsize:GAUGE:600:0:125000000000 \
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "app-kamailio-".$app['app_id'].".rrd");
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
if($width > 500)
|
||||
{
|
||||
$descr_len = 22;
|
||||
} else {
|
||||
$descr_len = 12;
|
||||
}
|
||||
$descr_len += round(($width - 150) / 8);
|
||||
|
||||
$iter = 0;
|
||||
$colours = 'mixed';
|
||||
|
||||
$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];
|
||||
|
||||
$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++;
|
||||
|
||||
$colour=$config['graph_colours'][$colours][$iter];
|
||||
|
||||
$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++;
|
||||
|
||||
$colour=$config['graph_colours'][$colours][$iter];
|
||||
|
||||
$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++;
|
||||
|
||||
$colour=$config['graph_colours'][$colours][$iter];
|
||||
|
||||
$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++;
|
||||
|
||||
$colour=$config['graph_colours'][$colours][$iter];
|
||||
|
||||
$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"); }
|
||||
|
||||
// EOF
|
||||
55
html/includes/graphs/application/kamailio_sl123.inc.php
Normal file
55
html/includes/graphs/application/kamailio_sl123.inc.php
Normal file
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
DS:sl1xxreplies:COUNTER:600:0:125000000000 \
|
||||
DS:sl200replies:COUNTER:600:0:125000000000 \
|
||||
DS:sl202replies:COUNTER:600:0:125000000000 \
|
||||
DS:sl2xxreplies:COUNTER:600:0:125000000000 \
|
||||
DS:sl300replies:COUNTER:600:0:125000000000 \
|
||||
DS:sl301replies:COUNTER:600:0:125000000000 \
|
||||
DS:sl302replies:COUNTER:600:0:125000000000 \
|
||||
DS:sl3xxreplies:COUNTER:600:0:125000000000 \
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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"); }
|
||||
|
||||
$colours = "mixed";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
55
html/includes/graphs/application/kamailio_sl4.inc.php
Normal file
55
html/includes/graphs/application/kamailio_sl4.inc.php
Normal file
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
DS:sl400replies:COUNTER:600:0:125000000000 \
|
||||
DS:sl401replies:COUNTER:600:0:125000000000 \
|
||||
DS:sl403replies:COUNTER:600:0:125000000000 \
|
||||
DS:sl404replies:COUNTER:600:0:125000000000 \
|
||||
DS:sl407replies:COUNTER:600:0:125000000000 \
|
||||
DS:sl408replies:COUNTER:600:0:125000000000 \
|
||||
DS:sl483replies:COUNTER:600:0:125000000000 \
|
||||
DS:sl4xxreplies:COUNTER:600:0:125000000000 \
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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"); }
|
||||
|
||||
$colours = "mixed";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
53
html/includes/graphs/application/kamailio_sl56.inc.php
Normal file
53
html/includes/graphs/application/kamailio_sl56.inc.php
Normal file
@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
DS:sl500replies:COUNTER:600:0:125000000000 \
|
||||
DS:sl5xxreplies:COUNTER:600:0:125000000000 \
|
||||
DS:sl6xxreplies:COUNTER:600:0:125000000000 \
|
||||
DS:slreceivedACKs:COUNTER:600:0:125000000000 \
|
||||
DS:slsenterrreplies:COUNTER:600:0:125000000000 \
|
||||
DS:slsentreplies:COUNTER:600:0:125000000000 \
|
||||
DS:slxxxreplies:COUNTER:600:0:125000000000 \
|
||||
*/
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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"); }
|
||||
|
||||
$colours = "mixed";
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
// EOF
|
||||
62
html/includes/graphs/application/kamailio_tcp.inc.php
Normal file
62
html/includes/graphs/application/kamailio_tcp.inc.php
Normal file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Observium
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
DS:tcpconreset:GAUGE:600:0:125000000000 \
|
||||
DS:tcpcontimeout:GAUGE:600:0:125000000000 \
|
||||
DS:tcpconnectfailed:GAUGE:600:0:125000000000 \
|
||||
DS:tcpconnectsuccess:GAUGE:600:0:125000000000 \
|
||||
DS:tcpcurrentopenedcon:GAUGE:600:0:125000000000 \
|
||||
DS:tcpcurrentwrqsize:GAUGE:600:0:125000000000 \
|
||||
DS:tcpestablished:GAUGE:600:0:125000000000 \
|
||||
DS:tcplocalreject:GAUGE:600:0:125000000000 \
|
||||
DS:tcppassiveopen:GAUGE:600:0:125000000000 \
|
||||
DS:tcpsendtimeout:GAUGE:600:0:125000000000 \
|
||||
DS:tcpsendqfull:GAUGE:600:0:125000000000 \
|
||||
*/
|
||||
|
||||
|
||||
include_once($config['html_dir']."/includes/graphs/common.inc.php");
|
||||
|
||||
$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'),
|
||||
);
|
||||
|
||||
$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"); }
|
||||
|
||||
$colours = "mixed";
|
||||
|
||||
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