Files
librenms-librenms/html/includes/graphs/application/mailscanner_spam.inc.php
T

33 lines
992 B
PHP
Raw Normal View History

2011-10-02 22:34:22 +00:00
<?php
require 'includes/graphs/common.inc.php';
2011-10-02 22:34:22 +00:00
$scale_min = 0;
$nototal = (($width < 550) ? 1 : 0);
$unit_text = 'Messages/sec';
$rrd_filename = rrd_name($device['hostname'], array('app', 'mailscannerV2', $app['app_id']));
2011-10-02 22:34:22 +00:00
$array = array(
'spam' => array(
'descr' => 'Spam',
'colour' => 'FF8800',
),
'virus' => array(
'descr' => 'Virus',
'colour' => 'FF0000',
),
);
2011-10-02 22:34:22 +00:00
$i = 0;
2011-10-02 22:34:22 +00:00
if (rrdtool_check_rrd_exists($rrd_filename)) {
2017-02-24 15:22:15 +00:00
foreach ($array as $ds => $var) {
$rrd_list[$i]['filename'] = $rrd_filename;
2017-02-24 15:22:15 +00:00
$rrd_list[$i]['descr'] = $var['descr'];
$rrd_list[$i]['ds'] = $ds;
2017-02-24 15:22:15 +00:00
$rrd_list[$i]['colour'] = $var['colour'];
$i++;
}
2011-10-02 22:34:22 +00:00
}
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';