Ad Widget

Collapse

Macros in UserParameter?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ekenberg
    Junior Member
    • Mar 2006
    • 21

    #1

    Macros in UserParameter?

    I need to send the macro {HOSTNAME} as a parameter to a UserParameter item. Is this possible?

    The idea is to have a generic UserParameter like:
    Code:
    UserParameter=checkit[*],check_service $1 $2
    and monitor this through a Template with items like:
    Code:
    checkit[{HOSTNAME}, 'service1']
    checkit[{HOSTNAME}, 'service2']
    This is for a setup with multiple virtual servers running in parallel on separate ips on each physical server.
    Each physical server has one zabbix_agentd instance running checks for all virtual servers.
    There are *lots* of servers, so I really want to avoid manually coding hundreds of items and UserParameters.

    The checkit script needs to know what virtual server it is being called on behalf of.
  • chrischris
    Junior Member
    • Apr 2013
    • 2

    #2
    Related? Seems like it's been available since 1.6.1

    Comment

    • tchjts1
      Senior Member
      • May 2008
      • 1605

      #3
      Well... considering you just answered a post that is 7 years old...

      Comment

      Working...