Ad Widget

Collapse

Macros not working in Actions

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

    #1

    Macros not working in Actions

    In a Map, this works:
    {Plotter_409_z3200:HPPrinterStatusMessage.last(0)}
    To return something like:
    Sleeping

    In an Action message, this works:
    {HOST.NAME1}
    To return something like:
    Plotter_409_z3200

    However, putting that logic together to pull a key from a host in a message, does NOT work:
    {HOST.NAME1:HPPrinterStatusMessage.last(0)}
    It simply returns UNKNOWN, which we already know from the Map example is not true, it knows the status quite well.
    Nesting the macros also does not work:
    {{HOST.NAME1}:HPPrinterStatusMessage.last(0)}
    That simply translates the nested one, and leaves the second layer as is:
    {Plotter_409_z3200:HPPrinterStatusMessage.last(0)}
    Which is exactly the macro we put in the Map, but in this case it's not actually resolving.

    Anyone know what the issues is? Seems like a bug unless there is a syntax nuance I'm missing that the documentation doesn't cover as to why it's different in one place from the other.
Working...