print "graph_args --base 1000 -l 0\n";
print "graph_vlabel mails / \${graph_period}\n";
print "graph_scale no\n";
- print "graph_total Total\n";
print "graph_category postfix\n";
print "graph_period minute\n";
print "messages.label messages\n";
if ( $ARGV[0] and $ARGV[0] eq "config" ) {
print "graph_title Postfix bytes throughput\n";
print "graph_args --base 1000 -l 0\n";
- print "graph_vlabel bytes / \${graph_period}\n";
print "graph_scale yes\n";
print "graph_category postfix\n";
+ print "graph_vlabel bytes / \${graph_period}\n";
+ print "graph_period minute\n";
print "volume.label delivered volume\n";
print "volume.type DERIVE\n";
print "volume.min 0\n";
($pos, $volume_delivered, $serialized_volumes_queue) = restore_state();
-if (!defined($volume_delivered)) {
+if (!defined($volume_delivered) || !defined($pos) || $pos eq 0) { # they could be defined but 0 if the old plugin was run
# No state file present. Avoid startup spike: Do not read log
# file up to now, but remember how large it is now, and next