mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
phpDocumentator headers. retire static-config. IF YOU ARE READING THIS, REMOVE IT FROM THE BOTTOM YOUR CONFIG.PHP. YES. YOU.
git-svn-id: http://www.observium.org/svn/observer/trunk@3150 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,22 +1,25 @@
|
||||
<?php
|
||||
|
||||
$device = device_by_id_cache($id);
|
||||
|
||||
$scale_min = "0";
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
|
||||
$database = $config['rrd_dir'] . "/" . $device['hostname'] . "/hr_users.rrd";
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/hr_users.rrd";
|
||||
|
||||
$ds = "users";
|
||||
|
||||
$colour_line = "008C00";
|
||||
$colour_area = "CDEB8B";
|
||||
|
||||
$colour_area_max = "cc9999";
|
||||
|
||||
$graph_max = 1;
|
||||
$graph_min = 0;
|
||||
|
||||
$unit_text = "Processes";
|
||||
|
||||
include("includes/graphs/generic_simplex.inc.php");
|
||||
|
||||
|
||||
$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