-
@gwaitsi Put your switch on the ups. Or use a direct connection.
-
@dennypage the UPS is 3 floors higher and there is no space/place for me to put a UPS where the pfsense is. The UPS protects my NAS in critical computers during an outage. given the switches, modems and access points have no protection, the pfsense does not a UPS. It only needs to stay up long enough for a controlled shutdown.
-
@gwaitsi So the ups is not powering the pfSense box?
-
@dennypage no
-
@gwaitsi Then don’t use nut. A simple shell script running on pfSense will do. Ping the switch, and if the ping fails for X min, execute a shutdown.
Btw, looking back at your first post, item 3 (fsd) would not work either. If the switch fails when the power fails, you would loose comms and never receive an fsd notice from the nut server.
-
@dennypage It would be could if you could include these two files as part of the configuration options in the package.
I have the use case almost working as desired, but i have to add these files to make it work
-
@gwaitsi This isn’t a reasonable use case for nut.
-
@dennypage @jimp the use case is irrelavent in terms of these two files.
upssched.conf is the configuration for upssched timer program which is triggered through upsmon
The 2nd file /usr/local/bin/upssched-cmd is the CMDSCRIPT used for action events that have been triggered via the timer.
It's all in the documentation, and a quick seach on google shows many people using this for different kinds of use cases, particularly where multiple UPS's are involved.
https://networkupstools.org/docs/man/upssched.conf.html
https://networkupstools.org/docs/man/upssched.htmlWe shouldn't need to create outside the application, files that should be part of the package.
-
@gwaitsi I don’t know what else to say to you. You are pursuing something that doesn’t make any sense to use nut for. Just write a simple shell script and move on.
-
@dennypage i already have it working, and that is the whole point of nut remote monitoring. i.e. to shutdown other systems. but neither of those points have anything to do with the fact the nut package, does not include an editor for two files that form part of the package e.g. upssched.conf and upssched-cmd
-
@gwaitsi said in NUT Package upssched setup:
@dennypage i already have it working
Congratulations. Super cool.
-