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

Can tomato send alerts when network device goes down?

Discussion in 'Tomato Firmware' started by HomeDad, Apr 22, 2014.

  1. HomeDad

    HomeDad Network Newbie Member

    Unsuccessfully searching this forum and www for answer to seemingly common need. Please direct to better forum if this is a mis-post...

    My router is the only 24x7 device on our home network and I would like to know if there is another application that can be loaded (or script written) on the router to track pings to a networked device and then send a message to a gmail account or similar when heartbeat stops for x seconds or reappears.

    I've found somewhat related posts on this forum at posts below, but still beyond my abilities to adapt:
    "Scripting Question" post # 150509

    TomatoUSB Shibby 1.28.0000 MIPSR2-117 K26 USB AIO
    ASUS RTN16

    I'm planning to add a network storage device in a detatched garage/apartment to hold family data in case of fire/theft at main dwelling. (This may be irrelevant, but I'm a linux noob learning to repurpose a Pogoplug e02 with arch linux and samba) It would be great to get an alert on my mobile when the device fails or has otherwise been tampered.

    Grateful for your consideration,
    Last edited: Apr 22, 2014
  2. koitsu

    koitsu Network Guru Member

    No, at this time there is no such thing. Tomato/TomatoUSB is intended to be a router firmware, and not a monitoring service/framework/infrastructure. You need to look into things like Nagios, Zabbix, or writing your own software. Some of these (Zabbix for example) might be available via Entware.
    Entware is a third-party packaging/binary system and is not part of TomatoUSB. However, it is actively maintained and does not conflict with "base system" (base TomatoUSB) libraries which is a Very Good Thing (it indicates the Entware maintainers understand how to build software :) ). There are other threads discussing Entware and how to go about using it on your router (you have an RT-N16 so you'd need a USB flash drive, specifically because your router is the only 24x7 device in your home; CIFS/SMB shares on another PC won't work for you), so please see those.

    Verification that (some parts of) Zabbix are available via Entware, but don't ask me how to use it / set it up / if it even works:

    root@gw:/tmp/home/root# opkg list | grep -i zabbix
    zabbix-agent - 2.2.1-1 - Zabbix agent
    zabbix-agentd - 2.2.1-1 - Zabbix agentd
    zabbix-get - 2.2.1-1 - Zabbix get
    zabbix-proxy - 2.2.1-1 - Zabbix proxy
    zabbix-sender - 2.2.1-1 - Zabbix sender
    zabbix-server - 2.2.1-1 - Zabbix server
    I cannot help past this point.

    But I do have one question: if your router is the only device that's on 24x7 on your home network, why would you need software to monitor if a device/system/whatever goes down? These two things seem in conflict.
  3. HomeDad

    HomeDad Network Newbie Member

    Thanks Koitsu for the speedy response. It helps to know which direction to begin and to set my expectations.

    Tomato has been so very useful up to this point and far exceeds my pure networking requirements for a router. I could likely accomplish most function with stock firmware, but use it for 3 main reasons
    1) I can run the same firmware on multilple routers I support, such as parents, inlaws, friends.
    2) Web Monitoring and limited content filtering w/ OpenDNS and Access Restriction
    3) Tool for Learning technology... Very easy, intuitive GUI

    I'm very thankful to the Tomato Dev community as I have received value beyond my simple donations.

    To Answer your question: Your are right regarding the conflicting statements. So to clarify... Until now, the router is the only 24x7 device on my home network. However, I want to add a NAS device to be available 24X7 for backups. The device will be placed in a locked cabinet, but the cabinet will be accessible to my renter of the detatched garage/apartment. Monitoring pings to the device would alert me to tampering or power circuit outage.

    Apart from some heartbeat monitoring, I will need to notice the absence of "successful backup" emails from the cobian backup software to know if anything is awry.

    Thanks Again for your input.
  4. Grimson

    Grimson Networkin' Nut Member

  5. gfunkdave

    gfunkdave LI Guru Member

    At least some NAS firmwares will do this for you anyway. Synology's firmware can be set to email/text you all kinds of alerts, including when the device is improperly powered off and when it comes back up. Of course, it sends the former after it's brought back online so might not be useful for determining when it actually goes down.

    Some backup software (like Crashplan) will email you when the cloud service hasn't heard from the device in a day or so.

Share This Page