The plugin crashes (on the check_mk site) regularly. If I see it right, it crashes while a backups is executed. I'm using check-mk 1.6.0b5 .
I'm not sure if it's the same bug as #1 , but I've tried the changed files from there, and it is exactly the same behaviour. Here the crash log:
Exception
IndexError (list index out of range)
Traceback
File "/omd/sites/rmm/lib/python/cmk_base/checking.py", line 319, in execute_check
raw_result = check_function(item, determine_check_params(params), section_content)
File "/omd/sites/rmm/local/share/check_mk/checks/proxmox_qemu_backup", line 112, in check_qemu_backup
startdate = getDateFromFileCreated(file_created[offset+6].split("/")[-1])
Locale variables
{'archive': 'nothing',
'content': u'05',
'd': time.struct_time(tm_year=2019, tm_mon=8, tm_mday=14, tm_hour=3, tm_min=17, tm_sec=49, tm_wday=2, tm_yday=226, tm_isdst=-1),
'error_count': 0,
'file_created': [u'/var/log/vzdump/qemu-100.log',
u'2019-08-14',
u'03:17:49',
u'INFO:',
u'creating',
u'archive',
u"'/mnt/backup_usb/dump/vzdump-qemu-100-2019_08_14-03_17_47.vma.gz'"],
'finished': 'nothing',
'info': [[u'QEMU-MACHINE;;;;;/etc/pve/qemu-server/104.conf;;;;;fischprogramme2'],
[u'QEMU-MACHINE;;;;;/etc/pve/qemu-server/100.conf;;;;;lasso'],
[u'QEMU-MACHINE;;;;;/etc/pve/qemu-server/105.conf;;;;;Win7Pro64bit'],
[u'QEMU-MACHINE;;;;;/etc/pve/qemu-server/103.conf;;;;;lasso-old'],
[u'/var/log/vzdump/qemu-100.log',
u'2019-08-14',
u'03:17:47',
u'INFO:',
u'Starting',
u'Backup',
u'of',
u'VM',
u'100',
u'(qemu)'],
[u'/var/log/vzdump/qemu-100.log',
u'2019-08-14',
u'03:17:47',
u'INFO:',
u'status',
u'=',
u'running'],
[u'/var/log/vzdump/qemu-100.log',
u'2019-08-14',
u'03:17:48',
u'INFO:',
u'update',
u'VM',
u'100:',
u'-lock',
u'backup'],
[u'/var/log/vzdump/qemu-100.log',
u'2019-08-14',
u'03:17:48',
u'INFO:',
u'VM',
u'Name:',
u'lasso'],
[u'/var/log/vzdump/qemu-100.log',
u'2019-08-14',
u'03:17:48',
u'INFO:',
u'include',
u'disk',
u"'virtio0'",
u"'lvm-vg-pve:vm-100-disk-2'",
u'250G'],
[u'/var/log/vzdump/qemu-100.log',
u'2019-08-14',
u'03:17:48',
u'INFO:',
u'include',
u'disk',
u"'virtio1'",
u"'lvm-vg-pve:vm-100-disk-1'",
u'2G'],
[u'/var/log/vzdump/qemu-100.log',
u'2019-08-14',
u'03:17:49',
u'INFO:',
u'backup',
u'mode:',
u'snapshot'],
[u'/var/log/vzdump/qemu-100.log',
u'2019-08-14',
u'03:17:49',
u'INFO:',
u'ionice',
u'priority:',
u'7'],
[u'/var/log/vzdump/qemu-100.log',
u'2019-08-14',
u'03:17:49',
u'INFO:',
u'creating',
u'archive',
u"'/mnt/backup_usb/dump/vzdump-qemu-100-2019_08_14-03_17_47.vma.gz'"],
[u'/var/log/vzdump/qemu-100.log',
u'2019-08-14',
u'03:17:49',
u'INFO:',
u'started',
u'backup',
u'task',
u"'5e435ff3-b78c-4f21-b837-30f6c2b6ee17'"],
[u'/var/log/vzdump/qemu-100.log', u'2019-08-14', u'05'],
[u'/var/log/vzdump/qemu-103.log',
u'2019-06-14',
u'00:15:02',
u'INFO:',
u'Starting',
u'Backup',
u'of',
u'VM',
u'103',
u'(qemu)'],
[u'/var/log/vzdump/qemu-103.log',
u'2019-06-14',
u'00:15:02',
u'INFO:',
u'status',
u'=',
u'running'],
[u'/var/log/vzdump/qemu-103.log',
u'2019-06-14',
u'00:15:03',
u'INFO:',
u'update',
u'VM',
u'103:',
u'-lock',
u'backup'],
[u'/var/log/vzdump/qemu-103.log',
u'2019-06-14',
u'00:15:03',
u'INFO:',
u'VM',
u'Name:',
u'lasso2'],
[u'/var/log/vzdump/qemu-103.log',
u'2019-06-14',
u'00:15:03',
u'INFO:',
u'include',
u'disk',
u"'virtio0'",
u"'lvm-vg-pve:vm-103-disk-1'",
u'200G'],
[u'/var/log/vzdump/qemu-103.log',
u'2019-06-14',
u'00:15:03',
u'INFO:',
u'include',
u'disk',
u"'virtio1'",
u"'lvm-vg-pve:vm-103-disk-2'",
u'2G'],
[u'/var/log/vzdump/qemu-103.log',
u'2019-06-14',
u'00:15:03',
u'INFO:',
u'backup',
u'mode:',
u'snapshot'],
[u'/var/log/vzdump/qemu-103.log',
u'2019-06-14',
u'00:15:03',
u'INFO:',
u'ionice',
u'priority:',
u'7'],
[u'/var/log/vzdump/qemu-103.log',
u'2019-06-14',
u'00:15:03',
u'INFO:',
u'creating',
u'archive',
u"'/mnt/backup_usb/dump/vzdump-qemu-103-2019_06_14-00_15_02.vma.gz'"],
[u'/var/log/vzdump/qemu-103.log',
u'2019-06-14',
u'00:15:03',
u'INFO:',
u'started',
u'backup',
u'task',
u"'ba7c6dbb-caf2-4cd5-bca5-9a6ec98033d8'"],
[u'/var/log/vzdump/qemu-103.log',
u'2019-06-14',
u'00:27:09',
u'ERROR:',
u'vma_queue_write:',
u'write',
u'error',
u'-',
u'Broken',
u'pipe'],
[u'/var/log/vzdump/qemu-103.log',
u'2019-06-14',
u'00:27:09',
u'INFO:',
u'aborting',
u'backup',
u'job'],
[u'/var/log/vzdump/qemu-103.log',
u'2019-06-14',
u'00:27:11',
u'ERROR:',
u'Backup',
u'of',
u'VM',
u'103',
u'failed',
u'-',
u'vma_queue_write:',
u'write',
u'error',
u'-',
u'Broken',
u'pipe'],
[u'/var/log/vzdump/qemu-104.log',
u'2019-08-14',
u'02:34:41',
u'INFO:',
u'Starting',
u'Backup',
u'of',
u'VM',
u'104',
u'(qemu)'],
[u'/var/log/vzdump/qemu-104.log',
u'2019-08-14',
u'02:34:41',
u'INFO:',
u'status',
u'=',
u'running'],
[u'/var/log/vzdump/qemu-104.log',
u'2019-08-14',
u'02:34:42',
u'INFO:',
u'update',
u'VM',
u'104:',
u'-lock',
u'backup'],
[u'/var/log/vzdump/qemu-104.log',
u'2019-08-14',
u'02:34:42',
u'INFO:',
u'VM',
u'Name:',
u'fischprogramme2'],
[u'/var/log/vzdump/qemu-104.log',
u'2019-08-14',
u'02:34:42',
u'INFO:',
u'include',
u'disk',
u"'virtio0'",
u"'lvm-vg-pve:vm-104-disk-2'",
u'50G'],
[u'/var/log/vzdump/qemu-104.log',
u'2019-08-14',
u'02:34:42',
u'INFO:',
u'include',
u'disk',
u"'virtio1'",
u"'lvm-vg-pve:vm-104-disk-1'",
u'2G'],
[u'/var/log/vzdump/qemu-104.log',
u'2019-08-14',
u'02:34:42',
u'INFO:',
u'backup',
u'mode:',
u'snapshot'],
[u'/var/log/vzdump/qemu-104.log',
u'2019-08-14',
u'02:34:42',
u'INFO:',
u'ionice',
u'priority:',
u'7'],
[u'/var/log/vzdump/qemu-104.log',
u'2019-08-14',
u'02:34:42',
u'INFO:',
u'creating',
u'archive',
u"'/mnt/backup_usb/dump/vzdump-qemu-104-2019_08_14-02_34_41.vma.gz'"],
[u'/var/log/vzdump/qemu-104.log',
u'2019-08-14',
u'02:34:42',
u'INFO:',
u'started',
u'backup',
u'task',
u"'88704680-7481-4107-840b-f2fb9298d331'"],
[u'/var/log/vzdump/qemu-104.log',
u'2019-08-14',
u'03:17:46',
u'INFO:',
u'transferred',
u'55834',
u'MB',
u'in',
u'2584',
u'seconds',
u'(21',
u'MB/s)'],
[u'/var/log/vzdump/qemu-104.log',
u'2019-08-14',
u'03:17:46',
u'INFO:',
u'archive',
u'file',
u'size:',
u'8.93GB'],
[u'/var/log/vzdump/qemu-104.log',
u'2019-08-14',
u'03:17:47',
u'INFO:',
u'Finished',
u'Backup',
u'of',
u'VM',
u'104',
u'(00:43:06)']],
'item': u'lasso Id: 100',
'line': [u'/var/log/vzdump/qemu-104.log',
u'2019-08-14',
u'03:17:47',
u'INFO:',
u'Finished',
u'Backup',
u'of',
u'VM',
u'104',
u'(00:43:06)'],
'line_count': 11,
'logfile': u'/var/log/vzdump/qemu-100.log',
'offset': 1,
'params': {'backup_age': (93600, 108000),
'check_backup': 'check',
'running_time': 25200},
'qemu_id': u'100',
'started': [u'/var/log/vzdump/qemu-100.log',
u'2019-08-14',
u'03:17:47',
u'INFO:',
u'Starting',
u'Backup',
u'of',
u'VM',
u'100',
u'(qemu)'],
'warn_count': 0}
Agent output
<<<proxmox_qemu_backup>>>
QEMU-MACHINE;;;;;/etc/pve/qemu-server/104.conf;;;;;fischprogramme2
QEMU-MACHINE;;;;;/etc/pve/qemu-server/100.conf;;;;;lasso
QEMU-MACHINE;;;;;/etc/pve/qemu-server/105.conf;;;;;Win7Pro64bit
QEMU-MACHINE;;;;;/etc/pve/qemu-server/103.conf;;;;;lasso-old
/var/log/vzdump/qemu-100.log 2019-08-14 03:17:47 INFO: Starting Backup of VM 100 (qemu)
/var/log/vzdump/qemu-100.log 2019-08-14 03:17:47 INFO: status = running
/var/log/vzdump/qemu-100.log 2019-08-14 03:17:48 INFO: update VM 100: -lock backup
/var/log/vzdump/qemu-100.log 2019-08-14 03:17:48 INFO: VM Name: lasso
/var/log/vzdump/qemu-100.log 2019-08-14 03:17:48 INFO: include disk 'virtio0' 'lvm-vg-pve:vm-100-disk-2' 250G
/var/log/vzdump/qemu-100.log 2019-08-14 03:17:48 INFO: include disk 'virtio1' 'lvm-vg-pve:vm-100-disk-1' 2G
/var/log/vzdump/qemu-100.log 2019-08-14 03:17:49 INFO: backup mode: snapshot
/var/log/vzdump/qemu-100.log 2019-08-14 03:17:49 INFO: ionice priority: 7
/var/log/vzdump/qemu-100.log 2019-08-14 03:17:49 INFO: creating archive '/mnt/backup_usb/dump/vzdump-qemu-100-2019_08_14-03_17_47.vma.gz'
/var/log/vzdump/qemu-100.log 2019-08-14 03:17:49 INFO: started backup task '5e435ff3-b78c-4f21-b837-30f6c2b6ee17'
/var/log/vzdump/qemu-100.log 2019-08-14 05
/var/log/vzdump/qemu-103.log 2019-06-14 00:15:02 INFO: Starting Backup of VM 103 (qemu)
/var/log/vzdump/qemu-103.log 2019-06-14 00:15:02 INFO: status = running
/var/log/vzdump/qemu-103.log 2019-06-14 00:15:03 INFO: update VM 103: -lock backup
/var/log/vzdump/qemu-103.log 2019-06-14 00:15:03 INFO: VM Name: lasso2
/var/log/vzdump/qemu-103.log 2019-06-14 00:15:03 INFO: include disk 'virtio0' 'lvm-vg-pve:vm-103-disk-1' 200G
/var/log/vzdump/qemu-103.log 2019-06-14 00:15:03 INFO: include disk 'virtio1' 'lvm-vg-pve:vm-103-disk-2' 2G
/var/log/vzdump/qemu-103.log 2019-06-14 00:15:03 INFO: backup mode: snapshot
/var/log/vzdump/qemu-103.log 2019-06-14 00:15:03 INFO: ionice priority: 7
/var/log/vzdump/qemu-103.log 2019-06-14 00:15:03 INFO: creating archive '/mnt/backup_usb/dump/vzdump-qemu-103-2019_06_14-00_15_02.vma.gz'
/var/log/vzdump/qemu-103.log 2019-06-14 00:15:03 INFO: started backup task 'ba7c6dbb-caf2-4cd5-bca5-9a6ec98033d8'
/var/log/vzdump/qemu-103.log 2019-06-14 00:27:09 ERROR: vma_queue_write: write error - Broken pipe
/var/log/vzdump/qemu-103.log 2019-06-14 00:27:09 INFO: aborting backup job
/var/log/vzdump/qemu-103.log 2019-06-14 00:27:11 ERROR: Backup of VM 103 failed - vma_queue_write: write error - Broken pipe
/var/log/vzdump/qemu-104.log 2019-08-14 02:34:41 INFO: Starting Backup of VM 104 (qemu)
/var/log/vzdump/qemu-104.log 2019-08-14 02:34:41 INFO: status = running
/var/log/vzdump/qemu-104.log 2019-08-14 02:34:42 INFO: update VM 104: -lock backup
/var/log/vzdump/qemu-104.log 2019-08-14 02:34:42 INFO: VM Name: fischprogramme2
/var/log/vzdump/qemu-104.log 2019-08-14 02:34:42 INFO: include disk 'virtio0' 'lvm-vg-pve:vm-104-disk-2' 50G
/var/log/vzdump/qemu-104.log 2019-08-14 02:34:42 INFO: include disk 'virtio1' 'lvm-vg-pve:vm-104-disk-1' 2G
/var/log/vzdump/qemu-104.log 2019-08-14 02:34:42 INFO: backup mode: snapshot
/var/log/vzdump/qemu-104.log 2019-08-14 02:34:42 INFO: ionice priority: 7
/var/log/vzdump/qemu-104.log 2019-08-14 02:34:42 INFO: creating archive '/mnt/backup_usb/dump/vzdump-qemu-104-2019_08_14-02_34_41.vma.gz'
/var/log/vzdump/qemu-104.log 2019-08-14 02:34:42 INFO: started backup task '88704680-7481-4107-840b-f2fb9298d331'
/var/log/vzdump/qemu-104.log 2019-08-14 03:17:46 INFO: transferred 55834 MB in 2584 seconds (21 MB/s)
/var/log/vzdump/qemu-104.log 2019-08-14 03:17:46 INFO: archive file size: 8.93GB
/var/log/vzdump/qemu-104.log 2019-08-14 03:17:47 INFO: Finished Backup of VM 104 (00:43:06)