edvler / check_mk_proxmox-qemu-backup

Check MK Plugin to check Proxmox VM guest (QEMU) backups
GNU General Public License v2.0
18 stars 7 forks source link

Plugin crashes after Backup #7

Closed weirerit closed 4 years ago

weirerit commented 4 years ago

Hy, since we updated Proxmox to 6.2-10, the Plugin / Check crashes every day. Output as attached is correct (i think). agent-output.log We use CheckMK version 1.6.0p13

boospy commented 4 years ago

Same here at myhomelab.

edvler commented 4 years ago

Hello! I am releasing a new version in a few days! You can test it by replacing the extract several infos part in YOUR-SITE-PATH/local/share/check_mk/checks/proxmox_qemu_backup file.

            try:
                #extract several infos
                if line[offset+5] == 'vzdump':
                    if line[offset+3] + ' ' + line[offset+4] + ' ' + line[offset+5] + ' ' + line[offset+6] == 'INFO: creating vzdump archive':
                        file_created = line
                else:
                    if line[offset+3] + ' ' + line[offset+4] + ' ' + line[offset+5] == 'INFO: creating archive':
                        file_created = line

                if line[offset+3] + ' ' + line[offset+4] + ' ' + line[offset+5] + ' ' + line[offset+6] == 'INFO: archive file size:':
                    archive = line
weirerit commented 4 years ago

Hi, i've replaced the lines - but there is the same issue.

edvler commented 4 years ago

Hi,

please try to install the new mkp from the release v1.1.1.

I've updated my Proxmox to 6.2-10 and it works for me. https://github.com/edvler/check_mk_proxmox-qemu-backup/releases/tag/v1.1.1

Greets Matthias

weirerit commented 4 years ago

Thanks, it works now!