Changeset 94
- Timestamp:
- 02/03/04 18:17:25 (8 years ago)
- Files:
-
- trunk/ChangeLog (modified) (1 diff, 1 prop)
- trunk/node/node.d/apache_accesses.in (modified) (3 diffs, 1 prop)
- trunk/node/node.d/apache_processes.in (modified) (3 diffs, 1 prop)
- trunk/node/node.d/apache_volume.in (modified) (4 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ChangeLog
- Property cvs2svn:cvs-rev changed from 1.38 to 1.39
r92 r94 13 13 * Fixed bug in munin-graph where it caused a flood of cron-mail. 14 14 * Linux/iostat now shows only disks also on machines without devfs. 15 * Generic/apache-plugins have been modified to properly to report the 16 correct autoconf value. Also, bugfixes in _processes and _volume. 15 17 16 18 munin (1.0.0pre2) trunk/node/node.d/apache_accesses.in
- Property cvs2svn:cvs-rev changed from 1.2 to 1.3
r34 r94 7 7 # - Needs access to http://localhost/server-status?auto (or modify the 8 8 # address for another host). See your apache documentation on how to 9 # set up this url in your httpd.conf. 9 # set up this url in your httpd.conf. Apache needs ExtendedStatus 10 # enabled for this plugin to work 10 11 # 11 12 # Tip: To see if it's already set up correctly, just run this plugin … … 24 25 # 25 26 # $Log$ 27 # Revision 1.3 2004/02/03 17:17:25 jimmyo 28 # Generic/apache-plugins have been modified to properly to report the correct autoconf value. Also, bugfixes in _processes and _volume. 29 # 26 30 # Revision 1.2 2004/01/29 18:47:30 jimmyo 27 31 # Made plugins apache_* compatible with older versions of LWP::UserAgent (SF#881411). … … 69 73 my $url = sprintf $URL, $port; 70 74 my $response = $ua->request(HTTP::Request->new('GET',$url)); 71 push @badports, $port unless $response->is_success and $response->content =~ / IdleServers/;75 push @badports, $port unless $response->is_success and $response->content =~ /^Total Accesses:/; 72 76 } 73 77 if (@badports) { 74 print "no (no apache server-status o n ports @badports)\n";78 print "no (no apache server-status or ExtendedStatus missing on ports @badports)\n"; 75 79 exit 1; 76 80 } else { trunk/node/node.d/apache_processes.in
- Property cvs2svn:cvs-rev changed from 1.3 to 1.4
r34 r94 24 24 # 25 25 # $Log$ 26 # Revision 1.4 2004/02/03 17:17:25 jimmyo 27 # Generic/apache-plugins have been modified to properly to report the correct autoconf value. Also, bugfixes in _processes and _volume. 28 # 26 29 # Revision 1.3 2004/01/29 18:47:30 jimmyo 27 30 # Made plugins apache_* compatible with older versions of LWP::UserAgent (SF#881411). … … 73 76 my $url = sprintf $URL, $port; 74 77 my $response = $ua->request(HTTP::Request->new('GET',$url)); 75 push @badports, $port unless $response->is_success and $response->content =~ /IdleServe 76 rs/; 78 push @badports, $port unless $response->is_success and $response->content =~ /Idle(?:Servers|Workers)/; 77 79 } 78 80 … … 120 122 my $url = sprintf $URL, $port; 121 123 my $response = $ua->request(HTTP::Request->new('GET',$url)); 122 if ($response->content =~ /^Busy Servers:\s+(.+)$/im) {124 if ($response->content =~ /^Busy(?:Servers|Workers):\s+(.+)$/im) { 123 125 print "busy$port.value $1\n"; 124 126 } else { 125 127 print "busy$port.value U\n"; 126 128 } 127 if ($response->content =~ /^Idle Servers:\s+(.+)$/im) {129 if ($response->content =~ /^Idle(?:Servers|Workers):\s+(.+)$/im) { 128 130 print "idle$port.value $1\n"; 129 131 } else { trunk/node/node.d/apache_volume.in
- Property cvs2svn:cvs-rev changed from 1.2 to 1.3
r34 r94 7 7 # - Needs access to http://localhost/server-status?auto (or modify the 8 8 # address for another host). See your apache documentation on how to 9 # set up this url in your httpd.conf. 9 # set up this url in your httpd.conf. Apache needs ExtendedStatus 10 # enabled for this plugin to work. 10 11 # 11 12 # Tip: To see if it's already set up correctly, just run this plugin … … 24 25 # 25 26 # $Log$ 27 # Revision 1.3 2004/02/03 17:17:25 jimmyo 28 # Generic/apache-plugins have been modified to properly to report the correct autoconf value. Also, bugfixes in _processes and _volume. 29 # 26 30 # Revision 1.2 2004/01/29 18:47:30 jimmyo 27 31 # Made plugins apache_* compatible with older versions of LWP::UserAgent (SF#881411). … … 68 72 my $url = sprintf $URL, $port; 69 73 my $response = $ua->request(HTTP::Request->new('GET',$url)); 70 push @badports, $port unless $response->is_success and $response->content =~ / IdleServers/;74 push @badports, $port unless $response->is_success and $response->content =~ /^Total Accesses:/; 71 75 } 72 76 if (@badports) { 73 print "no (no apache server-status o n ports @badports)\n";77 print "no (no apache server-status or ExtendedStatus missing on ports @badports)\n"; 74 78 exit 1; 75 79 } else { … … 96 100 my $url = sprintf $URL, $port; 97 101 my $response = $ua->request(HTTP::Request->new('GET',$url)); 98 if ($response->content =~ /^Total Accesses:\s+(.+)$/im) {99 print "volume$port.value $1\n";102 if ($response->content =~ /^Total kBytes:\s+(.+)$/im) { 103 print "volume$port.value ", ($1*1024), "\n"; 100 104 } else { 101 105 print "volume$port.value U\n";
