Netgate 3100, nut and Cyberpower UPS Issue
-
@mer said in Netgate 3100, nut and Cyberpower UPS Issue:
@jostermacedo As pertains to NUT and your model of UPS, I don't know, but as a test process, here's what I've done in the past:
plug the power for the monitoring device into a different power outlet than the UPS
plug the USB cable from the UPS to the device that is monitoringThat lets you pull the power cable on the UPS, leaves the device powered but the monitoring device should see the UPS go off power and start to do it's thing.
You could also hook up the console cable to the SG3100 and see what it says; perhaps the shutdown events aren't logged correctly?The shutdown was not done as intended. I found this on the log once the system was up again:
Dec 11 23:03:10 kernel WARNING: / was not properly dismounted
Dec 11 23:03:10 kernel WARNING: /:mount pending error: blocks 800 files 110 -
-
-
What do you have in
/usr/local/etc/nut/upsmon.conf
?Steve
-
-
-
@stephenw10 said in Netgate 3100, nut and Cyberpower UPS Issue:
What do you have in
/usr/local/etc/nut/upsmon.conf
?Steve
Hi Steve, how can I see the contents of this file? Can be a command through the GUI or do I have to connect to the console port to see it?
Joster
-
@jostermacedo Diagnostics menu, Command Prompt should let you enter something like "cat /usr/local/etc/nut/upsmon.conf"
-
Yup, that^ or you can just open it in Diag > Edit File.
Steve
-
@stephenw10 said in Netgate 3100, nut and Cyberpower UPS Issue:
Yup, that^ or you can just open it in Diag > Edit File.
Steve
This is the output of the command above:
MONITOR Macedo 1 local-monitor 9c0be71e217573e68122 master
SHUTDOWNCMD "/sbin/shutdown -p +0"
POWERDOWNFLAG /etc/killpower -
@jostermacedo
@stephenw10 is the SG3100 arm based like the 2100? If so does it actually power off when you do shutdown -p? -
Hmm, the default options then.
I don't actually run NUT but as I understand it that should shutdown the firewall when the UPS reports battery low, which looks like 10% as configured. It may require a different value there if your UPS doesn't give enough time to shutdown after signally low.
When you pull the plug do you see the expected values reported?
Steve
-
@stephenw10 said in Netgate 3100, nut and Cyberpower UPS Issue:
Hmm, the default options then.
I don't actually run NUT but as I understand it that should shutdown the firewall when the UPS reports battery low, which looks like 10% as configured. It may require a different value there if your UPS doesn't give enough time to shutdown after signally low.
When you pull the plug do you see the expected values reported?
Steve
Steve, but if the UPS reported battery low, shouldn't that be shown on the log? I'll test it tonight once I'm at home.
-
I would expect it to. But, for example, maybe the batteries are toast or uncalibrated and it gets to 20% and then just shuts off.
-
@mer said in Netgate 3100, nut and Cyberpower UPS Issue:
is the SG3100 arm based like the 2100? If so does it actually power off when you do shutdown -p?
It is. If you Halt it, it will stop everything and show a message on the console to the effect that it's OK to power off. But that should be a clean shutdown from the OS standpoint.
@jostermacedo How old is the UPS? In general UPS battery life (at least for APC, which we use for clients) is around 3-6 years depending on how often it goes on battery. I have seen multiple old UPSs over the years where the UPS thought its battery was fine but the biweekly self test powered off an attached PC because the battery couldn't produce the power needed. Similar to what stephenw is describing.
-
@steveits said in Netgate 3100, nut and Cyberpower UPS Issue:
@mer said in Netgate 3100, nut and Cyberpower UPS Issue:
is the SG3100 arm based like the 2100? If so does it actually power off when you do shutdown -p?
It is. If you Halt it, it will stop everything and show a message on the console to the effect that it's OK to power off. But that should be a clean shutdown from the OS standpoint.
@jostermacedo How old is the UPS? In general UPS battery life (at least for APC, which we use for clients) is around 3-6 years depending on how often it goes on battery. I have seen multiple old UPSs over the years where the UPS thought its battery was fine but the biweekly self test powered off an attached PC because the battery couldn't produce the power needed. Similar to what stephenw is describing.
The UPS was bought in 2016, but I replaced the battery two months ago. You can see through the log on the original message that the router was running for at least two hours after the power went down (it run PFBlockerNG cron update). SG3100 is the only thing connected to the UPS, so not much power was being used at all.
-
Mmm, yeah I would expect it to have logged battery low if it did reach that.
Maybe it restarted for some other reason?
I think you will need to do a test and see what it actually logs and what the UPS stats are reported as when it's discharging. I would probably run the 3100 directly and not through the UPS during that test so it doesn't actually lose power if/when the batteries are drained.
Steve