Ad Widget

Collapse

define a syste.hostname value for macros

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • menghao
    Junior Member
    • Oct 2017
    • 4

    #1

    define a syste.hostname value for macros

    Deal all,
    I have a External checks key like this:
    key test.py[$parameter] and i hope the $parameter value is key itme system.hostname[]

    Ps: $parameter = zabbix_get -s x.x.x.x -p 10050 -k system.hostname[]

    i look for built-in Macros but don't find ,so i hope who can help me, thinks !!

    Please excuse me for my poor English.
  • kaspars.mednis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2017
    • 349

    #2
    the hostname macro is {HOST:NAME}

    is that you are looking for ?

    Best regards,
    Kaspars

    Comment

    • menghao
      Junior Member
      • Oct 2017
      • 4

      #3
      thanks

      thanks for your help, this is not my need. and i find another methor to do.
      that is external check.

      Comment

      Working...