Ad Widget

Collapse

How to include data in Action messages?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ebonweaver
    Member
    • Feb 2013
    • 71

    #1

    How to include data in Action messages?

    When an action is triggered, I need to include data from an unrelated item, but I can't seem to find any way to do this. Specific example, I'm monitoring printer status by SNMP. When item1 (numeric value of status) results in a trigger which has an associated action, I need to include the current data from item2 (SNMP check that returns current status message on printer). There is no intelligent way to base the trigger off item2 as that could be dozens of different things with different meanings, but item1 has only a few numeric values which I can trigger off of when it's 5 (down) or 3 (warning), but that has no meaning in an email without the current message from item2.

    Is this possible or a limitation currently?
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    Take a look at "Simple macros" on Macros supported by location

    Comment

    • ebonweaver
      Member
      • Feb 2013
      • 71

      #3
      Unfortunately this seems to not work
      {hostrtMarkerPrinterStatus.last()} returns a value of *UNKNOWN* in the email. If there is a different syntax needed for this, it's not clear from the documentation. It seems the issue might be the intent is to use expressions that work for triggers, but I need an expression that works for items.

      Comment

      • ebonweaver
        Member
        • Feb 2013
        • 71

        #4
        Trying to apply current syntax from all parts, also tried {HOST.HOST1:HPPrinterStatusMessage.last()} (actual key in this one, exactly as appears in the SNMPv2 item where the key is defined)
        Still returns *UNKNOWN*

        Any other ideas or anyone have this working before I file bug report?

        Comment

        Working...