[rrd-users] Re: "Import" Checkpoint Logs

Aaron Bush abush at microcenter.com
Mon Mar 11 18:52:15 MET 2002


Dan McGinn-Combs wrote:

> As anyone ever done a script (of any kind -- I'm not particular) which will
> suck in the following and spit out something RRDTool can eat?
> 
> "6"  "27Feb2002"  "23:56:48"  "hme1"  "208.148.140.101"  "log"  "drop"
> "45370"
> "261"  "27Feb2002"  "23:56:52"  "hme1"  "208.148.140.101"  "log"  "drop"
> "1262"
> 

On linux (part of GNU sh-utils) the date command will allow you to do
this:

date -d "27Feb2002 23:56:48" +%s
and results in 1014872208

I'm sure there is some nifty ways to do this in perl of course but the
above may be easier to understand.

-ab

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list