[PLUG] time based grep

Kris krisa at subtend.net
Wed Oct 12 17:51:35 UTC 2005


My goal is to write a nagios plugin which grep's the last 
30 minutes of /var/log/dhcp.log for "no free leases".

Currently I'm seeing no easy way to do this without much script-fu.  Anyone 
have a trick for this?  My other option is to set log rotation to 30 
minutes and have a lot of logfiles.

-- 
I'm just a packet pusher.



More information about the PLUG mailing list