mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
f99f92d911
* rename the mojo cape submit graphs, changing - to _ * update graph names on the app page for it
20 lines
505 B
PHP
20 lines
505 B
PHP
<?php
|
|
|
|
$name = 'mojo_cape_submit';
|
|
$unit_text = 'Submissions';
|
|
$colours = 'psychedelic';
|
|
$descr = 'Sub Count';
|
|
$ds = 'sub_count';
|
|
|
|
if (isset($vars['slug'])) {
|
|
$filename = Rrd::name($device['hostname'], ['app', $name, $app->app_id, 'slugs___-___' . $vars['slug']]);
|
|
} else {
|
|
$filename = Rrd::name($device['hostname'], ['app', $name, $app->app_id]);
|
|
}
|
|
|
|
if (! Rrd::checkRrdExists($filename)) {
|
|
d_echo('RRD "' . $filename . '" not found');
|
|
}
|
|
|
|
require 'includes/html/graphs/generic_stats.inc.php';
|