Hello, I'm rather new to rrdtool, so please bear with me. I'm using a perl script to tail my postfix logs and count email in four conditions. 1. connection attempts 2. rejected attempts 3. received email (accepted) 4. sent email I have four simple text files populated, with a perl wrapper around rrdtool to add to the database. I'm creating the rrd like so /usr/local/bin/rrdtool create mailqueue.rrd \ --start N --step 300 \ DS:incoming:COUNTER:600:U:U \ DS:received:COUNTER:600:U:U \ DS:rejected:COUNTER:600:U:U \ DS:sent:COUNTER:600:U:U \ RRA:LAST:0.5:1:288 \ RRA:AVERAGE:0.5:12:2016 Adding to it like so Calling rrdtool update with: N:4155:1976:2316:134, for example. Then, I make a graph, plotting the four lines against time. /usr/local/bin/rrdtool graph mailqueue_daily.png -a PNG \ --title="Postfix Mailqueue (24 hrs)" \ --vertical-label="Email rate (email/hr)" \ --start $one_day_ago --end $now \ 'DEF:myincoming=mailqueue.rrd:incoming:AVERAGE' \ 'DEF:myreceived=mailqueue.rrd:received:AVERAGE' \ 'DEF:myrejected=mailqueue.rrd:rejected:AVERAGE' \ 'DEF:mysent=mailqueue.rrd:sent:AVERAGE' \ 'CDEF:incoming_perhour=myincoming,12,*' \ 'CDEF:received_perhour=myreceived,12,*' \ 'CDEF:rejected_perhour=myrejected,12,*' \ 'CDEF:sent_perhour=mysent,12,*' \ 'LINE1:incoming_perhour#ff0000:Incoming' \ 'LINE1:received_perhour#0400ff:Received' \ 'LINE1:received_perhour#cccccc:Rejected' \ 'LINE1:received_perhour#35b73d:Sent' # 'GPRINT:myincoming:LAST:Incoming mail\: %2.0lf' \ # 'GPRINT:myreceived:LAST:Received mail\: %2.0lf\j' \ # 'GPRINT:myrejected:LAST:Rejected mail\: %2.0lf' \ # 'GPRINT:mysent:LAST:Sent mail\: %2.0lf\j' The GPRINT lines are commented-out because they did not produce nice output in the graph, they overwrote sections of the legend for some reason. Some insight into that would be nice, but my main issue is that I'm only seeing two lines, incoming and sent. The lines look odd, like square waves instead of curves. Not sure why. Now, I'm betting that my CDEFs are wrong, but I'm not sure of the units. I've made the values COUNTERs, so the rate of change over the time interval (5 minutes) should be used, right? So, if the value is 1, that's 1 email/5min, so if I multiply by 12, that's a rate of 12 email/hr. Or am I way off? Some insight into why I'm only seeing two lines would be helpful. Perhaps their rate of change is simply too low? Thanks, Mike -- Michael P. Soulier "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." --Albert Einstein -- Binary/unsupported file stripped by Ecartis -- -- Err : No filename to use for decode, file stripped. -- Type: application/pgp-signature -- Unsubscribe mailto:rrd-users-request@list.ee.ethz.ch?subject=unsubscribe Help mailto:rrd-users-request@list.ee.ethz.ch?subject=help Archive http://lists.ee.ethz.ch/rrd-users WebAdmin http://lists.ee.ethz.ch/lsg2.cgi