Long Term Bandwidth Monitoring?

Discussion in 'Tomato Firmware' started by spicoli, Feb 23, 2009.

  1. spicoli

    spicoli LI Guru Member

    Self explanatory haha, I hate having it set to RAM as I usually forget to backup when I fiddle and reboot the router. I've read some pages on using JFFS2 (is that permanent?) and CIFS (never messed with samba or anything :c) with JFFS2 prolly being a more newbie friendly thing to do. Any suggestions/guides?
  2. Mastec

    Mastec Network Guru Member

    Save to a share folder every hour or so on your PC using CIFS. My bandwidth goes back to last October
  3. Planiwa

    Planiwa Network Guru Member

    Is anyone interested in long-term essential traffic recording? (Not "bandwidth").

    (MB/d, possibly by top 3 hosts, + upstream total -- i.e. 1 number or 8 numbers / day)

    Without having a host on the LAN.

    Possibilities --

    1. Router's NVRAM (e.g. JFFS2)
    2. The Modem (yes!) -- modem is less likely to crash
    3. A host on the Net
  4. mraneri

    mraneri Network Guru Member

    I have 10MB (woo hoo) of free webspace from my ISP. I upload the bandwidth every 6 hours to that webspace. No need for JFFS, and no need to have a server on in my house 24/7.

    See post 37 in this thread to see how I did it:

    Note: Initially I was backing up to my own FTP server. Then I realized I could just point to my ISP's webspace instead.
  5. spicoli

    spicoli LI Guru Member

    I'll look into that.

    Care to elaborate on how to do that?
  6. vibe666

    vibe666 Network Guru Member

    create a share on your PC somewhere handy. i call mine simply 'logs' and grant user permissions for it.

    in tomato in administration under 'cifs client' (cifs1 share) i have that share listed as \\server\logs (where server=name or ip of the server) with the login details below it.

    then (also in administration) under bandwidth monitoring, enable it and choose cifs1 as the save history location and save every hour as the frequency.

    i'm still trying to figure out how to have a shutdown script trigger a save job, but when i find it i'll let you know. just to make sure it doesn't miss any bandwidth off the saved file.

    when you reboot you'll lose the 'last 24 hours' graph data but it will all be logged in the weekly, monthly usage stats still.
  7. tmr250z

    tmr250z Network Guru Member

    vibe666, are you able to view more than 90 days worth of bandwidth history in the Bandwidth -> Daily section? I'm using Tomato 1.23 and once you reach 90 days of history in the Daily section, on the 91st day, the original 1st day of bandwidth history is removed in order to make room the current day. I only see 90 days, even though I think all the bandwidth history is still only being stored in the share.
  8. occamsrazor

    occamsrazor Network Guru Member

    I also can only see 90 days worth in the Daily and weekly sections.
    I have 17 months worth of data stored on CIFS (I can still see the monthly totals going back 17 months in the Monthly section).
  9. luckymother

    luckymother LI Guru Member

    Save the the bandwidth data to a share on a network drive, no need to leave a computer on. I have a WD 120 gig passport drive connected to an NSLU2. It saves the data from a WRT54GS to a share on the drive every hour. I've been doing this since June of 2007.

    You will wear out NVRAM if you constantly backup bandwidth data to it.
  10. bogderpirat

    bogderpirat Network Guru Member

    it's probably the best idea to store the bandwidth data onto something that is always accessible. since having a computer running out of standby 24/7 is quite expensive, the FTP solution is probably the best one.

    up until now i've done my collecting of bandwidth data to my computer, and have done that for 25 months. i have noticed however that apparently the logging is limited to those 25 months, as i still did have logs of january '07 last year. maybe jon could loosen those restrictions, at least configuration-wise.

    i'm going to take a look at mraneri's script sometime soon. it looks like a good and more reliable alternative to local saving.
  11. mraneri

    mraneri Network Guru Member

    I had about 17 months of data running with no more than a few hours worth of gaps at one point, before I boneheadedly wiped the backup file off the FTP server as I was messing with the router (duh!) It was not a failure of the script, but a failure of the operator (ME!) I'm up to 2 months again.
  12. gregg098

    gregg098 LI Guru Member

    I have a cheap little Simpleshare NAS device which I mounted on my router to save logs to. Works pretty well as it doesnt consume very much power. To overcome the potential loss of data problem, I made a batch script that runs once a day to copy the logs folder to my computer in a folder that gets backed up by Mozy. Works pretty well for me. I agree about not having a PC on all day though, that is expensive. I may look into the FTP option as well though.
  13. vibe666

    vibe666 Network Guru Member

    i've only been doing it since january, so i don't actually have 90 days worth of logs yet. :)

    does anyone know of a shutdown script that will kick off a backup of the logs before you reboot your router so you don't lose any data between hourly backups if you have to reboot your router for any reason?
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice