Date: Thu, 07 Nov 2002 17:55:39 -0800 From: paul beard <pdb2@u.washington.edu> To: freebsd-questions@FreeBSD.ORG Subject: Re: monitoring CPU/mem etc without SNMP Message-ID: <3DCB199B.6030609@u.washington.edu> References: <20021107223025.39478.qmail@web10103.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
twig les wrote: > Hey all, after a bit of thinking and some looking thru > email archives I'm still stumped on a way to get CPU, > memory, disk I/O, disk use etc.... info from one > machine to another without using SNMP. All these > boxes are FreeBSD 4.7 Release. > > I'm sure I could rig a script to ssh into the boxes > and do a df -h etc. and write the info to a file but > my gut tells me there is a MUCH better solution that > someone with far better programming skills has already > come up with and stuck in the ports collection. Better idea: have a process on each box generate the data you want in a format you can parse easily, then have a collector fetch it from some high-numbered port you can secure with ACLs, router rules, etc. You can either code up a little server process with perl or python to listen on that port or simplest of all, just have the service (in [x]inetd.conf) cat the file upon request. -- Paul Beard / 8040 27th Ave NE / Seattle WA 98115 / paulbeard [at] mac [ dot] com / 206 529 8400 weblog @ <http://paulbeard.no-ip.org/movabletype/> I have more humility in my little finger than you have in your whole ____BODY! -- from "Cerebus" #82 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DCB199B.6030609>