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

tomato + NUT?

Discussion in 'Tomato Firmware' started by kameleon, Sep 12, 2008.

  1. kameleon

    kameleon LI Guru Member

    I just got my hands on a free APC SmartUPS SU700NET that I plan to put on my main router and cable modem since they are on the other side of the house from my office. On my main UPS that all my servers are connected to I run NUT (Network UPS Tools) to monitor the UPS and cut it off once it gets to a certain power level. Does anyone know of a way to do this or something similar on a tomato powered router w/ serial mod? Just wondering if it was even possible.
     
  2. pfoomer

    pfoomer LI Guru Member

    Re Nut

    As Nut can be compiled, and Tomato is running Linux, if you have enough memory, then probably.

    But why?
     
  3. kameleon

    kameleon LI Guru Member

    That is an easy one. There will be no full "pc's" on this UPS so there is no way for me to monitor the UPS unless I do this with the router. The main reason is so that I can get an email notification when it switches from grid to ups and back. And without something monitoring it I can't do that.
     
  4. pfoomer

    pfoomer LI Guru Member

    Re Nut

    Hi

    Ok understand now. But if the power does go I would expect, providing your free UPS battery is in good shape, it would hold the power for the router/modem for quite a while.

    My 650 holds the router/modem & the pc + display for at least 40 minutes.

    Also the router/modem are not to susceptible to power off damage (no disks).

    Of course you will get the advantage of power conditioning/spike protection & possible phone line protection with the UPS so even if it's not monitored its doing good.


    An alternative, an old box, no display, running linux & nut to monitor the UPS?

    What is meant by 'no full pc's"?
     
  5. kameleon

    kameleon LI Guru Member

    no full pc's = I have a media pc where the router and modem are btu it has no serial port for me to use the monitoring cable. Where the modem/router are is in the living room and I cannot put another machine there or the wife approval factor drops to a negative integer lol. I could use a usb to serial adapter but I would rather not. No biggie. I guess I could always move my small VoIP box up there as it is small enough to be hidden and only has a 90 watt psu. ;)
     
  6. pfoomer

    pfoomer LI Guru Member

    Hi

    for a quieter & easier life I would go the serial-usb route, I use this approach on two UPS's on my non serial PC's

    The most reliable ones in my opinion are the make that starts with a K :)
     
  7. kameleon

    kameleon LI Guru Member

    "starts with a K"? Which number? The "device ID"? I would love to not have to put another box in there but if I must....

    Any insight is welcome since you have performed this exact thing. I don't care to have the web output on the router as I will just have it talk to my main monitoring machine in the office to do the website stuff. Thanks in advance!

    BTW The device I am using is a WRT54GS so I have the extra ram to play with. ;)
     
  8. pfoomer

    pfoomer LI Guru Member

    Hi

    I haven't got the NUT working on the router, I have got it working on the computer, by recompiling NUT, setting up the parameters and using a serial to usb adaptor type usa-19hs.

    Did you get the serial cable with the UPS?, as they are proprietry to the vendor, ordinary serial cables do not work (well not on my APCC UPS)

    Any way, if you have the software, and you can compile it on the router (and you will probably need to get advice from the router hackers), it should work, you just need to run the daemon and put a monitor on the media-pc, which will be commanded by the software running on the router.

    Another thought, can you not run ups monitor on the media pc's being supported by new UPS, but commanded to shutdown from the ups daemon in the main office?

    Either way, no new boxes in the living room!!
     
  9. kameleon

    kameleon LI Guru Member

    Well, turns out that my wrt54gs is the one that does not have the serial port headers on it. gravy. So my options are to move my VoIP box up there or try to run a usb to serial adapter on my media pc.

    pfoomer: you say it is possible to monitor the new UPS locally on the media pc but have the media pc shut down with the main UPS monitor? Wonder if that will cut off the local UPS or not. I need to go read some more. lol
     
  10. pfoomer

    pfoomer LI Guru Member

    Hi

    if I remember from reading the NUT documentation, although quickly, there was a facility for doing this.

    I only used nut and a homegrown java based monitor to allow for the checking of the UPS status, as APCC do not provide software for the UPS model I have on the platform I use.

    Personally i would use the serial-usb approach to reduce the box count, and remotely monitor in the office in case someone unplugs the UPS in the lounge.

    The adaptors work well for me on the UPS and other applications.

    In the future if the UPS goes defective, I will use a USB based UPS and the OS's software. The usb-serial option provided a cheap solution.
     

Share This Page