problem with "qm" command while doing nagios monitoring

frantek

Renowned Member
May 30, 2009
171
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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!