Ad Widget

Collapse

DB monitoring : use of multiples macros for one template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gug42
    Junior Member
    • Apr 2009
    • 18

    #1

    DB monitoring : use of multiples macros for one template

    Hey,

    Is there a way to bind multiple macro with one template on a single host ?

    I've got lots of MS SQL database. For every databases I monitor the same thing ... but i didn't like to declare one item per database and per data.

    For exemple my idea would be to have macro, on the host, like this :
    {$ITEM}=DB1
    {$ITEM}=DB2
    {$ITEM}=DB3
    and so on ..

    And to add a template to the host.

    I hope I m clear enough.


    Thank you in advance

    GReetings,
  • walterheck
    Senior Member
    • Jul 2009
    • 153

    #2
    Originally posted by gug42
    Hey,

    Is there a way to bind multiple macro with one template on a single host ?
    Nope, that won't work. What you could do is write a script that uses the api or the xml import to generate the correct template based on the databases it finds.
    Free and Open Source Zabbix Templates Repository | Hosted Zabbix @ Tribily (http://tribily.com)

    Comment

    • gug42
      Junior Member
      • Apr 2009
      • 18

      #3
      Thank you for the answer.


      Yes I know, last time i have write a SQL script (some little bug in xml import) (must test the 1.8.3 xml import ...)

      Comment

      Working...