Xymon Mailing List Archive search

Hobbit Client for SCO

list Trent Melcher
Tue, 28 Aug 2007 11:15:06 -0500
Message-Id: <1188317706.22750.38.camel@tmelcher2>

Ignore my last post,  I think I found it.

In hobbitd/rrd/do_netstat.c

I think these 2 should be reversed -  see below
        "^[\t ]*([0-9]+) data packets \\(([0-9]+) bytes\\)$",
        "^[\t ]*([0-9]+) data packets \\(([0-9]+) bytes\\) retransmitted

That way they match the correct pickdata subroutine.


do_netstat.c lines 88-95

              case AT_TCP:
  if (pickdata(datapart, pcreset[0],  0, &tcpretranspackets,
&tcpretransbytes)||
      pickdata(datapart, pcreset[1],  0, &tcpoutdatapackets,
&tcpoutdatabytes)   ||
      pickdata(datapart, pcreset[2],  0, &tcpinorderpackets,
&tcpinorderbytes)   ||
      pickdata(datapart, pcreset[3],  0, &tcpoutorderpackets,
&tcpoutorderbytes) ||
      pickdata(datapart, pcreset[4],  0, &tcpconnrequests) ||
      pickdata(datapart, pcreset[5],  0, &tcpconnaccepts)) havedata++;
                                break;

do_netstat.c lines 140-154
static const char *netstat_sco_sv_exprs[] = {
        /* TCP patterns */
        "^[\t ]*([0-9]+) data packets \\(([0-9]+) bytes\\)$",
        "^[\t ]*([0-9]+) data packets \\(([0-9]+) bytes\\) retransmitted
$",
        "^[\t ]*([0-9]+) packets \\(([0-9]+) bytes\\) received
in-sequence$",
        "^[\t ]*([0-9]+) out-of-order packets \\(([0-9]+) bytes\\)$",
        "^[\t ]*([0-9]+) connection requests$",
        "^[\t ]*([0-9]+) connection accepts$",
        /* UDP patterns */
        "^[\t ]*([0-9]+) incomplete headers$",
        "^[\t ]*([0-9]+) bad data length fields$",
        "^[\t ]*([0-9]+) bad checksums$"
        "^[\t ]*([0-9]+) input packets delivered$",
        "^[\t ]*([0-9]+) packets sent$"
};

Trent

On Thu, 2007-08-23 at 17:41 +0200, Charles Goyard wrote:
Trent Melcher wrote :
Thanks, installed and working.  Did you make any modifications to get
the memory to report correctly?

My memory isnt reporting correctly, here is the info sent from the
client to the hobbit server.
It seems you lack /etc/memsize. I just put it for you on the same web
site (http://charles.goyard.free.fr/hobbit/)

Here are the modes :
-r-xr-xr-x   1 root     bin 		memsize


I'm somehow surprised someone else still has SCO :)