Hi all, heres my current issue and I thank you in advance for any responses and possible solutions <3.
I have four types of servers, each with its unique HostMetadata in the config file:
Here’s an example:
Conditions:
A: Host metadata matches WindowsServer2016
B: Host name matches Windows2016HostsA\d+$
C: Host name matches Windows2016HostsB\d+$
Type of Calculation: A and (B or C)
Operations:
I then created four different "control groups" with the following autoregistration action as an example:
Conditions:
A: Host metadata matches WindowsServer2016
B: Host name does not match Windows2016HostsA\d+$
C: Host name does not match Windows2016HostsB\d+$
Type of Calculation:
I’ve tried A and (B or C), which would make sense.
I’ve also tried A and B and C out of frustration.
Neither work.
Operations:
So basically, if a host autoregisters with the matching HostMetadata=WindowsServer2016 but is not one of my specified hostnames, I want the host(s) to be added to the host group WindowsServer2016_NotMatching.
The problem is that all hosts still get added to the control groups. The HostMetadata part seems to be fine, but the hostnames seem to be "ignored"?
I have four types of servers, each with its unique HostMetadata in the config file:
- HostMetadata=WindowsServer2016
- HostMetadata=WindowsServer2022
- HostMetadata=LinuxServerDebian
- HostMetadata=LinuxServerUbuntu
Here’s an example:
Conditions:
A: Host metadata matches WindowsServer2016
B: Host name matches Windows2016HostsA\d+$
C: Host name matches Windows2016HostsB\d+$
Type of Calculation: A and (B or C)
Operations:
- Add to host groups: WindowsServer2016_Matching
- Link templates: WindowsServer2016Template
- Enable host
I then created four different "control groups" with the following autoregistration action as an example:
Conditions:
A: Host metadata matches WindowsServer2016
B: Host name does not match Windows2016HostsA\d+$
C: Host name does not match Windows2016HostsB\d+$
Type of Calculation:
I’ve tried A and (B or C), which would make sense.
I’ve also tried A and B and C out of frustration.
Neither work.
Operations:
- Add to host group: WindowsServer2016_NotMatching
So basically, if a host autoregisters with the matching HostMetadata=WindowsServer2016 but is not one of my specified hostnames, I want the host(s) to be added to the host group WindowsServer2016_NotMatching.
The problem is that all hosts still get added to the control groups. The HostMetadata part seems to be fine, but the hostnames seem to be "ignored"?
Comment