Ad Widget

Collapse

How to set tag on discovered trigger based on match discovery value vs macros

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GIL
    Junior Member
    • Nov 2014
    • 12

    #1

    How to set tag on discovered trigger based on match discovery value vs macros

    Hi 2 all. To properly summ SLA i need tags on services triggers based on Windows Template.
    I have build some macros in template with names of services that are really critical for server to work:
    {$SERVICES.CRITICAL} = ^(?:Winmgmt|W32Time|RpcSs|NTDS|Netlogon|MSTDC|Lanm anServer|Kdc|IsmServ|DNS|DHCPServer|DFSR|Dfs|ADWS) $
    Now i need somehow assign tag or tag vs value based on discovered service name match macros expression.
    How to do that?
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4904

    #2
    service.discvoery item returns all the needed info..
    edit the item prototype and set a tag (whatever name you like) and value as {#SERVICE.NAME}

    Comment

    • GIL
      Junior Member
      • Nov 2014
      • 12

      #3
      no, it does not. tag value = service name is not usable bsc than i need make separate service in sla for each critical dedicated service.
      I do it another way: exclude in standart discovery rule services that match macros and add one another service discovery rule through alias vs match on macro. So i get needed tags on needed services. There is only work to clone and edit temlpate, replace standard template to modified on hosts and add some alias lines in centalized config storage (in my environment zabbix agent deploying and configured by central script wich checks periodically on desired config)

      Comment

      Working...