Ad Widget

Collapse

[ZBX 2.2] Calculated item using sytem.run

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eljibe
    Member
    • Apr 2014
    • 31

    #1

    [ZBX 2.2] Calculated item using sytem.run

    Hi all,

    I have to create a calculated item the would look like that:
    abschange(system.run["cat <file> | grep {$MACRO} | awk '{print $(NF-1)}'"])
    But it's not working.
    Defining a UserParameter is sadly not an option.
    Have anyone comme accross this problem ?

    Jean-Bernard
    Last edited by eljibe; 01-06-2015, 17:11. Reason: solved
  • eljibe
    Member
    • Apr 2014
    • 31

    #2
    [SOLVED] [ZBX 2.2] Calculated item using sytem.run

    This was a good old case of "RTFM"

    Note: Putting the whole key in double quotes (“…”) is strongly recommended to avoid incorrect parsing because of spaces or commas within the key.
    If there are also quoted parameters within the key, those double quotes must be escaped by using the backslash (\). See Example 5 below.
    I have my values. Thanks

    Comment

    Working...