Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Feb 2005 11:53:49 +0100
From:      "Colin J. Raven" <colin@kenmore.kozy-kabin.nl>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   --memory/uptime stats shell script?
Message-ID:  <20050223110400.D1023@kenmore.kozy-kabin.nl>

next in thread | raw e-mail | index | archive | help
I'm wondering if this even exists....here goes nothing: :)

A shell script, run from cron maybe that collects memory stats and 
uptime.
My boss wants to see something like this on one of our intranet pages 
(*plese* don't ask me why, I have no idea!) FreeBSD-5.3 STABLE is our 
current intranet machine OS.

I started hand rolling a script which grepped some of top output, but in 
order to make it meaningful there's a significant amount of regexp 
knowledge required to dump the output that is *not* needed. Regexps give 
me brain pain.

Googling showed a bunch of extremely nice looking graphical output php 
scripts, all of which (ironically) are overkill. This is just intended 
to be a small cell on a intranet page which shows uptime/load averages, 
and what top produces in terms of memory usage. An slightly modiefied 
and formatted version of my .sig I guess.

snmp is not running, otherwise I could prolly do something with that 
(it's not running for security reasons)...so my options as I see 'em now 
are somewhat limited.

Suggestions, guidance, advice, a kick in the rear...all would be 
appreciated! :-)

Regards,
-Colin
--
Colin J. Raven
FreeBSD 5.3-RELEASE - http://www.FreeBSD.org - There can be only One
Wed Feb 23 11:12:00 CET 2005
11:12AM  up 3 days, 18:22, 5 users, load averages: 0.00, 0.00, 0.00



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050223110400.D1023>