Package: munin-node
Version: 1.2.6-5
Severity: normal
Tags: patch

When activating the plugins tomcat_access, tomcat_threads and
tomcat_volume, they don't report any values for graphing.

That happens because the script expects the following XML structure in
the status output:

<connector><http80><requestInfo><requestCount>

when in fact on my systems (seens this on three) it is

<connector><http-80><requestInfo><requestCount>

Note the dash to separate http and the real port number.

--- tomcat_access.debian        2008-09-27 08:13:57.000000000 +0200
+++ tomcat_access       2008-09-27 08:13:32.000000000 +0200
@@ -86,8 +86,8 @@
 my $response = $ua->request(HTTP::Request->new('GET',$url));
 my $xml = $xs->XMLin($response->content);

-if($xml->{'connector'}->{'http'.$PORT}->{'requestInfo'}->{'requestCount'}) {
-    print "accesses.value " . 
$xml->{'connector'}->{'http'.$PORT}->{'requestInfo'}->{'requestCount'} . "\n";
+if($xml->{'connector'}->{'http-'.$PORT}->{'requestInfo'}->{'requestCount'}) {
+    print "accesses.value " . 
$xml->{'connector'}->{'http-'.$PORT}->{'requestInfo'}->{'requestCount'} . "\n";
 } else {
     print "accesses.value U\n";
 }


This applies to all the mentioned scripts above. tomcat_jvm isn't
affects because it doesn't use the port for any metrics.

The installed tomcat version is:

ii  tomcat5.5           5.5.26-3            Servlet and JSP engine
ii  tomcat5.5-admin     5.5.26-3            Java Servlet engine -- admin..
ii  tomcat5.5-webapps   5.5.26-3            Java Servlet engine -- 
documentation..


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.22.19-vs2.2.0.7-netdoktor3-nd-vserv-bigmem4 (SMP w/4 CPU 
cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages munin-node depends on:
ii  adduser                 3.108            add and remove users and groups
ii  gawk                    1:3.1.5.dfsg-4.1 GNU awk, a pattern scanning and pr
ii  libnet-server-perl      0.97-1           An extensible, general perl server
ii  lsb-base                3.2-12           Linux Standard Base 3.2 init scrip
ii  perl                    5.10.0-11        Larry Wall's Practical Extraction 
ii  procps                  1:3.2.7-8        /proc file system utilities

Versions of packages munin-node recommends:
ii  libnet-snmp-perl              5.2.0-1    Script SNMP connections

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to