From owner-freebsd-questions@FreeBSD.ORG Wed Feb 23 10:53:58 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB45116A4CE for ; Wed, 23 Feb 2005 10:53:58 +0000 (GMT) Received: from t-x.dignus.nl (t-x.dignus.nl [83.219.88.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3331143D39 for ; Wed, 23 Feb 2005 10:53:58 +0000 (GMT) (envelope-from colin@kenmore.kozy-kabin.nl) Received: from localhost (localhost.dignus.nl [127.0.0.1]) by t-x.dignus.nl (Safehouse) with ESMTP id 0C2042841E for ; Wed, 23 Feb 2005 11:54:24 +0100 (CET) Received: from kenmore.kozy-kabin.nl (cjr-home [62.251.72.148]) by t-x.dignus.nl (Safehouse) with ESMTP id 91E1D2841C for ; Wed, 23 Feb 2005 11:54:17 +0100 (CET) Received: from kenmore.kozy-kabin.nl (localhost.kozy-kabin.nl [127.0.0.1]) by kenmore.kozy-kabin.nl (Postfix) with ESMTP id 19296654C for ; Wed, 23 Feb 2005 11:53:50 +0100 (CET) Received: from localhost (colin@localhost)j1NArnaq009632 for ; Wed, 23 Feb 2005 11:53:50 +0100 (CET) (envelope-from colin@kenmore.kozy-kabin.nl) Date: Wed, 23 Feb 2005 11:53:49 +0100 From: "Colin J. Raven" To: FreeBSD Questions Message-ID: <20050223110400.D1023@kenmore.kozy-kabin.nl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by RemSPAMd at ph230.plushosting.nl Subject: --memory/uptime stats shell script? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Feb 2005 10:53:58 -0000 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