Ad Widget

Collapse

trigger count() using macro as #num

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ceinmart
    Junior Member
    • Nov 2012
    • 28

    #1

    trigger count() using macro as #num

    Hi ,

    I need to use a local macro as parameter for a count() function:

    count(/Rede basico/icmpping[],#{$PING_INDISPONIVEL},,"0")={$PING_INDISPONIVEL}

    With # in front of the macro , do not accept.

    Without # , doesn't work, I think it is evaluated as time (seconds??)
    I need to have a parametrizable amount of items to check... depending of the device I put my template I will need to adjust this parameter.


    Any tips? I'm doing something wrong?
  • Semiadmin
    Senior Member
    • Oct 2014
    • 1625

    #2
    max(/Rede basico/icmpping[],{$PING_INDISPONIVEL})=0
    where {$PING_INDISPONIVEL}) => #3

    Comment


    • ceinmart
      ceinmart commented
      Editing a comment
      thanks , I will try
Working...