UPSMON independent shutdown.



  • My J1900 box is in the basement, while my nas and ups are upstairs.

    I have point the nas, upstairs switch on the APC UPS with freenas.
    I point a 2A mini UPS downstairs on the switch and J1900.

    UPSMON is running and can read all the data from the APC UPS via freenas.

    According to my UPS, it should have about 1hr battery time, which i very much doubt the mini UPS would have.

    I want the miniUPS to shutdown after about 10min on battery independent of the APC UPS.

    Is there are config/parameter/way to achieve that?


  • Netgate Administrator

    I assume the mini-ups does not have any coms to it?

    So you want pfSense to shutdown 10mins after the power fails at your NAS regardless of whether or not pfSense has actually lost power?

    The upssched component on NUT should be able to do that. I've not tried it but it looks like you'd have to pass that via upsmon.conf custom field.

    Steve



  • @stephenw10 correct, no comms. If the power failed at my NAS, it means 99.9% of the time, the power has failed for the whole house. the nas is connected to an APC 1500 so will last 30 - 60 minutes.

    The mini-UPS are the same size as the power adapter of the J1900 and unintelligent. As i can't know when the battery will fail, for safety i would shutdown the J1900 after 10min

    https://www.amazon.com/Battery-Uninterruptable-Function-100V-240V-Wireless/dp/B07W8MCBMS?th=1


  • Netgate Administrator

    Ok well you should be able to do it using upssched. You may have to add it manually though I'm not sure anything is added via the package. There is nothing in /usr/local/etc/nut/upssched.conf by default.

    Steve


Log in to reply