ups shutdown pfsense after 30 seconds
-
i have NUT installed on pfsense 2.7.2
and an ups connected via SNMP card {lan}When there is a power outage, pfsense automatically shuts down after 30 seconds.
I want to up the time after which pfsense will shut down to 5 min
how do i do that ?
-
@firefox said in ups shutdown pfsense after 30 seconds:
i have NUT installed on pfsense 2.7.2
and an ups connected via SNMP card {lan}When there is a power outage, pfsense automatically shuts down after 30 seconds.
How old are your batteries? Are your batteries failing? Have you performed a battery test/calibration? What available runtime does your UPS advertise before mains fail? Do you have one of those really unfortunate UPSs that always declare Low Battery immediately upon mains fail?
-
The batteries are a year old
They are good
The ups holds 3 computers for a period of 10 minutes {One of the three computers is a pfsense}
If it's one computer then it will last longer@dennypage said in ups shutdown pfsense after 30 seconds:
Do you have one of those really unfortunate UPSs that always declare Low Battery immediately upon mains fail?
no
@dennypage said in ups shutdown pfsense after 30 seconds:
Have you performed a battery test/calibration?
no how do i do that ?
-
@firefox How you do a test/calibration depends upon your UPS. Check your UPS manual. UPSs with SNMP interfaces often have web interfaces that you can run tests from. If not a web interface, it's likely some form of button push.
That aside, you need to look at the SNMP values being advertised by the UPS when it goes on battery. Be sure you are using the correct MIB. Assuming you don't have a flaky UPS, I think the most likely issue is that you are using the wrong MIB.
-
@dennypage
this is the web gui
i try the test in the second pic
I received a message that the operation was successful.But I don't think it did anything
because the UPS didn't go into a state where there was no power
@dennypage said in ups shutdown pfsense after 30 seconds:
Be sure you are using the correct MIB.
what is MIB ?
-
@firefox said in ups shutdown pfsense after 30 seconds:
@dennypage
this is the web gui
i try the test in the second pic
I received a message that the operation was successful.The test in question, calibration of run-time, is the deep discharge test. May not be necessary.
Be sure you are using the correct MIB.
what is MIB ?
You have a lot of research to do.
The MIB is what provides the map (meaning) for the numerical index values of SNMP device.
What I would do is to connect the UPS via USB HID instead of SNMP and turn off the mains. If a shutdown is immediately initiated, then your UPS is bad.
If a shutdown is not immediately initiated when using USB, then there are three possibilities I can think of at the moment:
- The wrong SNMP driver is being used (which also implies the wrong MIB).
- The wrong MIB is being used.
- The SNMP interface is broken.
It's a research project. Your UPS vendor may be able to help you.
-
Could this be an incorrect setting in the SNMP card's graphical interface?
I took the SNMP card from another UPS that is from the same manufacturer as my UPS.
this is the model of my ups AON1500-2
this is the model of the ups i took the card from top v pro 6When I connected the snmp card to the ups
it seemed to recognize that it was a different ups -
@firefox said in ups shutdown pfsense after 30 seconds:
Could this be an incorrect setting in the SNMP card's graphical interface?
I took the SNMP card from another UPS that is from the same manufacturer as my UPS.
this is the model of my ups AON1500-2
this is the model of the ups i took the card from top v pro 6When I connected the snmp card to the ups
it seemed to recognize that it was a different upsI assume this is the same UPS as you were asking about last December?
I do not have familiarity with that UPS manufacturer, so I really can't answer your question. You can either reach out to the manufacturer and ask them about NUT SNMP support for their UPSs, or go down the path of learning about SNMP and diagnose the issue yourself. Unless you happen to find someone with the exact same UPS and SNMP card, already working with NUT, this is going to require some effort.
FWIW, the odds are that either the SNMP driver is incorrect, or the MIB is incorrect. For me, the first step would be to learn about the available MIBs, and begin exploring the SNMP interface with snmpwalk.