problem with "qm" command while doing nagios monitoring

frantek

Renowned Member
May 30, 2009
176
7
83
Hi,

I've writte a check_mk check for nagios monitoring KVM VM's. It just issues:

qm list

to get the required data. I also use the Proxmox backup funktion. The backups are stored on a external USB disk which is mounted by automounter when required. All this works as expected.

Now for my problem: Nagios checkst the system frequently. My problem is that when ever "qm" is called - even for a simple "list" - the backup directory gets touched and so automounted. This causes the disk to be mounted for ever and it can not been savely removed.

Is there any chance preventing "qm list" from touching the backup directory ?

TIA
Matthias
 
Hi,

I've writte a check_mk check for nagios monitoring KVM VM's. It just issues:

qm list

to get the required data. I also use the Proxmox backup funktion. The backups are stored on a external USB disk which is mounted by automounter when required. All this works as expected.

Now for my problem: Nagios checkst the system frequently. My problem is that when ever "qm" is called - even for a simple "list" - the backup directory gets touched and so automounted. This causes the disk to be mounted for ever and it can not been savely removed.

Is there any chance preventing "qm list" from touching the backup directory ?

TIA
Matthias
Hi,
I don't know if it work or be different, but what happens if your backup-dir is an link to the usb-disk and not the usb-disk-mount? like /backup -> /mnt/backup

But i guess it's the same result.

Udo