NUT package (2.8.0 and below)
-
@ghound yeah I literally had 0 problems at all on 2.6 pfSense using snmp. It always reported 100% correctly.
-
@keyser Sure, but it was working great before. Never had an issue until recent updates to pfsense. So something got screwed up that wasn't screwed up before. And yes, I did see those disconnects/reconnects happen before the update. That worked for me. Now it no longer reconnects I guess.
-
@incith Did you not have disconnects/reconnects ? Or never noticed it ?
-
@DurUser I did not have any disconnects. SNMP worked flawlessly.
-
@incith Wait, so you didn't have the ups directly connected to your pfsense box?
I am not sure I understand your snmp setup. -
Found the fix? Not sure why this hasn't been merged into pfSense 2.7. this is old it seems. pfSense using mib v0.51 and this is 0.52 to fix the issue
https://github.com/networkupstools/nut/commit/6a6888e9b5fd995e79e3db335ff4c9c524f31b51
https://redmine.pfsense.org/issues/13972
-
@DurUser correct....that's kind of the point of SNMP lol. CyberPower PowerPanel software does SNMP server. A windows server is the primary host for the snmp data. pfSense is a slave.
It'd be nice to see pfSense have an option for choosing master or slave in the snmp driver.
-
@incith said in NUT package:
I did not have any disconnects. SNMP worked flawlessly.
You likely had disconnects. You would not have noticed, because it immediately reconnected. When this happens, there is no notification.
-
@dennypage ...ok?
-
@incith Your prior post referred to an adjustment in polling interval. FWIW, I do not see any polling interval in the configuration you posted.
As to your actual problem, it is discussed here. Assuming that you are on an Intel or AMD based platform, you use the updated snmp-ups driver posted in that thread.
-
@incith huh ? So your master is a windows machine ?
We're talking about the pfsense machine being the master. It does show disconnects. Windows likely does not.
I have a completely seperate workstation running windows with a different cyberpower 1500 ups and it never notifies me of disconnects... ever. That could mean 2 things. It has a better driver OR it doesn't show any disconnects if it's quickly reconnected.
The pfsense machine is a whole different story. I would repeatedly see disconnects in the console output. -
@DurUser cyberpower ups USB cable -> Windows server -> PowerPanel business software -> enable SNMP.
pfSense -> remote-snmp driver -> IP of windows server.
pfSense is not the master in my setup. It is an SNMP client.
-
@dennypage Thanks, I'll give that a shot here shortly!
I did a completely clean install and wiped my config from /conf for <nut> and rm /temp/config.cache etc etc. And removed the /usr/local/etc/nut folder to give you a clean configuration. That is why you are noticing discrepancies. I had tried poll interval as it was mentioned somewhere else this helped but I assumed this was going to be driver related from the start.
-
@incith said in NUT package:
Found the fix? Not sure why this hasn't been merged into pfSense 2.7. this is old it seems. pfSense using mib v0.51 and this is 0.52 to fix the issue
https://github.com/networkupstools/nut/commit/6a6888e9b5fd995e79e3db335ff4c9c524f31b51
It's not a question of being merged into pfSense. A version of NUT with that fix has not actually been released yet. The most recent release of NUT is 2.8.0, in April 2022. We have been waiting for 2.8.1 for some time. I'm sure that when 2.8.1 is released, it will be in FreeBSD Ports, and the pfSense repo, shortly thereafter.
As it sits, the only way to get a fully functional build for the various Cyberpower UPS units is to build against NUT's development (master) branch. Unfortunately, this is a moving target.
-
@dennypage Hmm, that sucks! Thanks for the information.
Unfortunately the linked snmp-ups driver will not load. It's an Intel xeon e3 v3 so should be compatible I'd have thought. Perhaps it needs rebuilt for pfSense 2.7?
-
@incith said in NUT package:
Unfortunately the linked snmp-ups driver will not load.
Need more information. Please start the driver by hand as described in the other thread. and report the actual errors encountered.
FWIW, this description:
pfSense -> remote-snmp driver -> IP of windows server.
Doesn't make sense. You are using the snmp driver, so you should be talking directly to the UPS using the IP address of the UPS rather than a Windows server.
-
@dennypage The ups does not have a network card.
PowerPanel software communicate with the ups over USB. PowerPanel software provides the SNMP server.
It's honestly very straightforward.
-
@incith Yeah, what we're talking about (THE issue) is on pfsense connected to a UPS directly. Your setup is different.
-
@DurUser My issue is not your issue. We are discussing the SNMP driver. I was simply proffering up how my setup is configured since you seemed confused about it
-
Ah. Yeah, all good now, driver works. Thanks!