Ad Widget

Collapse

run command with variable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • omid1979
    Member
    • Nov 2016
    • 33

    #1

    run command with variable

    hi all ,
    how can I run command on map by click on trigger ? in other word i want to run script by click on Icon on map , also be able to send Icon name ( or variable ) to script
    for example I have icon on MAP with name apache , I want to able click on it and click on command start , then run remote command with variable that name is apache ( systemctl $variable restart )
    is it possible ?
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Please set the host macro and refer to it by global script.

    ex.
    Host macros :
    {$SERVICENAME} => apache

    Comment

    Working...