[hobbit] Hobbit client - FreeBSD 7
Levin, Alexandre
alevin at reveredata.com
Mon Mar 24 23:31:09 CET 2008
Am I correct that you see only part of the vmstat trends ?
I can guess where the problem is:
According to the "do_vmstat.c" the vmstat layout used for FreeBSD is:
/* This one matches FreeBSD 4.10 */
/* LARRD 0.43c compatible */
static vmstat_layout_t vmstat_freebsd_layout[] = {
{ 0, "cpu_r" },
{ 1, "cpu_b" },
{ 2, "cpu_w" },
{ 3, "mem_avm" },
{ 4, "mem_free" },
{ 5, "mem_flt" },
{ 6, "mem_re" },
{ 7, "mem_pi" },
{ 8, "mem_po" },
{ 9, "mem_fr" },
{ 10, "sr" },
{ 11, "dsk_da0" },
{ 12, "dsk_fd0" },
{ 13, "cpu_int" },
{ 15, "cpu_csw" },
{ 16, "cpu_sys" },
{ 17, "cpu_usr" },
{ 18, "cpu_idl" },
{ -1, NULL }
};
But vmstat output (in FreeBSD versions 4,5,6,7) is:
procs memory page disks faults cpu
r b w avm fre flt re pi po fr sr da0 da1 in sy cs us sy
id
where "disks" part depends on the number of disks in the system (1 or 2
in case of running vmstat without -n parameter)
probably an alternative could be run "vmstat -n 1" (limit vmstat to the
single drive ) and change vmstat_freebsd_layout to:
static vmstat_layout_t vmstat_freebsd_layout[] = {
{ 0, "cpu_r" },
{ 1, "cpu_b" },
{ 2, "cpu_w" },
{ 3, "mem_avm" },
{ 4, "mem_free" },
{ 5, "mem_flt" },
{ 6, "mem_re" },
{ 7, "mem_pi" },
{ 8, "mem_po" },
{ 9, "mem_fr" },
{ 10, "mem_sr" },
{ 11, "dsk_0" },
{ 12, "f_in" },
{ 13, "f_sy" },
{ 15, "f_cs" },
{ 16, "cpu_usr" },
{ 17, "cpu_sys" },
{ 18, "cpu_idl" },
{ -1, NULL }
};
__________________________________
Alexandre Levin
> -----Original Message-----
> From: s_aiello at comcast.net [mailto:s_aiello at comcast.net]
> Sent: Monday, March 24, 2008 7:24 AM
> To: hobbit at hswn.dk
> Subject: Re: [hobbit] Hobbit client - FreeBSD 7
>
> On Friday 21 March 2008, s_aiello at comcast.net wrote:
> > On Thursday 20 March 2008, Henrik Stoerner wrote:
> > > On Thu, Mar 20, 2008 at 09:53:18AM -0400,
> s_aiello at comcast.net wrote:
> > > > I have been requested recently to install FreeBSD
clients.
> Version is:
> > > > 7.0-RELEASE FreeBSD 7.0-RELEASE #0. I have the client
> running, but see
> > > > some issues with the trends. Disk & Memory trends are
> missing. Vmstat
> > > > trends graph data incorrectly, since it expects the
vmstat
> data in a
> > > > different order.
> > >
> > > Could you post the contents of the client data -
> specifically, the
> > > "meminfo", "swapinfo" and "vmstat" sections ?
> > >
> > >
> >
> > I attached the client data to this email. Also a correction
to
> my earlier
> > post, I am missing most of the trend graphs. The ones that
are
> created are;
> > vmstat, netstat, ifstat.
> >
> Think I found my issue. the hostname was causing the lack of
> those graphs.
> hostanme was in caps and had an underscore, i.e.
> COOL_SERVER.domain.com. So I
> forced the client to be coolserver.domain.com.
>
> The vmstat issue is still outstanding since the order of the
> fields is not
> what hobbit expects.
>
> ~Steve
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
More information about the Xymon
mailing list