Hi,
For a few months, net/munin CPU plugin is broken due to the
kern.clockrate sysctl change.
RRD files are correctly updated but the graphic generation task fails.
Here is a patch.
--
Olivier Cherrier
Phone: +352691570680
mailto:[email protected]
Index: net/munin/patches/patch-plugins_node_d_openbsd_cpu_in
===================================================================
RCS file:
/data/clients/openbsd-cvs/ports/net/munin/patches/patch-plugins_node_d_openbsd_cpu_in,v
retrieving revision 1.3
diff -u -r1.3 patch-plugins_node_d_openbsd_cpu_in
--- net/munin/patches/patch-plugins_node_d_openbsd_cpu_in 11 Sep 2018
12:36:31 -0000 1.3
+++ net/munin/patches/patch-plugins_node_d_openbsd_cpu_in 17 Mar 2021
22:05:25 -0000
@@ -12,7 +12,7 @@
- elif [ "$OSV" -ge "5" ]; then
- STATUNITS=`$SYSCTL_BIN -n kern.clockrate | cut -f13 -d' '`
- fi
-+ STATUNITS=`/sbin/sysctl -n kern.clockrate | cut -f15 -d' '`
++ STATUNITS=`/sbin/sysctl -n kern.clockrate | cut -f12 -d' '`
PERCENT=`$SYSCTL_BIN -n hw.ncpu | awk '{print ($1)*100}'`
NCPU=`$SYSCTL_BIN -n hw.ncpu`
if [ "$scaleto100" = yes ]; then