Is there any documentation on when and how you can use "assign where match"?
I'm trying to do something like the following:
apply Service "Disk Space - /partition" {
import "disk-check"
vars.nrpe_remote_arglist = "10% /partition"
assign where match ("App 1 Name*", host.groups)
}
In our environment we have a number of host groups that start with the same
application name but end with something unique such as "App 1 Name Web", "App 1
Name DBs", "App 2 Name Web", "App 2 Name DBs". I want to check for a shared
partition that is unique to all the "App 1 Name" machines but is different than
the data partition that is unique to all "App 2 Name" machines.
This exact type of assign statement works fine for "object HostGroup" blocks.
If "assign where match" doesn't work in the "apply Service" block, is there
another shorthand way to locate my groups or do I have to list each group
specifically and manage that list over time?
Thanks for your help.
Brian
NOTICE:
This message, and any attachments, contain(s) information that may be
confidential or protected by privilege from disclosure and is intended only for
the individual or entity named above. No one else may disclose, copy,
distribute or use the contents of this message for any purpose. Its
unauthorized use, dissemination or duplication is strictly prohibited and may
be unlawful. If you receive this message in error or you otherwise are not an
authorized recipient, please immediately delete the message and any attachments
and notify the sender.
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users