Search found 2 matches

by korla plankton
Fri Jun 17, 2016 3:32 pm
Forum: Open Source Nagios Projects
Topic: regex for hostgroup
Replies: 4
Views: 4721

Re: regex for hostgroup

Thank you for your replies. The following appears to work members ^(aaaaa|bbbbb|ccccc|ddddd|eeeee|fffff)\-foo\-[0-9]{2}$,^(aaaaa|bbbbb|ccccc|ddddd|eeeee|fffff)\-.*\-foo\-[0-9]{2}$ However this does not members ^(aaaaa|bbbbb|ccccc|ddddd|eeeee|fffff)\-foo\-[0-9]{2}$,^(aaaaa|bbbbb|ccccc|ddddd|eeeee|fff...
by korla plankton
Fri Jun 17, 2016 1:07 pm
Forum: Open Source Nagios Projects
Topic: regex for hostgroup
Replies: 4
Views: 4721

regex for hostgroup

I have hosts with names like 'aaaaa-foo-01', 'bbbbb-foo-02' and so on. I also have a hostgroup with members defined as follows: members ^(aaaaa|bbbbb|ccccc|ddddd|eeeee|fffff)\-foo\-[0-9]{2}$ This will match hosts aaaaa-foo-01, bbbbb-foo-02, etc. It works fine. Now we have some new hosts which we wan...