Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion cmk/plugins/proxmox_ve/special_agent/agent_proxmox_ve.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,17 @@ def agent_proxmox_ve_main(args: Args) -> int:
)

LOGGER.info("Fetch and process backup logs..")
logged_backup_data = fetch_backup_data(args, session, data["nodes"])
logged_backup_data = {}

for node in data["nodes"]:
try:
node_backups = fetch_backup_data(args, session, [node])
if not node_backups:
LOGGER.info(f"No backups found for any VMs on node {node}")
else:
logged_backup_data.update(node_backups)
except Exception as e:
LOGGER.warning(f"Could not fetch backup logs for node {node} due to: {e}")

all_vms = {
str(entry["vmid"]): entry
Expand Down
Loading