mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
MySQL Application poller (thanks to Ove)
git-svn-id: http://www.observium.org/svn/observer/trunk@1725 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
|
||||
$rrd_options .= ' -b 1024 ';
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':CDe:AVERAGE ';
|
||||
$rrd_options .= ' DEF:b='.$rrd_filename.':CIt:AVERAGE ';
|
||||
$rrd_options .= ' DEF:c='.$rrd_filename.':CISt:AVERAGE ';
|
||||
$rrd_options .= ' DEF:d='.$rrd_filename.':CLd:AVERAGE ';
|
||||
$rrd_options .= ' DEF:e='.$rrd_filename.':CRe:AVERAGE ';
|
||||
$rrd_options .= ' DEF:f='.$rrd_filename.':CRSt:AVERAGE ';
|
||||
$rrd_options .= ' DEF:g='.$rrd_filename.':CSt:AVERAGE ';
|
||||
$rrd_options .= ' DEF:h='.$rrd_filename.':CUe:AVERAGE ';
|
||||
$rrd_options .= ' DEF:i='.$rrd_filename.':CUMi:AVERAGE ';
|
||||
|
||||
$rrd_options .= 'COMMENT:" Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= "AREA:a#22FF22:Delete\ \ ";
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:b#0022FF:"Insert ":STACK ';
|
||||
$rrd_options .= 'GPRINT:b:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:c#FF0000:"Insert Select":STACK ';
|
||||
$rrd_options .= 'GPRINT:c:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:d#00AAAA:"Load Data":STACK ';
|
||||
$rrd_options .= 'GPRINT:d:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:e#FF00FF:"Replace ":STACK ';
|
||||
$rrd_options .= 'GPRINT:e:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:e:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:e:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:f#FFA500:"Replace Select":STACK ';
|
||||
$rrd_options .= 'GPRINT:f:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:f:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:f:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:g#CC0000:"Select ":STACK ';
|
||||
$rrd_options .= 'GPRINT:g:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:g:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:g:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:h#0000CC:"Update ":STACK ';
|
||||
$rrd_options .= 'GPRINT:h:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:h:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:h:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:i#0080C0:"Update Multi":STACK ';
|
||||
$rrd_options .= 'GPRINT:i:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:i:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:i:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
$rrd_options .= ' -b 1000 ';
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':MaCs:AVERAGE ';
|
||||
$rrd_options .= ' DEF:b='.$rrd_filename.':MUCs:AVERAGE ';
|
||||
$rrd_options .= ' DEF:c='.$rrd_filename.':ACs:AVERAGE ';
|
||||
$rrd_options .= ' DEF:d='.$rrd_filename.':AdCs:AVERAGE ';
|
||||
$rrd_options .= ' DEF:e='.$rrd_filename.':TCd:AVERAGE ';
|
||||
$rrd_options .= ' DEF:f='.$rrd_filename.':Cs:AVERAGE ';
|
||||
|
||||
$rrd_options .= 'COMMENT:" Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:a#cdcfc4:"Max Connections"\ \ ';
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:b#FFD660:"Max Used Connections"\ \ ';
|
||||
$rrd_options .= 'GPRINT:b:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:c#22FF22:"Aborted Clients"\ \ ';
|
||||
$rrd_options .= 'GPRINT:c:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:d#0022FF:"Aborted Connects"\ \ ';
|
||||
$rrd_options .= 'GPRINT:d:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE:e#FF0000:"Threads Connected"\ \ ';
|
||||
$rrd_options .= 'GPRINT:e:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:e:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:e:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:f#00AAAA:"New Connections"\ \ ';
|
||||
$rrd_options .= 'GPRINT:f:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:f:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:f:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
$rrd_options .= ' -b 1000 ';
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':TOC:AVERAGE ';
|
||||
$rrd_options .= ' DEF:b='.$rrd_filename.':OFs:AVERAGE ';
|
||||
$rrd_options .= ' DEF:c='.$rrd_filename.':OTs:AVERAGE ';
|
||||
$rrd_options .= ' DEF:d='.$rrd_filename.':OdTs:AVERAGE ';
|
||||
|
||||
$rrd_options .= 'COMMENT:" Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:a#cdcfc4:"Table Cache"\ \ ';
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:b#FFD660:"Open Files"\ \ ';
|
||||
$rrd_options .= 'GPRINT:b:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:c#22FF22:"Open Tables"\ \ ';
|
||||
$rrd_options .= 'GPRINT:c:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:d#0022FF:"Opened Tables"\ \ ';
|
||||
$rrd_options .= 'GPRINT:d:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
$rrd_options .= ' -b 1024 ';
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':IBPse:AVERAGE ';
|
||||
$rrd_options .= ' DEF:b='.$rrd_filename.':IBPDBp:AVERAGE ';
|
||||
$rrd_options .= ' DEF:c='.$rrd_filename.':IBPFe:AVERAGE ';
|
||||
$rrd_options .= ' DEF:d='.$rrd_filename.':IBPMps:AVERAGE ';
|
||||
|
||||
$rrd_options .= 'COMMENT:" Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:a#FFD660:"Buffer Pool Size"\ \ ';
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:b#CDCFC4:"Database Pages"\ \ ';
|
||||
$rrd_options .= 'GPRINT:b:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:c#22FF22:"Free Pages"\ \ ';
|
||||
$rrd_options .= 'GPRINT:c:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:d#0022FF:"Modified Pages"\ \ ';
|
||||
$rrd_options .= 'GPRINT:d:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
$rrd_options .= ' -b 1024 ';
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':IBRd:AVERAGE ';
|
||||
$rrd_options .= ' DEF:b='.$rrd_filename.':IBCd:AVERAGE ';
|
||||
$rrd_options .= ' DEF:c='.$rrd_filename.':IBWr:AVERAGE ';
|
||||
$rrd_options .= ' CDEF:d=a,b,c,+,+ ';
|
||||
|
||||
$rrd_options .= 'COMMENT:" Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:a#22FF22:"Pages Read"\ \ ';
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:b#0022FF:"Pages Created"\ \ ';
|
||||
$rrd_options .= 'GPRINT:b:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:c#FF0000:"Pages Written"\ \ ';
|
||||
$rrd_options .= 'GPRINT:c:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:d#000000:"Total"\ \ ';
|
||||
$rrd_options .= 'GPRINT:d:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:MAX:"%6.2lf %s\n" ';
|
||||
?>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
$rrd_options .= ' -b 1024 ';
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':IBIIs:AVERAGE ';
|
||||
$rrd_options .= ' DEF:b='.$rrd_filename.':IBIMRd:AVERAGE ';
|
||||
$rrd_options .= ' DEF:c='.$rrd_filename.':IBIMs:AVERAGE ';
|
||||
|
||||
$rrd_options .= 'COMMENT:" Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:a#22FF22:"Inserts"\ \ ';
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:b#0022FF:"Merged Records"\ \ ';
|
||||
$rrd_options .= 'GPRINT:b:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:c#FF0000:"Merges"\ \ ';
|
||||
$rrd_options .= 'GPRINT:c:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':IBIRd:AVERAGE ';
|
||||
$rrd_options .= ' DEF:b='.$rrd_filename.':IBIWr:AVERAGE ';
|
||||
$rrd_options .= ' DEF:c='.$rrd_filename.':IBILg:AVERAGE ';
|
||||
$rrd_options .= ' DEF:d='.$rrd_filename.':IBIFSc:AVERAGE ';
|
||||
|
||||
|
||||
$rrd_options .= 'COMMENT:" Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:a#22FF22:"File Reads"\ \ ';
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:b#0022FF:"File Writes"\ \ ';
|
||||
$rrd_options .= 'GPRINT:b:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:c#FF0000:"Log Writes"\ \ ';
|
||||
$rrd_options .= 'GPRINT:c:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:d#00AAAA:"File syncs"\ \ ';
|
||||
$rrd_options .= 'GPRINT:d:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':IBILog:AVERAGE ';
|
||||
$rrd_options .= ' DEF:b='.$rrd_filename.':IBISc:AVERAGE ';
|
||||
$rrd_options .= ' DEF:c='.$rrd_filename.':IBIFLg:AVERAGE ';
|
||||
$rrd_options .= ' DEF:d='.$rrd_filename.':IBFBl:AVERAGE ';
|
||||
$rrd_options .= ' DEF:e='.$rrd_filename.':IBIIAo:AVERAGE ';
|
||||
$rrd_options .= ' DEF:f='.$rrd_filename.':IBIAd:AVERAGE ';
|
||||
$rrd_options .= ' DEF:g='.$rrd_filename.':IBIAe:AVERAGE ';
|
||||
|
||||
|
||||
$rrd_options .= 'COMMENT:" Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:a#22FF22:"AIO Log"\ \ ';
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:b#0022FF:"AIO Sync"\ \ ';
|
||||
$rrd_options .= 'GPRINT:b:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:c#FF0000:"Buf Pool Flush"\ \ ';
|
||||
$rrd_options .= 'GPRINT:c:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:d#00AAAA:"Log Flushes"\ \ ';
|
||||
$rrd_options .= 'GPRINT:d:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:e#FF00FF:"Insert Buf AIO Read"\ \ ';
|
||||
$rrd_options .= 'GPRINT:e:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:e:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:e:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:f#FFA500:"Normal AIO Reads"\ \ ';
|
||||
$rrd_options .= 'GPRINT:f:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:f:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:f:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:d#CC0000:"Normal AIO Writes"\ \ ';
|
||||
$rrd_options .= 'GPRINT:g:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:g:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:g:MAX:"%6.2lf %s\n" ';
|
||||
?>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':IDBLBSe:AVERAGE ';
|
||||
$rrd_options .= ' DEF:b='.$rrd_filename.':IBLFh:AVERAGE ';
|
||||
$rrd_options .= ' DEF:c='.$rrd_filename.':IBLWn:AVERAGE ';
|
||||
|
||||
|
||||
$rrd_options .= 'COMMENT:" Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:a#FAFD9E:"Buffer Size"\ \ ';
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:b#22FF22:"KB Flushed"\ \ ';
|
||||
$rrd_options .= 'GPRINT:b:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:c#0022FF:"KB Written"\ \ ';
|
||||
$rrd_options .= 'GPRINT:c:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':IDBRDd:AVERAGE ';
|
||||
$rrd_options .= ' DEF:b='.$rrd_filename.':IDBRId:AVERAGE ';
|
||||
$rrd_options .= ' DEF:c='.$rrd_filename.':IDBRRd:AVERAGE ';
|
||||
$rrd_options .= ' DEF:d='.$rrd_filename.':IDBRUd:AVERAGE ';
|
||||
$rrd_options .= ' CDEF:e=a,b,c,d,+,+,+ ';
|
||||
|
||||
|
||||
$rrd_options .= 'COMMENT:" Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:a#22FF22:"Deletes"\ \ ';
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:b#0022FF:"Inserts":STACK ';
|
||||
$rrd_options .= 'GPRINT:b:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:c#FF0000:"Reads":STACK ';
|
||||
$rrd_options .= 'GPRINT:c:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:d#00AAAA:"Updates":STACK ';
|
||||
$rrd_options .= 'GPRINT:d:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:e#000000:"Total":STACK ';
|
||||
$rrd_options .= 'GPRINT:e:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:e:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:e:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':IBSRs:AVERAGE ';
|
||||
$rrd_options .= ' DEF:b='.$rrd_filename.':IBSWs:AVERAGE ';
|
||||
$rrd_options .= ' DEF:c='.$rrd_filename.':IBOWs:AVERAGE ';
|
||||
|
||||
|
||||
$rrd_options .= 'COMMENT:" Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:a#22FF22:"Spin Rounds"\ \ ';
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:b#0022FF:"Spin Waits"\ \ ';
|
||||
$rrd_options .= 'GPRINT:b:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:c#FF0000:"OS Waits"\ \ ';
|
||||
$rrd_options .= 'GPRINT:c:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:MAX:"%6.2lf %s\n" ';
|
||||
?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
|
||||
$rrd_options .= ' -b 1000 ';
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':IBTNx:AVERAGE ';
|
||||
|
||||
|
||||
$rrd_options .= 'COMMENT:" Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:a#22FF22:"Transactions created"\ \ ';
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s" ';
|
||||
?>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':KRRs:AVERAGE ';
|
||||
$rrd_options .= ' DEF:b='.$rrd_filename.':KRs:AVERAGE ';
|
||||
$rrd_options .= ' DEF:c='.$rrd_filename.':KWR:AVERAGE ';
|
||||
$rrd_options .= ' DEF:d='.$rrd_filename.':KWs:AVERAGE ';
|
||||
|
||||
|
||||
$rrd_options .= 'COMMENT:" Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:a#22FF22:"Key read requests"\ \ ';
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:b#0022FF:"Key reads"\ \ ';
|
||||
$rrd_options .= 'GPRINT:b:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:c#FF0000:"Key write requests"\ \ ';
|
||||
$rrd_options .= 'GPRINT:c:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE1:d#00AAAA:"Key writes"\ \ ';
|
||||
$rrd_options .= 'GPRINT:d:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
|
||||
$rrd_options .= ' -b 1024 ';
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':BRd:AVERAGE ';
|
||||
$rrd_options .= ' DEF:b='.$rrd_filename.':BSt:AVERAGE ';
|
||||
$rrd_options .= ' CDEF:c=a,-1,* ';
|
||||
|
||||
|
||||
$rrd_options .= 'COMMENT:" Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:c#00AA00:"Bytes read"\ \ ';
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:b#00AA00:"Bytes sent"\ \ ';
|
||||
$rrd_options .= 'GPRINT:b:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
|
||||
$rrd_options .= ' -b 1024 ';
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':QCQICe:AVERAGE ';
|
||||
$rrd_options .= ' DEF:b='.$rrd_filename.':QCHs:AVERAGE ';
|
||||
$rrd_options .= ' DEF:c='.$rrd_filename.':QCIs:AVERAGE ';
|
||||
$rrd_options .= ' DEF:d='.$rrd_filename.':QCNCd:AVERAGE ';
|
||||
$rrd_options .= ' DEF:e='.$rrd_filename.':QCLMPs:AVERAGE ';
|
||||
|
||||
|
||||
$rrd_options .= 'COMMENT:" Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:a#22FF22:"Queries in cache"\ \ ';
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:b#0022FF:"Cache hits"\ \ ';
|
||||
$rrd_options .= 'GPRINT:b:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:c#FF0000:"Inserts"\ \ ';
|
||||
$rrd_options .= 'GPRINT:c:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:d#00AAAA:"Not cached"\ \ ';
|
||||
$rrd_options .= 'GPRINT:d:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:e#FF00FF:"Low-memory prunes"\ \ ';
|
||||
$rrd_options .= 'GPRINT:e:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:e:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:e:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
|
||||
$rrd_options .= ' -b 1024 ';
|
||||
$rrd_options .= ' -l 0 ';
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':QCs:AVERAGE ';
|
||||
$rrd_options .= ' DEF:b='.$rrd_filename.':QCeFy:AVERAGE ';
|
||||
|
||||
|
||||
$rrd_options .= 'COMMENT:" Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:a#22FF22:"Cache size"\ \ ';
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:b#0022FF:"Free mem"\ \ ';
|
||||
$rrd_options .= 'GPRINT:b:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
|
||||
$rrd_options .= ' -b 1024 ';
|
||||
$rrd_options .= ' -l 0 ';
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':SFJn:AVERAGE ';
|
||||
$rrd_options .= ' DEF:b='.$rrd_filename.':SFRJn:AVERAGE ';
|
||||
$rrd_options .= ' DEF:c='.$rrd_filename.':SRe:AVERAGE ';
|
||||
$rrd_options .= ' DEF:d='.$rrd_filename.':SRCk:AVERAGE ';
|
||||
$rrd_options .= ' DEF:e='.$rrd_filename.':SSn:AVERAGE ';
|
||||
$rrd_options .= ' CDEF:total=a,b,c,d,e,+,+,+,+ ';
|
||||
|
||||
|
||||
$rrd_options .= 'COMMENT:" Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:a#22FF22:"Full Join"\ \ ';
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:b#0022FF:"Full Range"\ \ ';
|
||||
$rrd_options .= 'GPRINT:b:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:c#FF0000:"Range"\ \ ';
|
||||
$rrd_options .= 'GPRINT:c:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:d#00AAAA:"Range Check"\ \ ';
|
||||
$rrd_options .= 'GPRINT:d:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:e#FF00FF:"Scan"\ \ ';
|
||||
$rrd_options .= 'GPRINT:e:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:e:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:e:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'AREA:total#000000:"Total"\ \ ';
|
||||
$rrd_options .= 'GPRINT:total:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:total:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:total:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
|
||||
/* $rrd_options .= ' -b 1024 '; */
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':SQs:AVERAGE ';
|
||||
|
||||
|
||||
$rrd_options .= 'COMMENT:" Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:a#22FF22:"Slow queries"\ \ ';
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
|
||||
$rrd_options .= ' -b 1000 ';
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':SRows:AVERAGE ';
|
||||
$rrd_options .= ' DEF:b='.$rrd_filename.':SRange:AVERAGE ';
|
||||
$rrd_options .= ' DEF:c='.$rrd_filename.':SMPs:AVERAGE ';
|
||||
$rrd_options .= ' DEF:d='.$rrd_filename.':SScan:AVERAGE ';
|
||||
|
||||
$rrd_options .= 'COMMENT:"\t Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:a#22FF22:"Rows Sorted"\ \ ';
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= "LINE2:b#0022FF:Range\ \ ";
|
||||
$rrd_options .= 'GPRINT:b:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:c#FF0000:"Merge Passes"\ \ ';
|
||||
$rrd_options .= 'GPRINT:c:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= "LINE2:d#FF0000:Scan\ \ ";
|
||||
$rrd_options .= 'GPRINT:d:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:d:MAX:"%6.2lf %s\n" ';
|
||||
?>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
|
||||
/* $rrd_options .= ' -b 1024 '; */
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':TLIe:AVERAGE ';
|
||||
$rrd_options .= ' DEF:b='.$rrd_filename.':TLWd:AVERAGE ';
|
||||
|
||||
|
||||
$rrd_options .= 'COMMENT:" Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:a#00FF00:"Table locks immed"\ \ ';
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:b#0022FF:"Table locks waited"\ \ ';
|
||||
$rrd_options .= 'GPRINT:b:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$mysql_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mysql-".$app['app_id'].".rrd";
|
||||
|
||||
if(is_file($mysql_rrd)) {
|
||||
$rrd_filename = $mysql_rrd;
|
||||
}
|
||||
|
||||
/* $rrd_options .= ' -b 1024 '; */
|
||||
$rrd_options .= ' DEF:a='.$rrd_filename.':CTMPDTs:AVERAGE ';
|
||||
$rrd_options .= ' DEF:b='.$rrd_filename.':CTMPTs:AVERAGE ';
|
||||
$rrd_options .= ' DEF:c='.$rrd_filename.':CTMPFs:AVERAGE ';
|
||||
|
||||
|
||||
$rrd_options .= 'COMMENT:" Current Average Maximum\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:a#22FF22:"Temp disk tables"\ \ ';
|
||||
$rrd_options .= 'GPRINT:a:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:a:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:b#0022FF:"Temp tables"\ \ ';
|
||||
$rrd_options .= 'GPRINT:b:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:b:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
$rrd_options .= 'LINE2:c#FF0000:"Temp files"\ \ ';
|
||||
$rrd_options .= 'GPRINT:c:LAST:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:AVERAGE:"%6.2lf %s" ';
|
||||
$rrd_options .= 'GPRINT:c:MAX:"%6.2lf %s\n" ';
|
||||
|
||||
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user