ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Installing apcupsd on XenServer 7

    IT Discussion
    xenserver
    5
    22
    6.0k
    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.
    • D
      Dashrender
      last edited by Dashrender

      And RPM is like an exe installer setup program in Windows.

      B 1 Reply Last reply Reply Quote 0
      • B
        BRRABill
        last edited by

        Well, I was able to download the appropriate RPM file.

        When you go to that page, the actual RPM file location is listed below.

        Moving on...

        1 Reply Last reply Reply Quote 0
        • B
          BRRABill @Dashrender
          last edited by

          @Dashrender said in Installing apcupsd on XenServer 7:

          And RPM is like an exe installer setup program in Windows.

          Yeah I went through @scottalanmiller 's writeup yesterday. Kind of get that now.

          1 Reply Last reply Reply Quote 0
          • J
            JaredBusch @BRRABill
            last edited by JaredBusch

            @BRRABill said in Installing apcupsd on XenServer 7:

            I had purchased an Eaton UPS, but I bought (all me, I was warned) the one that does not support network connectivity. So, I switched back to the older APC unit I had that does indeed have a network card.

            You do not need the network capabilities if you are putting the UPS software directly on the host.

            You are making everything harder than it needs to be by adding networking into the mix.

            Plug the Eaton in, grab the USB and plug it in to the server. Install the software. Configure. Done.

            You only want networking if you are going to have the units report back to a software controller not directly connected to it via USB. Said software controller would then be configured to fire scripts to handle shutdown, etc.

            B 1 Reply Last reply Reply Quote 0
            • J
              JaredBusch @BRRABill
              last edited by

              @BRRABill said in Installing apcupsd on XenServer 7:

              QUESTION 1: does apcupsd work with brands other than just APC? If not are there similar products that will work with other brands?

              Yes. Look at my thread on using a Pi3 for UPS monitoring.

              B 1 Reply Last reply Reply Quote 1
              • B
                BRRABill @JaredBusch
                last edited by

                @JaredBusch said in Installing apcupsd on XenServer 7:

                @BRRABill said in Installing apcupsd on XenServer 7:

                QUESTION 1: does apcupsd work with brands other than just APC? If not are there similar products that will work with other brands?

                Yes. Look at my thread on using a Pi3 for UPS monitoring.

                Ah, OK that makes things simpler.

                I have the APC unit up and running, so I might just still use it. It's also has considerably more capacity that the Eaton I bought.

                1 Reply Last reply Reply Quote 0
                • S
                  scottalanmiller @BRRABill
                  last edited by

                  @BRRABill said in Installing apcupsd on XenServer 7:

                  The directions are basically the same for 6.5 and 7 with some small differences you will see at the start of the article, the first of which I already have a question about!

                  It says

                  Also, in Xenserver 7, you need the rpm package for Centos7 available here:
                  https://pkgs.org/centos-7/epel-x86_64/apcupsd-3.14.12-1.el7.x86_64.rpm.html”
                  

                  Do I use wget to get that? How to I "use" that rpm package?

                  Yes you could, but no you do not. You can see that that is listing the name as the EPEL repository. The issue that you have is that that repo is missing. In theory, and especially as a newer Linux user, you should never touch RPMs. You need to let YUM manage them for you. If you start messing around under the hood with RPMs they will not be properly managed and not come from the right sources. Remember... make Linux easier, not harder.

                  So I'm going to answer to "yes you cans" and then provide the "what you actually do."

                  1. You CAN use wget to download an RPM locally then install it using the RPM command. That will absolutely work. Don't do that.
                  2. You CAN use the rpm command to install an RPM from the website directly, no need for the wget command. This will absolutely work, don't do this either.
                  B 1 Reply Last reply Reply Quote 1
                  • S
                    scottalanmiller
                    last edited by

                    What you actually do is install the EPEL repo, then install the desired package. In this way YUM and the repos handle all the heavy lifting for you and you just let the system take care of itself. On CentOS (which is the only place that the EPEL exists) it's like this..

                    yum -y install epel-release
                    

                    This sets up the EPEL repositories for you. Then you do this...

                    yum -y install apcupsd
                    

                    Done

                    1 Reply Last reply Reply Quote 1
                    • B
                      BRRABill @scottalanmiller
                      last edited by

                      @scottalanmiller said in Installing apcupsd on XenServer 7:

                      @BRRABill said in Installing apcupsd on XenServer 7:

                      The directions are basically the same for 6.5 and 7 with some small differences you will see at the start of the article, the first of which I already have a question about!

                      It says

                      Also, in Xenserver 7, you need the rpm package for Centos7 available here:
                      https://pkgs.org/centos-7/epel-x86_64/apcupsd-3.14.12-1.el7.x86_64.rpm.html”
                      

                      Do I use wget to get that? How to I "use" that rpm package?

                      Yes you could, but no you do not. You can see that that is listing the name as the EPEL repository. The issue that you have is that that repo is missing. In theory, and especially as a newer Linux user, you should never touch RPMs. You need to let YUM manage them for you. If you start messing around under the hood with RPMs they will not be properly managed and not come from the right sources. Remember... make Linux easier, not harder.

                      So I'm going to answer to "yes you cans" and then provide the "what you actually do."

                      1. You CAN use wget to download an RPM locally then install it using the RPM command. That will absolutely work. Don't do that.
                      2. You CAN use the rpm command to install an RPM from the website directly, no need for the wget command. This will absolutely work, don't do this either.

                      I think this is what I did, because that is what the directions said.

                      localinstall
                      
                      1 Reply Last reply Reply Quote 0
                      • B
                        BRRABill @JaredBusch
                        last edited by

                        @JaredBusch said

                        You are making everything harder than it needs to be by adding networking into the mix.

                        After about 10 minutes of working with apcupsd, I already agree with you and will be switching back. 🙂

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          JaredBusch @BRRABill
                          last edited by

                          @BRRABill said in Installing apcupsd on XenServer 7:

                          @JaredBusch said

                          You are making everything harder than it needs to be by adding networking into the mix.

                          After about 10 minutes of working with apcupsd, I already agree with you and will be switching back. 🙂

                          Try NUT instead of apcupsd

                          B 1 Reply Last reply Reply Quote 0
                          • B
                            BRRABill @JaredBusch
                            last edited by

                            @JaredBusch said in Installing apcupsd on XenServer 7:

                            @BRRABill said in Installing apcupsd on XenServer 7:

                            @JaredBusch said

                            You are making everything harder than it needs to be by adding networking into the mix.

                            After about 10 minutes of working with apcupsd, I already agree with you and will be switching back. 🙂

                            Try NUT instead of apcupsd

                            First of all, thanks for the UPS reco. Worked like a charm!

                            Second of all ... this NUT. While I am tempted to just follow the advice since you've proven yourself right already today on this thread. But, tell me more!

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

                              Assuming you have the EPEL available yum install nut

                              http://networkupstools.org/

                              B 1 Reply Last reply Reply Quote 2
                              • B
                                BRRABill @JaredBusch
                                last edited by

                                @JaredBusch said in Installing apcupsd on XenServer 7:

                                Assuming you have the EPEL available yum install nut

                                http://networkupstools.org/

                                I mean ... why do you like NUT over apcupsd?

                                J travisdh1T 2 Replies Last reply Reply Quote 0
                                • J
                                  JaredBusch @BRRABill
                                  last edited by

                                  @BRRABill said in Installing apcupsd on XenServer 7:

                                  @JaredBusch said in Installing apcupsd on XenServer 7:

                                  Assuming you have the EPEL available yum install nut

                                  http://networkupstools.org/

                                  I mean ... why do you like NUT over apcupsd?

                                  Honestly, I have barely used both so far. But I like NUT better so far with the little I have setup.

                                  B 1 Reply Last reply Reply Quote 1
                                  • B
                                    BRRABill @JaredBusch
                                    last edited by

                                    @JaredBusch said in Installing apcupsd on XenServer 7:

                                    @BRRABill said in Installing apcupsd on XenServer 7:

                                    @JaredBusch said in Installing apcupsd on XenServer 7:

                                    Assuming you have the EPEL available yum install nut

                                    http://networkupstools.org/

                                    I mean ... why do you like NUT over apcupsd?

                                    Honestly, I have barely used both so far. But I like NUT better so far with the little I have setup.

                                    Fair enough.

                                    apcupsd was pretty easy to set up via USB. Now I just have to test to see if that XS setup really works.

                                    1 Reply Last reply Reply Quote 1
                                    • travisdh1T
                                      travisdh1 @BRRABill
                                      last edited by

                                      @BRRABill said in Installing apcupsd on XenServer 7:

                                      @JaredBusch said in Installing apcupsd on XenServer 7:

                                      Assuming you have the EPEL available yum install nut

                                      http://networkupstools.org/

                                      I mean ... why do you like NUT over apcupsd?

                                      NUT should work with any model UPS, not just APC like apcupsd.

                                      B 1 Reply Last reply Reply Quote 0
                                      • B
                                        BRRABill @travisdh1
                                        last edited by

                                        @travisdh1 said

                                        NUT should work with any model UPS, not just APC like apcupsd.

                                        @JaredBusch said apcupsd works with other UPSes as well.

                                        That was my first question. 🙂

                                        travisdh1T 1 Reply Last reply Reply Quote 1
                                        • travisdh1T
                                          travisdh1 @BRRABill
                                          last edited by

                                          @BRRABill said in Installing apcupsd on XenServer 7:

                                          @travisdh1 said

                                          NUT should work with any model UPS, not just APC like apcupsd.

                                          @JaredBusch said apcupsd works with other UPSes as well.

                                          That was my first question. 🙂

                                          Huh, I'll have to give it another look then.

                                          B J 2 Replies Last reply Reply Quote 0
                                          • B
                                            BRRABill @travisdh1
                                            last edited by

                                            This post is deleted!
                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post