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

    Monitor Backups - Last backup for VM

    Scheduled Pinned Locked Moved Xen Orchestra
    14 Posts 4 Posters 3.5k Views 4 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.
    • K Offline
      KPS Top contributor
      last edited by

      Hi!

      I want to do some external monitoring to see, if e.g. VMs are not backuped within the last 24h.

      Did anyone of you write an API-script to get something like:
      Timestamp-Of-Last-Backup;VM-Name

      Thank you and best wishes

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

        Hi,

        Do you already have a monitoring solution? If not, then let me ask internally, I think we've been asked that in the past 🙂

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

          Adding @julien-f in the loop

          1 Reply Last reply Reply Quote 0
          • K Offline
            KPS Top contributor @olivierlambert
            last edited by

            @olivierlambert
            We are using PRTG as monitoring system. Our "old" backup-system is connected through the API to:

            • List VMs that do not have the "nobackup-flag"
            • Check if backup with age <24h is available
            • Check if offsite-backup with age <48h is available

            --> Sends number of VMs with and without backups as XML-output

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

              @KPS Have you checked our Nagios plugin?

              It got some major improvements last release (cf 5.77 blogpost).

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

                If I get it correctly, @KPS doesn't use Nagios

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

                  You can use Vinchin Backup & Recovery to monitor VM backup job in real time. There is a graphical interface presenting the status of the whole backup system.

                  K olivierlambertO 2 Replies Last reply Reply Quote 0
                  • K Offline
                    KPS Top contributor @miller1
                    last edited by

                    @miller1
                    Vinchin is looking great at the first look and offers some great features like LAN-free-backup, that can be A LOT faster, than the "classical" approach and Instant-Recover.

                    But in other points it is VERY limited and IMHO not enterprise-ready:

                    • No smart-backups! You have to define manually which VM is backed up in which job - not by Tag, name, state, etc.
                    • Absolutely NO API, no Syslog, no real reporting - only basic mail notifications
                    1 Reply Last reply Reply Quote 0
                    • olivierlambertO Online
                      olivierlambert Vates 🪐 Co-Founder CEO
                      last edited by

                      @julien-f what alternative do we have (even CLI) to get what @KPS is asking?

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

                        @miller1 Just first post to talk specifically about Vinchin 🤔 This looks a bit spammy. If you want to promote it, it would be better to be more transparent 😉

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

                          @olivierlambert

                          > xo-cli --list-commands backupNg.getLogs
                          backupNg.getLogs [after=<number|string>] [before=<number|string>] [limit=<number>] *=<unknown type>
                          
                          1 Reply Last reply Reply Quote 1
                          • olivierlambertO Online
                            olivierlambert Vates 🪐 Co-Founder CEO
                            last edited by

                            I suppose that answer your requirement @KPS ?

                            K 1 Reply Last reply Reply Quote 0
                            • K Offline
                              KPS Top contributor @olivierlambert
                              last edited by

                              @olivierlambert
                              I will try to build something with that base. The problem is, that I first need a list of the VMs to check for every VM the logs about the last successful backup.

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

                                @KPS You can use xo-cli --list-objects type=VM.

                                Also you should only get the backup logs once and join with the VM list, because backupNg.getLogs is heavy.

                                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