Proxmox Checkscript

Skyministrator

New Member
Aug 29, 2025
4
1
3
Hello everyone.

I created a bash script, that checks for QEMU VMs the (non-)existing backups from PBS.
This script is useful, if:
  • multiple users (customers) uses your PVE
  • you own multiple PBS and want to verify retention
  • verify data privacy
Example, why this script is useful:
  1. Customer A deletes a VM with 3 backups
  2. couple days later, Customer B creates VM and gets same VMID --> possible to restore VM from customer A
This script doesn't solve this, but encounter it with notification to admins, so they can clean everything up.

My Script is on github, so if you don't mind, i would like to have feedback. :)

https://github.com/CaptainSky96/Proxmox-Checkscript
 
  • Like
Reactions: UdoB
Shouldn't dedicated namespaces or datastores for each customer avoid such issues? Nontheless I think such a Script can be useful to detect issues but it would be more useful if it would output the data in a Format suitable for parsing through a monitoing tool e.g. a nagios/icinga plugin or a Prometheus exporter
 
  • Like
Reactions: Skyministrator
Hi
I would like to try this but I run Proxmox stand alone not in a cluster. Is there a way to do this?

Thanks
 
Shouldn't dedicated namespaces or datastores for each customer avoid such issues? Nontheless I think such a Script can be useful to detect issues but it would be more useful if it would output the data in a Format suitable for parsing through a monitoing tool e.g. a nagios/icinga plugin or a Prometheus exporter
Thanks for the response. :)
To your question:

It depends.
With a larger number of customers/users, it can be difficult to manage the maintenance, even if it's monitored with ncpa, snmp etc..

For example: 1 Cluster with 15 Nodes. 2 PBS, each PBS with only 1 Datastore .
In this one Cluster, 200 customers are working. Some have their own software systems that interact with the Proxmox API, while others access the web UI directly.

But i can relate your point.
In my position: If an existing infrastructure is proven to be effective, i only can work with what i have. :)
 
Hi
I would like to try this but I run Proxmox stand alone not in a cluster. Is there a way to do this?

Thanks
Your Node is already a "cluster" on a normal PVE Installation. You can use this script.
Just check API Connection for the "Cluster" and for the PBS. The cluster get's information about all VMs, Node indipendent.