Ad Widget

Collapse

Using enviroment Variables with system.run

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 1berto
    Senior Member
    • Sep 2018
    • 182

    #1

    Using enviroment Variables with system.run

    I'm trying to set and read a variable on Linux hosts (that run the agent).But when i try to read it, get nothing...
    AllowRoot is enabled.

    "system.run[ echo test ]"
    "system.run[ export variable=test ]"
    "system.run[ echo $variable ]"

    With zabbix_get First command print test, third print nothing

    Any clues?



Working...