mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-21 18:41:03 +00:00
Fix geowebcache-blankitems
This commit is contained in:
parent
5a37346602
commit
46f383f92c
1 changed files with 5 additions and 5 deletions
|
@ -1,10 +1,10 @@
|
|||
#!/usr/bin/perl
|
||||
# -*- perl -*-
|
||||
|
||||
# Author Rodolphe Quiédeville <rodolphe@quiedeville.org>
|
||||
# Author Rodolphe Quiédeville <rodolphe@quiedeville.org>
|
||||
# Licence : GPLv2
|
||||
# Code based on tomcat_volume plugin by
|
||||
# Rune Nordbøe Skillingstad <runesk@linpro.no>
|
||||
# Rune Nordbøe Skillingstad <runesk@linpro.no>
|
||||
|
||||
=head1 NAME
|
||||
|
||||
|
@ -41,7 +41,7 @@ HTTP port numbers
|
|||
|
||||
=head1 AUTHOR
|
||||
|
||||
Rodolphe Quiédeville <rodolphe@quiedeville.org>
|
||||
Rodolphe Quiédeville <rodolphe@quiedeville.org>
|
||||
|
||||
=head1 USAGE
|
||||
|
||||
|
@ -112,11 +112,11 @@ if(exists $ARGV[0] and $ARGV[0] eq "config") {
|
|||
my $ua = LWP::UserAgent->new(timeout => $TIMEOUT);
|
||||
my $response = $ua->request(HTTP::Request->new('GET',$url));
|
||||
|
||||
if ($response->content =~ '<tr><td colspan="2">Blank/KML/HTML:</td><td colspan="3">(\d+\.?\d+)% of requests</td></tr>') {
|
||||
if ($response->content =~ '<tr><th colspan="2" scope="row">Blank/KML/HTML:</th><td colspan="3">(\d+\.?\d+)% of requests</td></tr>') {
|
||||
my $value = $1;
|
||||
$value = $value * 1024 if ($2 eq 'k');
|
||||
$value = $value * 1024 * 1024 if ($2 eq 'm');
|
||||
print "blank.value " . $value;
|
||||
print "blank.value " . $value . "\n";
|
||||
} else {
|
||||
print "blank.value U\n";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue