From owner-freebsd-questions Wed Nov 21 2:38: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from axel.truedestiny.net (b76168.upc-b.chello.nl [212.83.76.168]) by hub.freebsd.org (Postfix) with ESMTP id 7B4CC37B405 for ; Wed, 21 Nov 2001 02:37:59 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by axel.truedestiny.net (Postfix) with ESMTP id 36B9249A24; Wed, 21 Nov 2001 11:37:58 +0100 (CET) Received: by axel.truedestiny.net (Postfix, from userid 1000) id A97F949A23; Wed, 21 Nov 2001 11:37:55 +0100 (CET) Date: Wed, 21 Nov 2001 11:37:55 +0100 From: Axel Scheepers To: David Loszewski Cc: freebsd-questions@freebsd.org Subject: Re: help with monitoring healthd with mrtg plz??? Message-ID: <20011121113755.C96032@mars.thuis> Reply-To: Axel Scheepers References: <001201c17156$27ab04d0$3000b1d8@sickness> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <001201c17156$27ab04d0$3000b1d8@sickness>; from stealth215@mediaone.net on Mon, Nov 19, 2001 at 06:58:55PM -0500 X-Virus-Scanned: by AMaViS perl-10 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Nov 19, 2001 at 06:58:55PM -0500, David Loszewski wrote: > Target[temp]: `/usr/local/bin/healthdc cat | /usr/bin/awk '/^/ {print > $2*10; print $3*10; print "a long time"; print $1}'` > so I put that in my mrtg.cfg, ran it and this is what I get: > > healthdc: cat: No address associated with hostname > WARNING: Could not get any data from external command > '/usr/local/bin/healthdc cat | /usr/bin/awk '/^/ {print $2*10; print > $3*10; print "a long time"; print $1}'' I think you should remove 'cat' in the above Target line, I don't use mrtg anymore (rrdtool is a bit better I think) so I don't know if this will work for mrtg. Try running the commands between `` in your shell to see the output. That extra cat in there makes no sense; there's no file to cat so it gives an error. The output of healthdc needs to be piped through awk, not through cat. Hope this helps, -- Axel Scheepers UNIX System Administrator email: axel@axel.truedestiny.net ascheepers@vianetworks.nl http://axel.truedestiny.net/~axel ------------------------------------------ Good leaders being scarce, following yourself is allowed. ------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message