mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
change gauge to counter. this requires new injection script.
git-svn-id: http://www.observium.org/svn/observer/trunk@2637 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -5,8 +5,8 @@ include("includes/graphs/common.inc.php");
|
||||
$scale_min = 0;
|
||||
$colours = "mixed";
|
||||
$nototal = (($width < 550) ? 1 : 0);
|
||||
$unit_text = "Messages";
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mailscanner-" . $app['app_id'] . ".rrd";
|
||||
$unit_text = "Messages/sec";
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mailscannerV2-" . $app['app_id'] . ".rrd";
|
||||
$array = array(
|
||||
'msg_rejected' => array('descr' => 'Rejected'),
|
||||
'msg_relay' => array('descr' => 'Relayed'),
|
||||
|
||||
@@ -6,7 +6,7 @@ $ds_in = "msg_recv";
|
||||
$ds_out = "msg_sent";
|
||||
|
||||
$graph_titel .= "::messages";
|
||||
$unit_text = "Messages";
|
||||
$unit_text = "Messages/sec";
|
||||
|
||||
$colour_line_in = "008800FF";
|
||||
$colour_line_out = "000088FF";
|
||||
@@ -15,7 +15,7 @@ $colour_area_out = "CECEFF66";
|
||||
$colour_area_in_max = "CC88CC";
|
||||
$colour_area_out_max = "FFEFAA";
|
||||
|
||||
$mailscanner_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mailscanner-" . $app['app_id'] . ".rrd";
|
||||
$mailscanner_rrd = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mailscannerV2-" . $app['app_id'] . ".rrd";
|
||||
|
||||
if (is_file($mailscanner_rrd))
|
||||
{
|
||||
|
||||
@@ -4,8 +4,8 @@ include("includes/graphs/common.inc.php");
|
||||
|
||||
$scale_min = 0;
|
||||
$nototal = (($width < 550) ? 1 : 0);
|
||||
$unit_text = "Messages";
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mailscanner-" . $app['app_id'] . ".rrd";
|
||||
$unit_text = "Messages/sec";
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mailscannerV2-" . $app['app_id'] . ".rrd";
|
||||
$array = array(
|
||||
'spam' => array('descr' => 'Spam', 'colour' => 'FF8800'),
|
||||
'virus' => array('descr' => 'Virus', 'colour' => 'FF0000')
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
## Polls MailScanner statistics from script via SNMP
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mailscanner-" . $app['app_id'] . ".rrd";
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/app-mailscannerV2-" . $app['app_id'] . ".rrd";
|
||||
$options = "-O qv";
|
||||
$oid = "nsExtendOutputFull.11.109.97.105.108.115.99.97.110.110.101.114";
|
||||
|
||||
@@ -15,13 +15,13 @@ list ($msg_recv, $msg_rejected, $msg_relay, $msg_sent, $msg_waiting, $spam, $vir
|
||||
if (!is_file($rrd_filename))
|
||||
{
|
||||
rrdtool_create($rrd_filename, "--step 300 \
|
||||
DS:msg_recv:GAUGE:600:0:125000000000 \
|
||||
DS:msg_rejected:GAUGE:600:0:125000000000 \
|
||||
DS:msg_relay:GAUGE:600:0:125000000000 \
|
||||
DS:msg_sent:GAUGE:600:0:125000000000 \
|
||||
DS:msg_waiting:GAUGE:600:0:125000000000 \
|
||||
DS:spam:GAUGE:600:0:125000000000 \
|
||||
DS:virus:GAUGE:600:0:125000000000 \
|
||||
DS:msg_recv:COUNTER:600:0:125000000000 \
|
||||
DS:msg_rejected:COUNTER:600:0:125000000000 \
|
||||
DS:msg_relay:COUNTER:600:0:125000000000 \
|
||||
DS:msg_sent:COUNTER:600:0:125000000000 \
|
||||
DS:msg_waiting:COUNTER:600:0:125000000000 \
|
||||
DS:spam:COUNTER:600:0:125000000000 \
|
||||
DS:virus:COUNTER:600:0:125000000000 \
|
||||
RRA:AVERAGE:0.5:1:600 \
|
||||
RRA:AVERAGE:0.5:6:700 \
|
||||
RRA:AVERAGE:0.5:24:775 \
|
||||
|
||||
@@ -70,6 +70,6 @@
|
||||
}
|
||||
|
||||
doSNMPv2($mailstats);
|
||||
clearStats($mailstats);
|
||||
//clearStats($mailstats);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user