Ad Widget

Collapse

Custom macros in keys

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cbichis
    Member
    • Apr 2013
    • 30

    #1

    Custom macros in keys

    Hi,

    I have digged a lot but I still don't understand yet: are custom macros allowed within keys?

    I would like to use something like this:
    app.status[{$CONFIG}]

    Where I want to be able to define the macros at what level I want.
  • Bernd Hohmann
    Member
    • Mar 2013
    • 46

    #2
    Originally posted by cbichis
    Hi,

    I have digged a lot but I still don't understand yet: are custom macros allowed within keys?

    I would like to use something like this:
    app.status[{$CONFIG}]

    Where I want to be able to define the macros at what level I want.
    Radio Yerevan answers: Yes, but only one time.

    One of the nasties design flaws in Zabbix is the "keys must be unique"-paradigma.

    For example: I have a very matured bash-script "check_service", which is called like "check_service(pop3,hostname,port,timeout)". For Zabbix I have to write wrappers like "check_service_pop3(hostname, port, timeout) for about 30 services because of the "keys-must-be-unique" thing.

    I don't think that there is a possible solution for your and my "use case".

    Bernd

    Comment

    • cbichis
      Member
      • Apr 2013
      • 30

      #3
      Thanks Bernd!

      Comment

      • cbichis
        Member
        • Apr 2013
        • 30

        #4
        Bernd,

        I think for some situations - only - can be used custom Low Level Discovery.

        Comment

        • Heilig
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Mar 2013
          • 366

          #5
          This table contains a complete list of macros supported by Zabbix.

          Comment

          Working...