Error message:
Since updating proxmox backup client to latest version the proxmox special agent is crashing:
ValueError (could not convert string to float: ‘53.75 s (average 18.894 MiB/’)
It seems like they changed the output for completed backups. The running time has now an “average” value and so parsing this value into checkmk (and convert it to float) make it crash.
File “/omd/sites/cmk/lib/python3/cmk/special_agents/agent_proxmox_ve.py”, line 358, in _extract_logs
current_dataset[“backup_time”] = float(backup_time)
Crash Log is committed ( 83d1a922-2875-11ef-a408-f29af79d99ec )
Just one more question: Which repo did you get the 3.2.5-1 from? Are you using pvetest perhaps? Because in deb Index of /debian/pve/ bookworm pve-no-subscription the backup client is still on 3.2.4-1.
It’s just good to know. Sooner or later this line will be in the stable release of Proxmox. That way we still have a few days before more users will be affected by this.
So: Thanks for reporting this - let’s say - ahead of time. I will post here again, when the check is adapted to this new output.
After installing 2.3.0p7 bug still exists. The Agent isn’t crashing anymore (Werk #16988) but piggyback data still can’t be read (float error as before).
Find a solution and I think it will work for old and new version.
would it be possible for you to the test the following .mkp in your Checkmk site? We just need to confirm this works, before we can add it to the next patch release.
Since the change in Proxmox only seems to apply in very special circumstances (“split pxar archives”), I am not able to reproduce it in a timely manner. Your help would be appreciated.
I have installed it over the gui and activated it on the site.
Then I got the message: [special_proxmox_ve] ModuleNotFoundError: No module named 'cmk.special_agents.utils.agent_common
Did I miss something?
Edit: Line 38 ff.
Before: from cmk.special_agents.v0_unstable.agent_common [...] from cmk.special_agents.v0_unstable.argument_parsing [...] from cmk.special_agents.v0_unstable.misc [...]
Afterwards: from cmk.special_agents.utils.agent_common [...] from cmk.special_agents.utils.argument_parsing [...] from cmk.special_agents.utils.misc [...]
Some internal changes? Changing those lines everything works.
Unfortunately these werk descriptions are not linked to any git/github commit id or something like this, so this makes tracking changes quite challenging for third-party developers. However, see here for the corresponding werk commit on github:
Hi @ampfinger , I have the same issue but it’s unclear to me how to solve it. I used the mkp provided, changed the import lines, but I still get the ModuleNotFoundError: No module named 'cmk.special_agents.utils.agent_common error. And I see 2.3.0p11 is not out yet (using p10 now). Can you advise how you solved it in the end? Thanks!