Ad Widget

Collapse

Zabbix actions "Received value not like" formatting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mbadmin
    Junior Member
    • Jan 2018
    • 22

    #1

    Zabbix actions "Received value not like" formatting

    Anyone have some tips here?

    I have a bunch of servers, hostnames are somewhat consistent. I want to basically exclude a few types of host by hostname.

    For example, i have these 3 servers, and i only want hosts that start with abten to be added to a particular reporting group:
    rzslchost1
    rzslchost2
    brmkehost1
    brmkehost2
    abtenhost1
    abtenhost2
    abtenhost3

    Then some rules like the below screenshot should work, right? Problem is, I'm still getting a lot of hosts besides the abten* ones added. Not sure why..




    Tips? Tricks?
  • jsolarin
    Junior Member
    • Dec 2017
    • 7

    #2
    You'd want to use "and" between logical not operators.

    Take the following as an example...

    if (Var1 not 11) or (Var1 not 12)

    The outcome is anything that is not 11 or not 12 but 11 is not 12 and 12 is not 11 so they are both possible.

    As opposed to...

    if (Var1 not 11) and (Var1 not 12)

    This works because 11 is not 11/12 and 12 is not 11/12 so it is anything other then 11 and 12.

    Comment

    • mbadmin
      Junior Member
      • Jan 2018
      • 22

      #3
      Ha, of course it's just something simple like logic. I honestly didn't even notice the logic selector at the top.

      Thanks for the help!

      Comment

      Working...