diff options
Diffstat (limited to '')
-rw-r--r-- | vhost_bandwith | 8 |
1 files changed, 6 insertions, 2 deletions
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); } |