1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-23 06:35:42 +00:00

error correcting

This commit is contained in:
Jo Hartmann 2011-04-28 10:11:42 +02:00 committed by Steve Schnepp
parent 364087556e
commit af4a386b98

View file

@ -11,6 +11,12 @@
# [multi_http_responsetime] # [multi_http_responsetime]
# user root # user root
# Jo Hartmann (Version 08-0912) # Jo Hartmann (Version 08-0912)
#
# Now working under munin 1.4.5
# Jo Hartmann (Version 11-0426)
use Sys::Hostname; use Sys::Hostname;
use Time::HiRes qw( time ); use Time::HiRes qw( time );
@ -21,7 +27,7 @@ push(@url_array, "http://www.google.de");
push(@url_array, "http://www.t-online.de"); push(@url_array, "http://www.t-online.de");
push(@url_array, "http://www.telekom.de"); push(@url_array, "http://www.telekom.de");
push(@url_array, "http://www.ebay.de"); push(@url_array, "http://www.ebay.de");
push(@url_array, "http://www.tus-vahrenwald.de/verein/images"); push(@url_array, "http://www.tus-vahrenwald.de");
$host = "localhost"; $host = "localhost";
$comment = "HTTP-Ladezeiten von Web-Seiten"; $comment = "HTTP-Ladezeiten von Web-Seiten";
#$host = hostname; #$host = hostname;
@ -80,7 +86,7 @@ if ($ARGV[0] && $ARGV[0] eq "autoconf") {
print "yes\n"; print "yes\n";
} elsif ($ARGV[0] && $ARGV[0] eq "config") { } elsif ($ARGV[0] && $ARGV[0] eq "config") {
if ($comment) { if ($comment) {
print "$comment\n"; print "graph_title $comment\n";
} else { } else {
print "graph_title HTTP response time \n"; print "graph_title HTTP response time \n";
} }