diff --git a/html/includes/graphs/toner/auth.inc.php b/html/includes/graphs/toner/auth.inc.php new file mode 100755 index 0000000000..c679f63dfe --- /dev/null +++ b/html/includes/graphs/toner/auth.inc.php @@ -0,0 +1,18 @@ + diff --git a/html/includes/graphs/toner/usage.inc.php b/html/includes/graphs/toner/usage.inc.php new file mode 100755 index 0000000000..3eaa5f7546 --- /dev/null +++ b/html/includes/graphs/toner/usage.inc.php @@ -0,0 +1,33 @@ + diff --git a/html/pages/health.inc.php b/html/pages/health.inc.php index 0b739b22b1..f303ebc137 100644 --- a/html/pages/health.inc.php +++ b/html/pages/health.inc.php @@ -22,6 +22,7 @@ $type_text['fanspeed'] = "Fanspeed"; $type_text['frequency'] = "Frequency"; $type_text['current'] = "Current"; $type_text['power'] = "Power"; +$type_text['toner'] = "Toner"; if (!$vars['metric']) { $vars['metric'] = "processor"; } if (!$vars['view']) { $vars['view'] = "detail"; } @@ -84,6 +85,7 @@ print_optionbar_end(); if (in_array($vars['metric'],array_keys($used_sensors)) || $vars['metric'] == 'processor' || $vars['metric'] == 'storage' + || $vars['metric'] == 'toner' || $vars['metric'] == 'mempool') { include('pages/health/'.$vars['metric'].'.inc.php'); diff --git a/html/pages/health/toner.inc.php b/html/pages/health/toner.inc.php new file mode 100644 index 0000000000..508e3e8e29 --- /dev/null +++ b/html/pages/health/toner.inc.php @@ -0,0 +1,70 @@ + +
Device | +Toner | ++ | Usage | +Used | +
---|---|---|---|---|
" . generate_device_link($toner) . " | " . $toner['toner_descr'] . " | +$mini_graph | ++ ".print_percentage_bar (400, 20, $perc, "$perc%", "ffffff", $background['left'], $free, "ffffff", $background['right'])." + | $perc"."% |
"); + + $graph_array['height'] = "100"; + $graph_array['width'] = "216"; + $graph_array['to'] = $config['time']['now']; + $graph_array['id'] = $toner['toner_id']; + $graph_array['type'] = $graph_type; + + include("includes/print-quadgraphs.inc.php"); + + echo(" |