mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
adding graphing types
git-svn-id: http://www.observium.org/svn/observer/trunk@502 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -0,0 +1,29 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
include("common.inc.php");
|
||||||
|
|
||||||
|
$database = $config['rrd_dir'] . "/" . $hostname . "/load.rrd";
|
||||||
|
|
||||||
|
$rrd_options .= " DEF:1min=$database:1min:AVERAGE";
|
||||||
|
$rrd_options .= " DEF:5min=$database:5min:AVERAGE";
|
||||||
|
$rrd_options .= " DEF:15min=$database:15min: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";
|
||||||
|
|
||||||
|
?>
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
include("common.inc.php");
|
||||||
|
|
||||||
|
$rrd_filename = $config['rrd_dir'] . "/" . $_GET['device'] . "/uptime.rrd";
|
||||||
|
|
||||||
|
$options .= " DEF:1min=$rrd_filename:1min:AVERAGE";
|
||||||
|
$options .= " DEF:5min=$rrd_filename:5min:AVERAGE";
|
||||||
|
$options .= " DEF:15min=$rrd_filename:15min:AVERAGE";
|
||||||
|
$options .= " CDEF:a=1min,100,/";
|
||||||
|
$options .= " CDEF:b=5min,100,/";
|
||||||
|
$options .= " CDEF:c=15min,100,/";
|
||||||
|
$options .= " CDEF:cdefd=a,b,c,+,+";
|
||||||
|
$options .= " COMMENT:Load\ Average\ \ Current\ \ \ \ Average\ \ \ \ Maximum\\\\n";
|
||||||
|
$options .= " AREA:a#ffeeaa:1\ Min:";
|
||||||
|
$options .= " LINE1:a#c5aa00:";
|
||||||
|
$options .= " GPRINT:a:LAST:\ \ \ \ %7.2lf";
|
||||||
|
$options .= " GPRINT:a:AVERAGE:\ \ %7.2lf";
|
||||||
|
$options .= " GPRINT:a:MAX:\ \ %7.2lf\\\\n";
|
||||||
|
$options .= " LINE1.25:b#ea8f00:5\ Min:";
|
||||||
|
$options .= " GPRINT:b:LAST:\ \ \ \ %7.2lf";
|
||||||
|
$options .= " GPRINT:b:AVERAGE:\ \ %7.2lf";
|
||||||
|
$options .= " GPRINT:b:MAX:\ \ %7.2lf\\\\n";
|
||||||
|
$options .= " LINE1.25:c#cc0000:15\ Min";
|
||||||
|
$options .= " GPRINT:c:LAST:\ \ \ %7.2lf";
|
||||||
|
$options .= " GPRINT:c:AVERAGE:\ \ %7.2lf";
|
||||||
|
$options .= " GPRINT:c:MAX:\ \ %7.2lf\\\\n";
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
$scale_min = "0";
|
||||||
|
|
||||||
|
include("common.inc.php");
|
||||||
|
|
||||||
|
$database = $config['rrd_dir'] . "/" . $hostname . "/sys.rrd";
|
||||||
|
|
||||||
|
$rrd_options .= " DEF:procs=$database:procs:AVERAGE";
|
||||||
|
$rrd_options .= " COMMENT:Processes\ \ \ \ Cur\ \ \ \ \ Ave\ \ \ \ \ \ Min\ \ \ \ \ Max\\\\n";
|
||||||
|
$rrd_options .= " AREA:procs#CDEB8B:";
|
||||||
|
$rrd_options .= " LINE1.25:procs#008C00:\ ";
|
||||||
|
$rrd_options .= " GPRINT:procs:LAST:\ \ \ \ %6.2lf";
|
||||||
|
$rrd_options .= " GPRINT:procs:AVERAGE:%6.2lf";
|
||||||
|
$rrd_options .= " GPRINT:procs:MIN:%6.2lf";
|
||||||
|
$rrd_options .= " GPRINT:procs:MAX:%6.2lf\\\\n";
|
||||||
|
|
||||||
|
?>
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
$scale_min = "0";
|
||||||
|
|
||||||
|
include("common.inc.php");
|
||||||
|
|
||||||
|
$database = $config['rrd_dir'] . "/" . $hostname . "/sys.rrd";
|
||||||
|
|
||||||
|
$rrd_options .= " DEF:users=$database:users:AVERAGE";
|
||||||
|
$rrd_options .= " DEF:users_max=$database:users:MAX";
|
||||||
|
$rrd_options .= " COMMENT:Users\ \ \ \ \ \ Cur\ \ \ \ \ Ave\ \ \ \ \ \ Min\ \ \ \ \ Max\\\\n";
|
||||||
|
$rrd_options .= " AREA:users_max#defc9c:";
|
||||||
|
$rrd_options .= " AREA:users#CDEB8B:";
|
||||||
|
$rrd_options .= " LINE1.25:users#008C00:\ ";
|
||||||
|
$rrd_options .= " GPRINT:users:LAST:\ \ \ \ %6.2lf";
|
||||||
|
$rrd_options .= " GPRINT:users:AVERAGE:%6.2lf";
|
||||||
|
$rrd_options .= " GPRINT:users:MIN:%6.2lf";
|
||||||
|
$rrd_options .= " GPRINT:users_max:MAX:%6.2lf\\\\n";
|
||||||
|
|
||||||
|
?>
|
||||||
Reference in New Issue
Block a user