1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

upmon released

Discussion in 'Tomato Firmware' started by Troydm, Sep 4, 2010.

  1. Troydm

    Troydm Addicted to LI Member

    I thought I needed some kind of uptime monitoring for my hosts and since tomato has no builtin tool for such purpose i've created one and now i'm releasing the source code under GPLv3, might be interesting for some of tomato users

  2. Toastman

    Toastman Super Moderator Staff Member Member

    This is most interesting - could be very useful in an apartment block. I'd like to try this! I wonder if you might be so kind as to give step-by-step instructions as to how to include this into a tomato compile for RT-N16?

    Among other things, there are occasions when connection storms happen and screw everyone's internet for a while, but nothing is logged. This is just another tool that might help to identify the cause.

    Thanks Troydm!
  3. peyton

    peyton LI Guru Member

    Good news. Always love to have some mon info on my asus as i'm sharing my internet connection ! unfortunetely i'm totally newbie except at testing firmware.. :rolleyes:
  4. Troydm

    Troydm Addicted to LI Member

    ok here's how i did it...

    let's say you have a ext2 formated flash stick...

    plug it into the router. go to usb and nas page and enable core usb support (make sure that ext2/ext3 checkbox is checked) click on save the plug in the stick into the router click on refresh button and mount the stick... you'll see message like

    Partition 'sda1' ext2 (3,828.95 MB) is mounted on /tmp/mnt/sda1

    so here's our datastore for the data: /tmp/mnt/sda1

    so let's telnet into router and the go to /tmp/mnt/sda1
    mkdir upmon

    copy file upmon.mipselr2 into this directory from the project distribution file upmon-0.1.zip (download from project page), rename it to upmon e.g mv ./upmon.mipselr2 ./upmon

    edit upmon.conf with your data:

    for example if your router's ip is

    # Config File for upmon

    # configure hosts to monitor

    where host1 and host2 are computers you want to monitor.

    copy this config file into /tmp/mnt/sda1/upmon directory

    so now you have upmon and upmon.conf files in your upmon directory
    mkdir data
    to create a data directory where all stats will be saved

    now try running ./upmon from telnet and open your browser at url

    if you'll see your hosts then everything is ok and running now stop the upmon by typing ctrl+c in telnet

    now we need to configure upmon to be started automatically on router mounting usb flash

    just copy this script below into Run after mounting on USB and NAS Support page and click save

    umount /tmp/mnt/sda1
    fsck.ext2 -p /dev/sda1
    mount -t ext2 -o noatime /dev/sda1 /tmp/mnt/sda1
    cd /tmp/mnt/sda1/upmon/
    ./upmon -d

    what it does is just remounts your flash stick with noatime option and starts upmon daemon
    now restart your router and wait for it to boot up and try accessing, if you did everything correctly then you'll see the same upmon page
  5. Toastman

    Toastman Super Moderator Staff Member Member

    Thanks for the quick reply Dmitri - I'll give it a try tomorrow!

Share This Page