Here my host group file:
/**
* Host group examples.
*/
object HostGroup "linux-servers" {
display_name = "On-Prem Linux Servers"
assign where host.vars.os == "Linux"
}
object HostGroup "windows-servers" {
display_name = "On-Prem Windows Servers"
assign where host.vars.os == "Windows"
}
object HostGroup "aws-linux-servers" {
display_name = "AWS Linux Servers"
assign where host.vars.os == "AWS-Linux"
}
object HostGroup "aws-windows-servers" {
display_name = "AWS Windows Servers"
assign where host.vars.os == "AWS-Windows"
}
Here, My Service config
apply Service "os-version" {
check_command = "nscp-local-os-version"
command_endpoint = host.vars.client_endpoint
assign where host.vars.client_endpoint && host.vars.os == "Windows" && host.vars.os == "AWS-Windows"
}
this is not working…I can assign both attributes Windows & AWS-Windows for single service? its only working for one… & its not working for both How can we fix this? Can you please advise someone?