Ad Widget

Collapse

Using a macro with a condition on an action

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tym Rehm
    Junior Member
    • Sep 2020
    • 1

    #1

    Using a macro with a condition on an action

    Hello all,

    I'm monitoring multiple linux systems and I'm trying to setup two alerst to go to two different groups if it is one a few partition names.

    I've created a macro (sid_name) for the host and in the action I'm using Trigger Name container {$sid_name}. I don't want to use Trigger as I would have to define each server's partition in the action and the list would be very long. When I trigger the action, by filling up the partition I see the alert in the dashboard, but the action is not being trigger to send the notification to the test account.

    What is have tried is to use regexp matching regext(/D{4}01) with Trigger Name contains and Trigger Name contains {INVENTORY.TAG1}, after adding sidg to the Inventory for the host. I know I could create a trigger name manually but I have many different partition names and would like to do this with regexp or a macro.

    Example:
    Server A's partitions
    /
    /boot
    /sidg01
    /frek01
    /tmp

    I want two different actions, One action to alert on all partitions named (/sidg01, /frek01 and /tmp) for one group and the all partitions not matching (/sidg01, /frek01 and /tmp) to a second group.

    Is this possible? Is there a better way to do this?

    Thank you
Working...