Bug#337320: munin-node: port_ plugin parsing of /proc/net/tcp6 is wrong

2006-02-06 Thread Tore Anderson
forwarded 337320 http://munin.projects.linpro.no/ticket/95
quit

* John Bäckstrand

 Parsing of /proc/net/tcp6 by the port_ plugin is broken, most 
 significant hex digit of port is stripped out.

  Hi, thanks for your report.  The issue is now forwarded upstream.

-- 
Tore Anderson




Bug#337320: munin-node: port_ plugin parsing of /proc/net/tcp6 is wrong

2005-11-03 Thread John Bäckstrand

Package: munin-node
Version: 1.2.3-3
Severity: normal

*** Please type your report below this line ***

Parsing of /proc/net/tcp6 by the port_ plugin is broken, most 
significant hex digit of port is stripped out.


One-liner fix attached.

Might be related to 2.6.14? Havent investigated, I have not used this 
plugin until now. It only affects high portnumbers (4095).


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages munin-node depends on:
ii  adduser   3.67.2 Add and remove users and groups
ii  libnet-server-perl0.87-3 An extensible, general perl 
server
ii  lsb-base  3.0-9  Linux Standard Base 3.0 
init scrip
ii  perl  5.8.7-7Larry Wall's Practical 
Extraction

ii  procps1:3.2.5-1  /proc file system utilities

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

-- no debconf information
Report will be sent to Debian Bug Tracking System [EMAIL PROTECTED]
--- port_   2005-11-03 21:59:35.0 +0100
+++ port_new2005-11-03 21:58:25.0 +0100
@@ -86,7 +86,7 @@
{
chomp;
next unless (hex (substr($_,83,2)) == 10);
-   my $p = substr( $_,40,4);
+   my $p = substr( $_,39,4);
if (defined $ports{hex($p)})
{
$ports{hex($p)}++;