From 24fa5575a55eeee509d5401c2ec266f52becbb9a Mon Sep 17 00:00:00 2001 From: lookshe Date: Wed, 4 Feb 2015 10:42:48 +0100 Subject: AREA and STACK looks much better in graph --- vhost_bandwith | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'vhost_bandwith') diff --git a/vhost_bandwith b/vhost_bandwith index 420ee0f..66bbc54 100644 --- a/vhost_bandwith +++ b/vhost_bandwith @@ -27,13 +27,17 @@ if(defined($ARGV[0])) { exit(0); } elsif ($ARGV[0] eq 'config') { print "graph_title $server total bandwidth vhost\n"; - print "graph_total Total\n"; +# print "graph_total Total\n"; print "graph_vlabel Bits\n"; print "graph_category $server\n"; print "graph_info This graph show $server total bandwidth used by vhost.\n"; + my $draw = "AREA"; foreach my $vhostid (keys $logs) { print $vhostid.".label $logs->{$vhostid}{'label'}\n"; - print $vhostid.".type GAUGE\n"; + print $vhostid.".draw $draw\n"; + $draw = "STACK"; +# print $vhostid.".type DERIVE\n"; +# print $vhostid.".min 0\n"; } exit(0); } -- cgit v1.2.3