Graphing with MRTG something other than active leases?
Niall O'Reilly
Niall.oReilly at ucd.ie
Mon Oct 13 09:32:49 UTC 2008
On Fri, 10 Oct 2008 15:40:04 +0100, Jerimiah Cole <jcole at tbtc.net> wrote:
> Why not just:
> grep DISCOVER /var/log/dhcp.log | wc -l
> I think MRTG is smart enough to realize when the log rotates and the
> count plummets.
This approach involves counting the start of the log repeatedly.
I've not done what the OP is asking about.
A colleague who extracts other data from logs recommends
the Perl module 'File::Tail'
<http://search.cpan.org/~mgrabnar/File-Tail-0.99.3/Tail.pm>.
It may be worth a look.
Niall O'Reilly
University College Dublin IT Services
More information about the dhcp-users
mailing list