2020-06-22 22:57:30 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
$scale_min = '0';
|
|
|
|
$scale_max = '100';
|
|
|
|
$float_precision = '3';
|
|
|
|
|
2021-03-28 17:25:30 -05:00
|
|
|
$rrd_filename = Rrd::name($device['hostname'], ['availability', $vars['duration']]);
|
2020-06-22 22:57:30 +02:00
|
|
|
|
|
|
|
$ds = 'availability';
|
|
|
|
|
|
|
|
$colour_line = '000000';
|
|
|
|
$colour_area = '8B8BEB44';
|
|
|
|
|
|
|
|
$colour_area_max = 'cc9999';
|
|
|
|
|
2022-12-15 15:52:53 -06:00
|
|
|
$line_text = \LibreNMS\Util\Time::formatInterval($vars['duration'], parts: 1);
|
2020-06-22 22:57:30 +02:00
|
|
|
|
|
|
|
$graph_title .= '::' . $line_text;
|
|
|
|
|
|
|
|
$graph_max = 1;
|
|
|
|
|
|
|
|
$unit_text = 'Availability(%)';
|
|
|
|
|
|
|
|
require 'includes/html/graphs/generic_simplex.inc.php';
|