Ad Widget

Collapse

Is it possible to pass JSON to Discovery rule from Host macro?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ilya Evseev
    Junior Member
    • Feb 2019
    • 7

    #1

    Is it possible to pass JSON to Discovery rule from Host macro?

    By default, JSON for LLD rule should be generated by command executed on agent side.

    I want to store JSON in Host macro and pass it directly to LLD rule.

    Consider following host macro:
    Code:
    {$PORTMON_TCP} = { "data" : [ { "{#PORT}" : "22" }, { "{#PORT}" : "80" }, { "{#PORT}" : "443" } ] }
    Discovery rule should read it and create items "net.tcp.listen[,xx]" for ports 22,80,443.

    Is it possible?
    Last edited by Ilya Evseev; 05-10-2019, 02:56.
Working...