mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Apps - backupninja (#11010)
* GUI - graphs * GUI - Apps * Polling * GUI - apps * Add backupninja to documentation * Apps - backupninja : add link to librenmsagent script * Add backupninja snmprec file * Delete backupninja.snmprec No Regression tests on apps (yet), only on devices. * Remove old debug * Update language : FR -> EN * Add debug informations * File path moved to /etc/snmp/ * Python script now use json * Update following example on puppet script * Update installation instructions following puppet example * Update apps.inc.php Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com> Co-authored-by: SourceDoctor <sourcehhdoctor@gmail.com>
This commit is contained in:
@@ -332,6 +332,10 @@ $graphs['mailcow-postfix'] = array(
|
||||
'traffic',
|
||||
'domains',
|
||||
);
|
||||
$graphs['backupninja'] = array(
|
||||
'backupninja',
|
||||
);
|
||||
|
||||
echo '<div class="panel panel-default">';
|
||||
echo '<div class="panel-heading">';
|
||||
echo "<span style='font-weight: bold;'>Apps</span> » ";
|
||||
|
22
includes/html/pages/device/apps/backupninja.inc.php
Normal file
22
includes/html/pages/device/apps/backupninja.inc.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
$graphs = array(
|
||||
'backupninja_backupninja' => 'backupninja backups',
|
||||
);
|
||||
foreach ($graphs as $key => $text) {
|
||||
$graph_type = $key;
|
||||
$graph_array['height'] = '100';
|
||||
$graph_array['width'] = '215';
|
||||
$graph_array['to'] = \LibreNMS\Config::get('time.now');
|
||||
$graph_array['id'] = $app['app_id'];
|
||||
$graph_array['type'] = 'application_'.$key;
|
||||
echo '<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h3 class="panel-title">'.$text.'</h3>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="row">';
|
||||
include 'includes/html/print-graphrow.inc.php';
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
}
|
Reference in New Issue
Block a user