Files
librenms-librenms/includes/html/graphs/application/mojo_cape_submit_subs.inc.php
T
Zane C. Bowers-Hadley f99f92d911 fix display of graphs on the multi-server app page for Mojo CAPE Submit (#16094)
* rename the mojo cape submit graphs, changing - to _

* update graph names on the app page for it
2024-06-06 19:53:23 -05:00

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';