afcc2144d3
- transition from BBHOME etc to XYMONHOME etc needed to also happen in files/xymon.sh - vmstat on NetBSD has not shown 3 disks in a while already, so vmstat trending for NetBSD clients was off. The disk names that remain are left unchanged since for existing rrds a change would cause failing data submission
27 lines
697 B
C
27 lines
697 B
C
$NetBSD: patch-xymond_rrd_do__vmstat.c,v 1.1 2011/11/16 21:12:35 spz Exp $
|
|
|
|
at least NetBSD 4-5.99 vmstat gives you two disks if you don't specify any,
|
|
no matter how many you actually have
|
|
|
|
--- xymond/rrd/do_vmstat.c.orig 2011-07-31 21:01:52.000000000 +0000
|
|
+++ xymond/rrd/do_vmstat.c
|
|
@@ -154,13 +154,12 @@ static vmstat_layout_t vmstat_netbsd_lay
|
|
{ 10, "sr" },
|
|
{ 11, "dsk_f0" },
|
|
{ 12, "dsk_m0" },
|
|
- { 13, "dsk_w0" },
|
|
- { 14, "cpu_int" },
|
|
- { 15, "cpu_syc" },
|
|
- { 16, "cpu_csw" },
|
|
- { 17, "cpu_usr" },
|
|
- { 18, "cpu_sys" },
|
|
- { 19, "cpu_idl" },
|
|
+ { 13, "cpu_int" },
|
|
+ { 14, "cpu_syc" },
|
|
+ { 15, "cpu_csw" },
|
|
+ { 16, "cpu_usr" },
|
|
+ { 17, "cpu_sys" },
|
|
+ { 18, "cpu_idl" },
|
|
{ -1, NULL }
|
|
};
|
|
|