aboutsummaryrefslogtreecommitdiffstats
path: root/vhost_bandwith
diff options
context:
space:
mode:
authorlookshe <github@lookshe.org>2015-02-04 10:42:48 +0100
committerlookshe <github@lookshe.org>2015-02-04 10:42:48 +0100
commit24fa5575a55eeee509d5401c2ec266f52becbb9a (patch)
tree8b7299da7cf6c98ec9b71e846306394c0d2cb98c /vhost_bandwith
parent6a9971094a116d3d2fd636a4fa305214e4fa1f74 (diff)
AREA and STACK looks much better in graphHEADmaster
Diffstat (limited to 'vhost_bandwith')
-rw-r--r--vhost_bandwith8
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);
}