2011-10-02 09:41:55 +00:00
|
|
|
<?php
|
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$graphs = [
|
2024-01-05 05:39:12 +01:00
|
|
|
'mailscanner_sent' => 'Mailscanner - Sent / Received',
|
|
|
|
'mailscanner_spam' => 'Mailscanner - Spam / Virus',
|
2015-07-10 13:36:21 +02:00
|
|
|
'mailscanner_reject' => 'Mailscanner - Rejected / Waiting / Relayed',
|
|
|
|
];
|
2011-10-02 09:41:55 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
foreach ($graphs as $key => $text) {
|
|
|
|
$graph_type = $key;
|
|
|
|
$graph_array['height'] = '100';
|
|
|
|
$graph_array['width'] = '215';
|
2019-06-23 00:29:12 -05:00
|
|
|
$graph_array['to'] = \LibreNMS\Config::get('time.now');
|
2015-07-10 13:36:21 +02:00
|
|
|
$graph_array['id'] = $app['app_id'];
|
|
|
|
$graph_array['type'] = 'application_' . $key;
|
2011-10-02 09:41:55 +00:00
|
|
|
|
2016-02-29 13:23:42 +00:00
|
|
|
echo '<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<h3 class="panel-title">' . $text . '</h3>
|
|
|
|
</div>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="row">';
|
2019-04-11 23:26:42 -05:00
|
|
|
include 'includes/html/print-graphrow.inc.php';
|
2016-02-29 13:23:42 +00:00
|
|
|
echo '</div>';
|
|
|
|
echo '</div>';
|
|
|
|
echo '</div>';
|
2011-10-02 09:41:55 +00:00
|
|
|
}
|