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 157.2k 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.
    • LunarstarPonyL Offline
      LunarstarPony @olivierlambert
      last edited by

      @olivierlambert

      Any idea how?
      Or what's the command to check that?

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

        If it runs, there's a netdata service that should be up

        LunarstarPonyL 1 Reply Last reply Reply Quote 0
        • LunarstarPonyL Offline
          LunarstarPony @olivierlambert
          last edited by

          @olivierlambert Hmmm How can I check that?

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

            It should be a systemd service IIRC, so systemctl status netdata

            LunarstarPonyL 1 Reply Last reply Reply Quote 0
            • LunarstarPonyL Offline
              LunarstarPony @olivierlambert
              last edited by olivierlambert

              @olivierlambert

              netdata.service - Real time performance monitoring
                 Loaded: loaded (/usr/lib/systemd/system/netdata.service; enabled; vendor preset: disabled)
                 Active: active (running) since Wed 2021-05-05 14:57:09 CST; 1h 27min ago
                Process: 1620 ExecStartPre=/usr/libexec/netdata/xcpng-iptables-restore.sh (code=exited, status=0/SUCCESS)
                Process: 1617 ExecStartPre=/bin/chown -R netdata:netdata /var/run/netdata (code=exited, status=0/SUCCESS)
                Process: 1612 ExecStartPre=/bin/mkdir -p /var/run/netdata (code=exited, status=0/SUCCESS)
                Process: 1608 ExecStartPre=/bin/chown -R netdata:netdata /var/cache/netdata (code=exited, status=0/SUCCESS)
                Process: 1604 ExecStartPre=/bin/mkdir -p /var/cache/netdata (code=exited, status=0/SUCCESS)
               Main PID: 1625 (netdata)
                 CGroup: /system.slice/netdata.service
                         ├─ 1625 /usr/sbin/netdata -P /var/run/netdata/netdata.pid -D -W set global process scheduling policy keep -W set global OOM score keep
                         ├─ 1658 /usr/libexec/netdata/plugins.d/go.d.plugin 1
                         ├─ 1659 /usr/bin/python /usr/libexec/netdata/plugins.d/python.d.plugin 1
                         ├─ 1661 /usr/libexec/netdata/plugins.d/xenstat.plugin 1
                         ├─ 1663 /usr/libexec/netdata/plugins.d/freeipmi.plugin 1
                         ├─ 1684 /usr/libexec/netdata/plugins.d/apps.plugin 1
                         └─16285 bash /usr/libexec/netdata/plugins.d/tc-qos-helper.sh 1
              

              It seems working

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

                Then check if it's streaming correctly to the target 🙂

                LunarstarPonyL 1 Reply Last reply Reply Quote 0
                • LunarstarPonyL Offline
                  LunarstarPony @olivierlambert
                  last edited by LunarstarPony

                  @olivierlambert
                  BTW Will Changing Hostname on the server break this?
                  I just change it's hostname recently

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

                    Yes it's probably that.

                    LunarstarPonyL 1 Reply Last reply Reply Quote 0
                    • LunarstarPonyL Offline
                      LunarstarPony @olivierlambert
                      last edited by

                      @olivierlambert
                      Well Anyway to fix it or reinstall it?

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

                        You should take a look in the netdata config on your host and check if it's streaming to the right XOA, check Netdata logs and so on.

                        LunarstarPonyL 1 Reply Last reply Reply Quote 0
                        • LunarstarPonyL Offline
                          LunarstarPony @olivierlambert
                          last edited by

                          @olivierlambert Any idea where's the netdata config file location?

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

                            /etc/netdata/streaming.conf IIRC.

                            LunarstarPonyL 1 Reply Last reply Reply Quote 0
                            • LunarstarPonyL Offline
                              LunarstarPony @stormi
                              last edited by olivierlambert

                              @stormi

                              # do not edit, managed by XCP-ng
                              
                              [stream]
                                  # Enable this on slaves, to have them send metrics.
                                  enabled = yes
                                  destination = tcp:*********.****.****:19999
                                  api key = 0b607150-79c6-11eb-9575-c210359af93e
                                  timeout seconds = 60
                                  default port = 19999
                                  send charts matching = *
                                  buffer size bytes = 1048576
                                  reconnect delay seconds = 5
                                  initial clock resync iterations = 60
                              

                              I found these in stream.conf

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

                                Is the destination matches XO IP address?

                                LunarstarPonyL 1 Reply Last reply Reply Quote 0
                                • LunarstarPonyL Offline
                                  LunarstarPony @olivierlambert
                                  last edited by

                                  @olivierlambert
                                  Yup It does match XOA's IP Address

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

                                    So check netdata logs in /var/log to see if there's any error.

                                    LunarstarPonyL 1 Reply Last reply Reply Quote 0
                                    • LunarstarPonyL Offline
                                      LunarstarPony @olivierlambert
                                      last edited by

                                      This post is deleted!
                                      1 Reply Last reply Reply Quote 0
                                      • stormiS Offline
                                        stormi Vates 🪐 XCP-ng Team
                                        last edited by stormi

                                        I see this, which looks good at first sight:

                                        2021-05-05 14:53:06: netdata INFO  : STREAM_SENDER[localhost] : STREAM localhost [send to tcp:XXX:19999]: connecting...
                                        2021-05-05 14:53:06: netdata INFO  : STREAM_SENDER[localhost] : STREAM localhost [send to tcp:XXX:19999]: initializing communication...
                                        2021-05-05 14:53:06: netdata INFO  : STREAM_SENDER[localhost] : STREAM localhost [send to tcp:XXX:19999]: waiting response from remote netdata...
                                        2021-05-05 14:53:06: netdata INFO  : STREAM_SENDER[localhost] : STREAM localhost [send to tcp:XXX:19999]: established communication - ready to send metrics...
                                        2021-05-05 14:53:07: netdata INFO  : PLUGIN[tc] : STREAM localhost [send]: sending metrics..
                                        

                                        (caution: your log contains the IP address you masked earlier)

                                        LunarstarPonyL 1 Reply Last reply Reply Quote 1
                                        • LunarstarPonyL Offline
                                          LunarstarPony @stormi
                                          last edited by LunarstarPony

                                          @stormi Oh No, have any idea what might be the problem?

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

                                            No, I don't know where the problem resides exactly.

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • First post
                                              Last post