Ad Widget

Collapse

Setting Macro with command line

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

    #1

    Setting Macro with command line

    Hi all,

    I'd like to set the value of a macro using a command line.
    So basically, what I want to do would look like this, in the Macro tab of my template:
    {$MYOWNMACRO} => $(Some Cunning Command | grep whatever)
    Would it be possible ?
    If not, how would you get around to doing this ?

    Any help is appreciated.

    Jean-Bernard
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    Take a look at the Zabbix API and available libraries to use it.

    See this to get an idea how to use the API:

    Comment

    Working...