]> TLD Linux GIT Repositories - packages/munin-plugins-contrib.git/blob - munin-plugins-contrib-apache.patch
- updated, master branch at 20230307
[packages/munin-plugins-contrib.git] / munin-plugins-contrib-apache.patch
1 --- munin-plugins/plugins/apache/apache_watch_~ 2008-11-30 01:59:30.000000000 +0100
2 +++ munin-plugins/plugins/apache/apache_watch_  2009-04-26 20:30:15.107587925 +0200
3 @@ -95,7 +95,7 @@
4    print "graph_vlabel activity\n";
5    my $i = 0;
6    foreach my $server (sort (@servers)) {
7 -    (my $txtserver = $server) =~ s/(-|\.)/\_/g;
8 +    (my $txtserver = $server) =~ s/(-|\.|:|\\)/\_/g;
9      my $draw = ($i==0) ? 'AREA' : 'STACK';
10      if ($action eq "bytes") {
11        print "${txtserver}.label $server\n";
12 @@ -114,7 +114,7 @@
13  foreach my $string (sort (@data)) {
14    my ($server, $ifInOctets, $ifOutOctets, $ifRequests, $ifDocuments) =
15      split (/\s/, $string);
16 -  (my $txtserver = $server) =~ s/(-|\.)/\_/g;
17 +  (my $txtserver = $server) =~ s/(-|\.|:|\\)/\_/g;
18    if ($action eq "documents") {
19      print "${txtserver}.value $ifDocuments\n";
20    } elsif ($action eq "requests") {