Wildcards in hostname device match not working
Hello everyone,
today I noticed that wildcards are not working anymore if I use them for hostnames as I create new alert checker.
the hostnames I try to trigger are commonly looking like this: vh01-name vh02-name ... vh16-name
Simple running numbers counting up and the rest is the same.
I tried the following masks as match: *name* vh* vh*-name
none of the above are working. The current workaround is to write a hostname check for every machine, as I got 16 Device Match entries at the moment. Could this be because of the !=/ne operand I use? Because the logical function I try to accomplish is filtering out specific servers from a alerter, so they will be ignored and not checked.
Can you give an advise?
Thanks and much regards, Sebastian
Hi Sebastian,
You failed to actually include the lines you tried. But your last sentence seems to indicate you are using 'ne' which is 'not equals'.
A hostname of 'banana' is indeed 'not equal to' a hostname of '*ana*'.
Wildcard matching can be done with match/notmatch.
Hope this helps!
Tom
On 08/03/2017 10:29 AM, Sebastian Klute wrote:
Hello everyone,
today I noticed that wildcards are not working anymore if I use them for hostnames as I create new alert checker.
the hostnames I try to trigger are commonly looking like this: vh01-name vh02-name ... vh16-name
Simple running numbers counting up and the rest is the same.
I tried the following masks as match: *name* vh* vh*-name
none of the above are working. The current workaround is to write a hostname check for every machine, as I got 16 Device Match entries at the moment. Could this be because of the !=/ne operand I use? Because the logical function I try to accomplish is filtering out specific servers from a alerter, so they will be ignored and not checked.
Can you give an advise?
Thanks and much regards, Sebastian
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (2)
-
Sebastian Klute
-
Tom Laermans