Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Beta test of new NUT UPS package

    Scheduled Pinned Locked Moved pfSense Packages
    114 Posts 15 Posters 35.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dennypageD
      dennypage
      last edited by

      Pull request created: https://github.com/pfsense/FreeBSD-ports/pull/155

      1 Reply Last reply Reply Quote 0
      • J
        johnabbot
        last edited by

        @dennypage:

        Hey John, just wondering if you had a chance to dump the usb config to check the vendor and product id?

        Hi Denny,

        There was an attempt to reverse engineer this back in 3013 that seems to have come to nothing.

        http://lists.alioth.debian.org/pipermail/nut-upsdev/2013-January/006390.html

        my understanding is they won't do any more work on supporting it. I've wasted enough time on getting it to work I think I will wait to see what works well with NUT on the pfsense and buy one of those.

        John

        @johnabbot:

        driver=blazer_usb
        port=auto
        langid_fix=0x4095
        subdriver=krauler
        productid=1234
        vendorid=0925

        1 Reply Last reply Reply Quote 0
        • dennypageD
          dennypage
          last edited by

          If you are looking for a new UPS, pretty much anything that is supported by NUT 2.7.4 should work fine with the new nut package under pfSense. To ensure compatibility with NUT, it would be a good idea to choose a ups that operates with a publicly available protocol. You can find these on the NUT hardware compatibility list by selecting "***" as the minimum Support Level.

          1 Reply Last reply Reply Quote 0
          • E
            elemay
            last edited by

            sorry, wrong thread

            1 Reply Last reply Reply Quote 0
            • J
              johnabbot
              last edited by

              I got a Eaton 5E2000iUSB and it seems to work perfectly.

              I still have to add the Nut Clients (debian servers & a NAS) and test it properly but looking good.

              Thanks a million for your work, this is one thing about Pfsense that has been really bugging me.

              1 Reply Last reply Reply Quote 0
              • dennypageD
                dennypage
                last edited by

                Thanks John. I'm glad it worked for you. I really appreciate your help with testing the new package.

                1 Reply Last reply Reply Quote 0
                • Q
                  q54e3w
                  last edited by

                  let me know if I can test for you too.
                  Does this NUT update support reporting on enviromentals via an APC 9631 and sensors?

                  1 Reply Last reply Reply Quote 0
                  • dennypageD
                    dennypage
                    last edited by

                    The UPS Detail section on the Status page will display all variables reported by the NUT driver, however I don't personally know what variables are reported by the driver for the 9631 card.

                    If you would like a copy of the beta package, please pm me with an email address. Thanks.

                    @irj972:

                    Does this NUT update support reporting on enviromentals via an APC 9631 and sensors?

                    1 Reply Last reply Reply Quote 0
                    • J
                      justmie
                      last edited by

                      Does the Beta package properly support the connection to Apcupsd ? Now I use a workaround with the old package, but I'd rather use something that can be configured through the pfsense webui.

                      1 Reply Last reply Reply Quote 0
                      • dennypageD
                        dennypage
                        last edited by

                        Yes, the package supports configuration of remote apcupsd.

                        1 Reply Last reply Reply Quote 0
                        • R
                          renegade
                          last edited by

                          Thanks for letting me join the Beta Phase.
                          Here's my feedback:
                          I use a remote APC UPS which is hooked up on one of my Synology NAS.
                          After removing the current package i installed the beta via cmdline and was very happy that my Config Data has been found :)
                          I had to re-enable these by saving them and i got every value from the APC now shown in pfSense. That's cool!
                          There is also a new widget. The new one seems to be a little bigger. There i have to say, that i liked the older one a little more.
                          As i remember there where colored texts in it and it was, yes smaller.

                          I keep up looking if there is any bug left :)
                          Thank you!

                          1 Reply Last reply Reply Quote 0
                          • dennypageD
                            dennypage
                            last edited by

                            Thanks for the feedback renegade. Much appreciated. Glad it worked for you.

                            The new widget is intended to fit with pfSense's new Bootstrap model. Line it up with the System Information widget and you'll see what I mean. Surprisingly, when not in alert state, the size of the new widget is about the same size as the old widget. It's smaller if there is an alert. :)

                            The new widget is intended to provide a highly distinctive visual indication of UPS alerts. The alert combines a large shaded color band and bolded alert text, which fits with the Bootstrap model. You can see what it looks like by disconnecting your UPS or by killing the driver. The multicolored text of the prior widget really was not sufficiently distinctive, particularly for color blind administrators.

                            No, I'm not color blind, but I have worked with admins that are.

                            1 Reply Last reply Reply Quote 0
                            • J
                              justmie
                              last edited by

                              Just installed the beta package without any problems. Connected to my APC SmartUPS 1500 usb through Apcupsd on my ubuntu server to which the UPS is physically connected. Worked without a hitch. Also the widget works without any issues.

                              Do you need logfiles or more info ?

                              1 Reply Last reply Reply Quote 0
                              • dennypageD
                                dennypage
                                last edited by

                                Glad it worked for you justmie. No log files necessary. Thank you again for your help.

                                1 Reply Last reply Reply Quote 0
                                • S
                                  Starrbuck
                                  last edited by

                                  I found a strange bug.  If I call Services >> UPS, it brings up https://192.168.1.1/nut_status.php properly.  However, if I go to Services >> Snort, and then to Services >> UPS, it tries to call https://192.168.1.1/snort/nut_status.php.

                                  1 Reply Last reply Reply Quote 0
                                  • dennypageD
                                    dennypage
                                    last edited by

                                    Thanks Starrbuck. I've committed a change that addresses this. Not sure how long it will take to come available.

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Starrbuck
                                      last edited by

                                      No hurry.  It freaked me out for a bit until I figured out I was causing it by going to Snort first.  ;)

                                      1 Reply Last reply Reply Quote 0
                                      • dennypageD
                                        dennypage
                                        last edited by

                                        I'm not sure how long the release will take to go through the system, so I sent out a beta4 with the url fix. This should be the same as the pending release except for the version number. If you come across any other issues, please do let me know. Again, thank you for your help!

                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          Starrbuck
                                          last edited by

                                          Sure thing, glad to help.

                                          1 Reply Last reply Reply Quote 0
                                          • w0wW
                                            w0w
                                            last edited by

                                            I can report that all is working.
                                            But I want report some strange issue, if you are just updating your previous beta then NUT service refuses to start automatically, widget just reports that UPS need attention and you must reboot or wait while it reconnects.

                                            Jul 28 19:29:06 upsd 57399 - I've manually pushed start service button on UPS page

                                            
                                            Jul 28 19:29:16 	upsmon 	58301 	Communications with UPS SMK-1000A established
                                            Jul 28 19:29:15 	upsd 	57956 	Connected to UPS [SMK-1000A]: snmp-ups-SMK-1000A
                                            Jul 28 19:29:13 	snmp-ups 	59689 	Startup successful
                                            Jul 28 19:29:11 	upsmon 	58301 	UPS SMK-1000A is unavailable
                                            Jul 28 19:29:11 	upsmon 	58301 	Poll UPS [SMK-1000A] failed - Driver not connected
                                            Jul 28 19:29:06 	upsmon 	58301 	Communications with UPS SMK-1000A lost
                                            Jul 28 19:29:06 	upsmon 	58301 	Poll UPS [SMK-1000A] failed - Driver not connected
                                            Jul 28 19:29:06 	upsd 	57956 	User monuser@::1 logged into UPS [SMK-1000A]
                                            Jul 28 19:29:06 	upsmon 	58073 	Startup successful
                                            Jul 28 19:29:06 	upsd 	57956 	Startup successful
                                            Jul 28 19:29:06 	upsd 	57399 	Can't connect to UPS [SMK-1000A] (snmp-ups-SMK-1000A): No such file or directory
                                            Jul 28 19:29:06 	upsd 	57399 	listening on 127.0.0.1 port 3493
                                            Jul 28 19:29:06 	upsd 	57399 	listening on ::1 port 3493
                                            Jul 28 19:29:06 	upsd 	57399 	upsd.conf: invalid directive maxage = 25
                                            Jul 28 19:27:52 	pkg 		pfSense-pkg-nut-2.7.4b4 installed
                                            Jul 28 19:27:52 	php 		/etc/rc.packages: Successfully installed package: nut.
                                            Jul 28 19:27:52 	check_reload_status 		Syncing firewall
                                            Jul 28 19:27:51 	upsmon 	27988 	Communications with UPS SMK-1000A lost
                                            Jul 28 19:27:51 	upsmon 	27988 	Poll UPS [SMK-1000A] failed - Driver not connected
                                            Jul 28 19:27:51 	upsd 	27378 	User monuser@::1 logged into UPS [SMK-1000A]
                                            Jul 28 19:27:51 	upsmon 	27815 	Startup successful
                                            Jul 28 19:27:51 	upsd 	27378 	Startup successful
                                            Jul 28 19:27:51 	upsd 	26835 	Can't connect to UPS [SMK-1000A] (snmp-ups-SMK-1000A): No such file or directory
                                            Jul 28 19:27:51 	upsd 	26835 	listening on 127.0.0.1 port 3493
                                            Jul 28 19:27:51 	upsd 	26835 	listening on ::1 port 3493
                                            Jul 28 19:27:51 	upsd 	26835 	upsd.conf: invalid directive maxage = 25
                                            Jul 28 19:27:51 	php 		/etc/rc.packages: Starting service nut
                                            Jul 28 19:27:51 	snmp-ups 	86120 	Signal 15: exiting
                                            Jul 28 19:27:51 	upsd 	61866 	Signal 15: exiting
                                            Jul 28 19:27:51 	upsd 	61866 	mainloop: Interrupted system call
                                            Jul 28 19:27:51 	upsd 	61866 	User monuser@::1 logged out from UPS [SMK-1000A]
                                            Jul 28 19:27:51 	upsmon 	62862 	Signal 15: exiting
                                            Jul 28 19:27:51 	php 		/etc/rc.packages: Stopping service nut
                                            Jul 28 19:27:51 	check_reload_status 		Syncing firewall
                                            Jul 28 19:27:51 	php 		/etc/rc.packages: Beginning package installation for nut . 
                                            
                                            

                                            Don't look at "maxage = 25" it's already fixed ;)

                                            Also when I push restart service it restarts and "UPS Status" shows me same alert "Status Alert: The UPS requires attention", if I just hit refresh button in browser — everything coming back to normal state.

                                            Sample log after pushing restart service:

                                            
                                            Jul 28 19:47:35 	upsmon 	90347 	Communications with UPS SMK-1000A established
                                            Jul 28 19:47:34 	upsd 	89700 	Connected to UPS [SMK-1000A]: snmp-ups-SMK-1000A
                                            Jul 28 19:47:32 	snmp-ups 	14241 	Startup successful
                                            Jul 28 19:47:30 	upsmon 	90347 	UPS SMK-1000A is unavailable
                                            Jul 28 19:47:30 	upsmon 	90347 	Poll UPS [SMK-1000A] failed - Driver not connected
                                            Jul 28 19:47:25 	upsmon 	90347 	Communications with UPS SMK-1000A lost
                                            Jul 28 19:47:25 	upsmon 	90347 	Poll UPS [SMK-1000A] failed - Driver not connected
                                            Jul 28 19:47:25 	upsd 	89700 	User monuser@::1 logged into UPS [SMK-1000A]
                                            Jul 28 19:47:25 	upsmon 	90280 	Startup successful
                                            Jul 28 19:47:25 	upsd 	89700 	Startup successful
                                            Jul 28 19:47:25 	upsd 	88694 	Can't connect to UPS [SMK-1000A] (snmp-ups-SMK-1000A): No such file or directory
                                            Jul 28 19:47:25 	upsd 	88694 	listening on 127.0.0.1 port 3493
                                            Jul 28 19:47:25 	upsd 	88694 	listening on ::1 port 3493
                                            Jul 28 19:47:25 	snmp-ups 	23316 	Signal 15: exiting
                                            Jul 28 19:47:25 	upsd 	11392 	Signal 15: exiting
                                            Jul 28 19:47:25 	upsd 	11392 	mainloop: Interrupted system call
                                            Jul 28 19:47:25 	upsmon 	11755 	upsmon parent: read
                                            Jul 28 19:47:25 	upsd 	11392 	User monuser@::1 logged out from UPS [SMK-1000A]
                                            Jul 28 19:47:25 	upsmon 	11893 	Signal 15: exiting 
                                            
                                            

                                            Am I missing something or my configuration is wrong elsewhere?

                                            I have attached one.

                                            conf_nut.jpg
                                            conf_nut.jpg_thumb

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.