NetBSD Problem Report #60876

From www@netbsd.org  Wed Oct 14 13:25:25 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id E07681A923B
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 14 Oct 2026 13:25:24 +0000 (UTC)
Message-Id: <20261014132523.8B5BE1A923C@mollari.NetBSD.org>
Date: Wed, 14 Oct 2026 13:25:23 +0000 (UTC)
From: netbsd@lissners.de
Reply-To: netbsd@lissners.de
To: gnats-bugs@NetBSD.org
Subject: nunin-node reports  wrong names for plugin irqstats
X-Send-Pr-Version: www-1.0
X-From4GNATS: "netbsd@lissners.de via gnats" <gnats-admin@NetBSD.org>

>Number:         60876
>Category:       misc
>Synopsis:       nunin-node reports  wrong names for plugin irqstats
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 14 13:30:00 +0000 2026
>Originator:     Ekkehard
>Release:        netbsd11
>Organization:
>Environment:
NetBSD melone2 11.0 NetBSD 11.0 (GENERIC) #3: Wed Oct 14 10:32:25 CEST 2026  root@melone2:/usr/obj/sys/arch/i386/compile/GENERIC i386
>Description:
The munin-plugin "irqstats" reports wrong names.
It takes the first 24 chars of each row returned by "vmstat -i" and creates a name from that. 
Unfortunately those first 24 chars already contain the values that should be measured (at least at my machine, a PC-Engines Alix, running the i386-version).

As a result the client reports lots of new names back to the server and the server creates lots of new rrd-files.

(I used a patched kernel due to bug 60848, which belongs to the vr-network-code which should have no effect here)
>How-To-Repeat:

>Fix:
The following patch could be applied to /usr/pkg/lib/munin/plugins/irqstats

37,49d36
< intr_sources () {
<     /usr/bin/vmstat -i | awk '
< /^interrupt/ { next; }
< /^Total/ { next; }
< {
<     s=substr($0, 1, 24);
<     gsub(" *$", "", s);
<     gsub(" ", "_", s);
<     print s;
< }
< '
< }
< 
54a42,53
>     intr_sources () {
>         /usr/bin/vmstat -i | sort | awk '
>         /^interrupt/ { next; }
>         /^Total/ { next; }
>         {
>             s = "";
>             for (i = 1; i <= NF - 2; i++) s = s (i > 1 ? "_" : "") $i;
>             print s;
>         }
>         '
>         }
> 
79,81c78,79
<     s=substr($0, 1, 24);
<     gsub(" *$", "", s);
<     gsub(" ", "_", s);
---
>     s = "";
>     for (i = 1; i <= NF - 2; i++) s = s (i > 1 ? "_" : "") $i;

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.