1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Category Tree: Reduce number of categories

This commit is contained in:
dipohl 2017-02-21 15:09:54 +01:00
parent bb64fcbc55
commit 62560fae23
11 changed files with 43 additions and 24 deletions

View file

@ -93,7 +93,6 @@ my $debug=0;
my $timeout=10;
my $max_redirects=10;
my $scriptname="http_load_";
my $category="network"; # The munin graph category
my $useragent="Mozilla/5.0";
# Function to read the $url_file and return the contents in a hash
@ -361,7 +360,7 @@ if($ARGV[0] and $ARGV[0] eq "autoconf") {
print "graph_title $urls{$id} ${type}\n";
print "graph_args -l 0 --base 1000\n";
print "graph_category " . $category . "\n";
print "graph_category webserver\n";
$debug && print "Reading cache file\n";
my $cachefile=$cachedir . "/" . &get_cache_file_name($scriptname,$id,$type);
my %cache=read_cache($cachefile);

View file

@ -110,7 +110,7 @@ if ( defined $ARGV[0] and $ARGV[0] eq "config" )
print "graph_title HTTP(S) Request response times\n";
print "graph_args --base 1000\n";
print "graph_vlabel response time in ms\n";
print "graph_category other\n";
print "graph_category webserver\n";
my @go;
foreach my $name (keys %URLS) {
@ -130,7 +130,7 @@ if ( defined $ARGV[0] and $ARGV[0] eq "config" )
print "graph_title $$url{'url'}\n";
print "graph_args --base 1000\n";
print "graph_vlabel response time in ms\n";
print "graph_category other\n";
print "graph_category webserver\n";
print "$name.label $$url{'label'}\n";
print "$name.info The response time of a single request\n";
print "$name.min 0\n";