I am trying to create a rrdtool graph to track the amount of spam and
clean messages that pass through our spamassassin mail scanner. But I
can't seem to get the config correct. I have some shell scripts that do
all the counting, and they work just as they should when run manually.
However, when the data is added to the rrd and graphed, it seems to come
up short sometime. I have a single spam message and instead of the graph
displaying 1, it displays like .8. Am I doing something wrong?
Database:
rrdtool create foo.rrd \
--step 300 \
DS:clean:GAUGE:600:0:10000 \
DS:spam:GAUGE:600:0:10000 \
RRA:AVERAGE:0.5:1:600

And the graph:
rrdtool graph foo.png \
--imgformat=PNG \
--start="-86400" \
--title="Email Message Breakdown" \
--alt-autoscale-max \
--rigid \
--width=500 \
--height=150 \
--base=1000 \
--vertical-label="Messages" \
DEF:myclean=foo.rrd:clean:AVERAGE \
DEF:myspam=foo.rrd:spam:AVERAGE \
AREA:myclean#00FF00:"Clean" \
LINE2:myspam#FF0000:"Spam"

Any ideas? Thanks for the help.
-- 
:wq!

  Matthew Daubenspeck
  http://www.oddprocess.org

-- Binary/unsupported file stripped by Ecartis --
-- Err : No filename to use for decode, file stripped.
-- Type: application/pgp-signature


--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to