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

    Having trouble configuring transport-nagios after latest update

    Scheduled Pinned Locked Moved Xen Orchestra
    5 Posts 4 Posters 1.2k Views 3 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.
    • I Offline
      ilidza
      last edited by

      Hi,

      I am running xo from sources on the latest commit and have noticed that the configuration from older versions for transport-nagios NSCA backup reports no longer sends data to my check_mk server.
      I've seen in patch notes that there was an update and improvement to the way reports are sent but I am having trouble adjusting the configuration.
      So the server, port and key stays the same, but host and service should be adjusted. The old configuration was like this:

      host: xo hostname as defined on nagios
      service: service name as defined on nagios

      I have tried to add {vm.name_label} to host and {job.name} to service as the description in GUI suggests but the monitoring server isn't getting any reports. Can anyone provide additional info on how this should be setup ?

      Thanks

      AnonabharA 1 Reply Last reply Reply Quote 0
      • AnonabharA Offline
        Anonabhar @ilidza
        last edited by

        @ilidza I dont use Nagios reporting myself, but I noticed in my /var/log/orchestra.log the following after the last git pull. You might want to see if there is anything in there that looks similar:

        2022-12-14T00:00:35.623Z xo:server:handleBackupLog WARN sendToNagios: TypeError: app.sendPassiveCheck is not a function
            at sendToNagios (file:///root/XO/xen-orchestra/packages/xo-server/src/_handleBackupLog.mjs:21:15)
            at handleBackupLog (file:///root/XO/xen-orchestra/packages/xo-server/src/_handleBackupLog.mjs:69:9)
            at file:///root/XO/xen-orchestra/packages/xo-server/src/xo-mixins/backups-ng/index.mjs:317:17
            at ChildProcess.<anonymous> (/root/XO/xen-orchestra/@xen-orchestra/backups/runBackupWorker.js:27:11)
            at ChildProcess.emit (node:events:513:28)
            at ChildProcess.patchedEmit [as emit] (/root/XO/xen-orchestra/@xen-orchestra/log/configure.js:135:17)
            at emit (node:internal/child_process:937:14)
            at processTicksAndRejections (node:internal/process/task_queues:83:21)
        
        1 Reply Last reply Reply Quote 0
        • DanpD Online
          Danp Pro Support Team
          last edited by

          @julien-f Is this comparison correct? Shouldn't it bail on the opposite condition (equal instead of not equal)?

          https://github.com/vatesfr/xen-orchestra/commit/ba782d2698d3d3af25c8a07d932539e1ef772113

          0 julien-f committed to vatesfr/xen-orchestra
          fix(xo-server/_handleBackupLog): bail instead of failing if Nagios plugin is not loaded
          
          Introduced by ed34d9cbc
          julien-fJ 1 Reply Last reply Reply Quote 0
          • julien-fJ Offline
            julien-f Vates 🪐 Co-Founder XO Team @Danp
            last edited by

            @Danp 😭

            julien-fJ 1 Reply Last reply Reply Quote 0
            • julien-fJ Offline
              julien-f Vates 🪐 Co-Founder XO Team @julien-f
              last edited by

              Fixed by https://github.com/vatesfr/xen-orchestra/commit/9dda99eb2089eaf163b68ea817bf990872cf2d22

              @Danp Thank you 🙏

              0 julien-f committed to vatesfr/xen-orchestra
              fix(xo-server/_handleBackupLog): fix sendPassiveCheck condition
              
              Introduced by ba782d269
              
              Fixes https://xcp-ng.org/forum/post/56175
              1 Reply Last reply Reply Quote 1

              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