mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* add poller for mojo cape submit * mojo_cape_submit poller now works * add app page for mojo_cape_submit * add basic generic stat graphs for mojo cape submit * general size stats graph for mojo_cape_submit * make sure we update slugs that did not see anything submitted for them * sort the slugs by sub count * add app protos graph and sub top 12 graphs * add mojo cape submit docs * add tests for mojo_cape_submit * add mojo_cape_submit to the apps page * add string helper for mojo_cape_submit * poke lots of stuff with php-cs-fixer * remove a unneeded line * add a missing metric and app data to test
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';
|