XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Netdata package is now available in XCP-ng

    Scheduled Pinned Locked Moved News
    131 Posts 25 Posters 106.0k Views 14 Watching
    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.
    • M Offline
      MrMike
      last edited by

      Hi,

      Would pulling the latest version of netdata into each host break anything?
      ie running from the cli: bash <(curl -Ss https://my-netdata.io/kickstart.sh)

      1 Reply Last reply Reply Quote 1
      • stormiS Offline
        stormi Vates 🪐 XCP-ng Team
        last edited by

        Despite being not supported as any dom0 modification, it would probably not include Xen support.

        1 Reply Last reply Reply Quote 1
        • olivierlambertO Offline
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by

          @MrMike please use our packages

          1 Reply Last reply Reply Quote 1
          • M Offline
            MrMike
            last edited by

            Just being curious, your packages, they use a private registry on the xoa server itself?

            1 Reply Last reply Reply Quote 0
            • stormiS Offline
              stormi Vates 🪐 XCP-ng Team
              last edited by stormi

              All RPMs are installed from our public repositories, if that's the question.

              • Using XOA to install netdata will install the netdata package to XCP-ng and configure it to stream towards XOA's netdata.
              • Or, yum install netdata-ui on XCP-ng will get you a working netdata with default settings and will open port 19999
              1 Reply Last reply Reply Quote 0
              • M Offline
                MrMike
                last edited by

                I meant about the how netdata centralizes the nodes information on xoa host:
                is this how the xoa plugin/packages was configured?
                https://learn.netdata.cloud/docs/agent/registry/#run-your-own-registry

                nraynaudN 1 Reply Last reply Reply Quote 0
                • stormiS Offline
                  stormi Vates 🪐 XCP-ng Team
                  last edited by

                  Ping @nraynaud

                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO Offline
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    It's using Netdata streaming. Please read Netdata documentation.

                    1 Reply Last reply Reply Quote 1
                    • nraynaudN Offline
                      nraynaud XCP-ng Team @MrMike
                      last edited by

                      @MrMike Hi, The netdata on the hosts is configured to stream towards the Xen Orchestra VM when activated from there.

                      Nicolas.

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        MrMike
                        last edited by

                        yea, that's exactly what I was wondering. I'm curious how it was done. I was thinking of doing something similar for my ELK cluster and a few other systems.

                        1 Reply Last reply Reply Quote 0
                        • F Offline
                          frederikabay
                          last edited by

                          The Netdata plugin is really great, but would like to be able to stream to cloud.netdata but for that to work we need to have an updated package >=1.20

                          Is there a package update in the works?

                          1 Reply Last reply Reply Quote 0
                          • olivierlambertO Offline
                            olivierlambert Vates 🪐 Co-Founder CEO
                            last edited by

                            @stormi will update the package in a near future šŸ™‚ (we also have a fix that will land in there, done by @r1)

                            1 Reply Last reply Reply Quote 0
                            • stormiS Offline
                              stormi Vates 🪐 XCP-ng Team
                              last edited by stormi

                              Hmm, I did not plan to update netdata before the next release of XCP-ng, because I don't trust their QA enough for that. However I can provide updated packages in the testing repo.

                              1 Reply Last reply Reply Quote 1
                              • olivierlambertO Offline
                                olivierlambert Vates 🪐 Co-Founder CEO
                                last edited by

                                Testing would be fine when @r1 modification is done šŸ™‚ With enough community to test it, we can promote it into main then šŸ™‚

                                1 Reply Last reply Reply Quote 1
                                • P Offline
                                  PC_123 @olivierlambert
                                  last edited by

                                  @olivierlambert
                                  After running the command "yum install netdata-ui" on 2 hosts. Only one started working.

                                  I can reach the netdata page on the working server at: url:19999. I've rebooted the newer of the 2 servers and no matter what I've tried the netdata page doesn't appear.

                                  If I try the command again I receive an error indicating that the package is already installed and there is nothing to do.

                                  Is there an easy way to fix this or, what's the command to rollback this install?

                                  Thanks to everyone in the community (especially @olivierlambert) for your hard work on this software.

                                  1 Reply Last reply Reply Quote 0
                                  • olivierlambertO Offline
                                    olivierlambert Vates 🪐 Co-Founder CEO
                                    last edited by

                                    Double check your firewall on the "non working host". Also check if Netdata service is up šŸ™‚

                                    P 1 Reply Last reply Reply Quote 0
                                    • P Offline
                                      PC_123 @olivierlambert
                                      last edited by olivierlambert

                                      @olivierlambert

                                      Imagine that I don't know what to do. I've tried reviewing the Netdata documentation but it isn't specific to XCP-NG.

                                      I ran the below code and received a response. Does that indicate where the issue could be? Also...what code do you suggest I run to check to see if Netdata is running? Why can't it bind to the host address?

                                      [09:49 xcp-ng3 ~]# /usr/sbin/netdata
                                      2020-06-16 09:49:55: netdata INFO  : MAIN : SIGNAL: Not enabling reaper
                                      2020-06-16 09:49:55: netdata ERROR : MAIN : LISTENER: IPv4 bind() on ip '0.0.0.0' port 19999, socktype 1 failed. (errno 98, Address already in use)
                                      2020-06-16 09:49:55: netdata ERROR : MAIN : LISTENER: Cannot bind to ip '0.0.0.0', port 19999
                                      2020-06-16 09:49:55: netdata ERROR : MAIN : LISTENER: IPv6 bind() on ip '::' port 19999, socktype 1 failed. (errno 98, Address already in use)
                                      2020-06-16 09:49:55: netdata ERROR : MAIN : LISTENER: Cannot bind to ip '::', port 19999
                                      2020-06-16 09:49:55: netdata FATAL : MAIN :LISTENER: Cannot listen on any API socket. Exiting... # : Success
                                      
                                      2020-06-16 09:49:55: netdata INFO  : MAIN : EXIT: netdata prepares to exit with code 1...
                                      2020-06-16 09:49:55: netdata INFO  : MAIN : EXIT: cleaning up the database...
                                      2020-06-16 09:49:55: netdata INFO  : MAIN : Cleaning up database [0 hosts(s)]...
                                      2020-06-16 09:49:55: netdata INFO  : MAIN : EXIT: all done - netdata is now exiting - bye bye...
                                      
                                      stormiS 1 Reply Last reply Reply Quote 0
                                      • olivierlambertO Offline
                                        olivierlambert Vates 🪐 Co-Founder CEO
                                        last edited by

                                        @PC_123 said in Netdata package is now available in XCP-ng:

                                        Address already in use

                                        It means there's already a service listening on this port. Try to stop it and see if it's still there on this port.

                                        1 Reply Last reply Reply Quote 0
                                        • stormiS Offline
                                          stormi Vates 🪐 XCP-ng Team @PC_123
                                          last edited by

                                          @PC_123 said in Netdata package is now available in XCP-ng:

                                          Also...what code do you suggest I run to check to see if Netdata is running?

                                          systemctl status netdata.service

                                          P 1 Reply Last reply Reply Quote 0
                                          • P Offline
                                            PC_123 @stormi
                                            last edited by olivierlambert

                                            @stormi
                                            Green is a good.

                                            [10:06 xcp-ng3 ~]# systemctl status netdata.service
                                            ā— netdata.service - Real time performance monitoring
                                               Loaded: loaded (/usr/lib/systemd/system/netdata.service; enabled; vendor pres                                                        et: disabled)
                                               Active: active (running) since Tue 2020-06-16 09:48:42 EDT; 18min ago
                                              Process: 1588 ExecStartPre=/usr/libexec/netdata/xcpng-iptables-restore.sh (cod                                                        e=exited, status=0/SUCCESS)
                                              Process: 1523 ExecStartPre=/bin/chown -R netdata:netdata /var/run/netdata (cod                                                        e=exited, status=0/SUCCESS)
                                              Process: 1470 ExecStartPre=/bin/mkdir -p /var/run/netdata (code=exited, status                                                        =0/SUCCESS)
                                              Process: 1404 ExecStartPre=/bin/chown -R netdata:netdata /var/cache/netdata (c                                                        ode=exited, status=0/SUCCESS)
                                              Process: 1359 ExecStartPre=/bin/mkdir -p /var/cache/netdata (code=exited, stat                                                        us=0/SUCCESS)
                                             Main PID: 1861 (netdata)
                                               CGroup: /system.slice/netdata.service
                                                       ā”œā”€1861 /usr/sbin/netdata -P /var/run/netdata/netdata.pid -D -W set...
                                                       ā”œā”€2035 /usr/libexec/netdata/plugins.d/apps.plugin 1
                                                       ā”œā”€2058 /usr/libexec/netdata/plugins.d/go.d.plugin 1
                                                       ā”œā”€2063 /usr/libexec/netdata/plugins.d/xenstat.plugin 1
                                                       └─2069 /usr/bin/python /usr/libexec/netdata/plugins.d/python.d.plu...
                                            
                                            P 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post