I installed the plugin that monitors the backup age of VMs on ProxMox. However, for some reason I find that the backup of two of the VMs is reported incorrectly:
Ah good question. I followed the instructions in the link you provided earlier. That allowed me to setup monitoring of the clustered services properly. But I didn’t see the option of monitoring the status and age of the last backup in the special agent. Did I miss something there? If so, I’d be happy to use the special agent for monitoring of the backups as well.
You will not see it in the special agent/at the node level. Instead, it generates piggybacked data for the monitored VM.
So if the VM is called for example vm1.domain.com in Proxmox and has the same name in Checkmk, then the data is attached to it automatically. (case sensitive!)
If the names do not match, you will have to write a rule of the type “Hostname translation for piggybacked hosts” - but I prefer to have simply the same names - makes life much easier.
Well, my hostnames do match, so that shouldn’t be an issue. (I just verified to make sure). However, the backup is not showing without the agent from the CheckMK exchange.
In Proxmox I have for instance the VM called digsvl003:
Which matches with what it’s called in in CheckMK:
But to be honest, I don’t see any services generated by the piggybacked hosts. Looking at the documentation I should see more than just the backup, but there’s none.
Look into /omd/sites/SITENAME/tmp/check_mk/piggyback/, there should be folders named like your VMs/LXCs. If these names are matching to the VM hostname in Checkmk, then do a rediscovery of such a VM/LXC host and it should find new services.
I checked that directory. It’s empty. Which explains why I don’t have any of the services. Just to be sure I checked piggyback_sources as well; that’s also empty.
run a cmk -D ProxmoxHostname . It will output the configuration and close to the top you will see configured the special agent call.
You can copy that and run it manually and check if you run into problems.