Ad Widget

Collapse

Zabbix Windows Service Discovery with multiple Tag

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • andvsilva
    Member
    • Aug 2020
    • 39

    #1

    Zabbix Windows Service Discovery with multiple Tag

    Hello Everyone,

    I have in my environment the Windows Service with multiple Team and I need to set a TAG with respective team for example:

    - Windows Service Name: SyncronizationService = Team: Dev
    - Windows Service Name: PolutationWebService = Team: WebTeam
    I tried to do it using 'Event Tag' and doesn't work how I expect. I recently try to using multiple discovery service but the Zabbix doesn't accept because the key 'service.info' cannot be duplicated.

    I have the default Windows Service Template and into it, I created a second Discovery Rule, also I add the alias:

    Alias=service.discovery.comm:service.discovery'
    And o item.key doesn't work. I configure like:

    Code:
    Alias=service.info.comm:service.info
    When I try to run this command by zabbix_get I received this error:

    ZBX_NOTSUPPORTED: Unsupported item key
    I change alias to below and received another erro:

    Code:
    Alias=service.info.comm[*]:service.info
    ZBX_NOTSUPPORTED: Invalid first parameter
    Someone have any idea how I can solve it? I need to tag every service with the respective team and all Windows Service have the same template.

    Thanks a lot.
    Last edited by andvsilva; 03-09-2021, 20:38.
  • andvsilva
    Member
    • Aug 2020
    • 39

    #2
    I solved, by this way:


    Include Key for Discovery:

    Code:
    service.discovery.comm
    And item key:

    Code:
    service.info.comm["{#SERVICE.NAME}",state]
    And also I need to put into config files on Windows this ALIAS:

    Code:
    Alias=service.discovery.comm:service.discovery
    Alias=service.info.comm[*]:service.info[*]

    Comment

    • andvsilva
      Member
      • Aug 2020
      • 39

      #3
      Originally posted by cyber
      What version of Zabbix? Latest ones (5.x) allow you to define overrides in discovery and you can set tags there...
      Hi, yes version 5.0 and 5.4

      How can I do that? my difficult is, I have one Discovery with multiple Regex to identify and create items and which item need to have tag specific.

      Comment

      • andvsilva
        Member
        • Aug 2020
        • 39

        #4
        Originally posted by cyber
        All righ Cyber.

        Thanks I will try.

        Comment

        • andvsilva
          Member
          • Aug 2020
          • 39

          #5
          Originally posted by cyber
          Delete this comment.

          Thanks cyber I get it. Works fine with this Override
          Last edited by andvsilva; 06-09-2021, 16:25.

          Comment

          Working...