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:
Adam Amstrong
2011-10-02 23:40:27 +00:00
parent 38a6ea38bd
commit 95bc8e3eef
5 changed files with 15 additions and 15 deletions
@@ -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 \