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

    Should the Audit Logs functionality work in the sources XOA?

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    9 Posts 3 Posters 1.6k Views 1 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.
    • P Offline
      pnunn
      last edited by

      Just following the bouncing ball on https://xen-orchestra.com/blog/xo-audit/ in my lab XOA from sources (recently updated and re-built) and it doesn't seem to want to work. Not a show stopper for my by any means, just thought I'd report it incase this was a problem.

      When I try and generate a new fingerprint I get..

      vm.stats
      {
        "id": "dad6b031-f28f-2d5b-d345-1ff8e328f422"
      }
      {
        "message": "Unable to get the true granularity: 60",
        "name": "FaultyGranularity",
        "stack": "FaultyGranularity: Unable to get the true granularity: 60
          at XapiStats._getAndUpdateStats (/home/pnunn/xen-orchestra/packages/xo-server/src/xapi-stats.js:378:13)"
      } 
      

      Again, not sure if this needs to be registered to make this work or not... but there you go.

      Peter.

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

        Do you have the plugin enabled on your "from the sources" install?

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

          Ping @badrAZ

          1 Reply Last reply Reply Quote 0
          • badrAZB Offline
            badrAZ
            last edited by badrAZ

            Hi,

            The Audit logs functionality is only for users with a Premium plan. It'll not work for XO source.

            We'll update the UI to mention it.

            Edit: The Audit plugin works from source, only the storing of the hashes in our servers will not be available for the source version.

            1 Reply Last reply Reply Quote 0
            • P Offline
              pnunn
              last edited by

              OK, no dramas. That explains it. UI change would be a good thing. 🙂

              1 Reply Last reply Reply Quote 0
              • badrAZB Offline
                badrAZ
                last edited by badrAZ

                @pnunn I'm sorry my bad. The plugin will work for the source version. Did you have the Audit plugin enabled in the settings/plugins ?

                1 Reply Last reply Reply Quote 0
                • P Offline
                  pnunn
                  last edited by

                  Um... no.. I have "no plugins found" under settings->plugins. Maybe need to install it??

                  P.

                  1 Reply Last reply Reply Quote 0
                  • badrAZB Offline
                    badrAZ
                    last edited by

                    Yes, to use it, the plugin need to be in the xo-server's node_modules.

                    P 1 Reply Last reply Reply Quote 0
                    • P Offline
                      pnunn @badrAZ
                      last edited by

                      @badrAZ Yep.. that did the trick..

                      All working now.. nice. 🙂

                      1 Reply Last reply Reply Quote 1
                      • tjkreidlT tjkreidl referenced this topic on

                      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