[hobbit] Hobbit Client for SCO

Trent Melcher trent.melcher at sitel.com
Tue Aug 28 18:15:06 CEST 2007


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 :)
> 



More information about the Xymon mailing list