VMware piggyback shows powered off system

2.3.0p.32 CEE:
Rocky 8.10:

VM piggy back data shows powered off on powered on vm

**cmk script ***

OMD[site]:~$ cmk --debug -vvn prdcmd23
VM prdcmd23 power state: poweredOff(!), defined on
Piggyback file ‘/omd/sites/site/tmp/check_mk/piggyback/prdcmd23/vcenter02’:

Now, we have in vmware 2 hosts. An old one and a new one
“_trash 20250731 prdcmd23” which is powered off
“prdcmd23” which is powered on

The piggyback data is stuck with that old powered off host while the vmhostname is clearly different. under the hood, it has the same ip, same hostname,…

settings in the vmware configuration
|Piggyback name of virtual machines:|Use the VMs host name if set, otherwise fall back to ESX name|

How can I enforce to point to the “newer” host or even better, where to create a rule to ignore all hosts starting with _ (which is applicable in our setup) so it searches for the correct piggyback info?

I checked the forum and found something for veeam and dynamic host, but we dont use that functionaly (yet)
Can someone point me in the right direction?

All,
I found this post, does this apply too? it changes the hostname in what i want to have, but it doesnt change the fact i have a powered off host which is used in piggybackdata

Is there any doc’s available how to form the regex? (I do know regex :slight_smile: but the way the form has been built in the UI is not very clear to me. (if this is the solution)

BR

  1. You want to use the “ESX name”, rather than the “host name” in the special agent.
  2. You want to use the rule set “ESX host and virtual machine states” to define the desired states.

Nothing else is necessary.

I’m overcomplicating things, thats for sure.
thanks for the solution. works like a charm!

1 Like