This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Conditional SNMP traps

I have set up a rule using the "Forward Alarms as SNMP Traps" rule as a template.  From the documentation, it looks like the only value for the fire condition is true.  I don't want the rule to fire for all alarms, only the Fatal alarms.  Is there an easy why to apply a condition something like "If the alarm severity is fatal, then forward the snmp message"?  If so, where is this condition set?

  • Hi Randy,

    I haven't tested this, but the condition (where it equals "true" now) would be something like this for fatal alarms:

    if(@event.get("severityLevel") >= 3)
    {
    return true;
    }

    I'd suggest trying a copy of your snmp rule with an email action to verify that this works.
  • Thanks Darren. I got it to work by using
    @event.getInt("change/value")==0&&@event.get("severityName")=="Fatal". I thought it wasn't working but it turns out that our Netcool was hosed and not accepting my messages