Date: Wed, 21 Nov 2001 11:37:55 +0100 From: Axel Scheepers <axel@axel.truedestiny.net> To: David Loszewski <stealth215@mediaone.net> Cc: freebsd-questions@freebsd.org Subject: Re: help with monitoring healthd with mrtg plz??? Message-ID: <20011121113755.C96032@mars.thuis> In-Reply-To: <001201c17156$27ab04d0$3000b1d8@sickness>; from stealth215@mediaone.net on Mon, Nov 19, 2001 at 06:58:55PM -0500 References: <001201c17156$27ab04d0$3000b1d8@sickness>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011121113755.C96032>