2010/10/14 Anton Maksimenkov <anton...@gmail.com>:
> I used symon on my servers (4.5, 4.7, current) and one symux. symux
> runs on -current.
> As you can see, there is "io" from core (4.7), but no "io" from db1
> (current) and no "io" from mx (current, running symux).

This is a simple patch which resolves my problem:

# cat /usr/ports/sysutils/symon/patches/patch-platform_OpenBSD_sm_io_c

               $OpenBSD$
--- platform/OpenBSD/sm_io.c.orig       Fri Oct 15 13:48:47 2010
+++ platform/OpenBSD/sm_io.c    Fri Oct 15 13:49:15 2010
@@ -147,7 +147,7 @@ get_io(char *symon_buf, int maxlen, struct stream *st)
     /* look for disk */
     for (i = 0; i <= io_dks; i++) {
         if (strncmp(io_dknames[i], st->arg,
-                    (io_dkstr + io_maxstr - io_dknames[i])) == 0)
+                    strlen(st->arg)) == 0)
 #ifdef HAS_IO2
             return snpack(symon_buf, maxlen, st->arg, MT_IO2,
                           io_dkstats[i].ds_rxfer,

-- 
antonvm

Reply via email to