NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/60876: nunin-node reports wrong names for plugin irqstats



>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;




Home | Main Index | Thread Index | Old Index