Ad Widget

Collapse

Windows server not being discovered

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bloodyskullz
    Member
    • Jan 2025
    • 40

    #16
    Sure thing:

    Discovery actions:

    Click image for larger version

Name:	image.png
Views:	35
Size:	43.3 KB
ID:	505467

    Click image for larger version

Name:	image.png
Views:	31
Size:	44.0 KB
ID:	505468

    And then this is a snippet of the config file:

    Click image for larger version

Name:	image.png
Views:	27
Size:	119.8 KB
ID:	505469

    Does that cover what you need?

    Comment

    • Markku
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Sep 2018
      • 1781

      #17
      Your discovery rule:
      Click image for larger version

Name:	image.png
Views:	36
Size:	29.0 KB
ID:	505473

      Your HostMetadata:

      Click image for larger version

Name:	image.png
Views:	37
Size:	13.2 KB
ID:	505472

      Shouldn't you be matching "SVFPS_192something" instead of "Windows" in the rule?

      Markku

      Comment

      • bloodyskullz
        Member
        • Jan 2025
        • 40

        #18
        Originally posted by Markku
        Your discovery rule:
        Click image for larger version

Name:	image.png
Views:	36
Size:	29.0 KB
ID:	505473

        Your HostMetadata:

        Click image for larger version

Name:	image.png
Views:	37
Size:	13.2 KB
ID:	505472

        Shouldn't you be matching "SVFPS_192something" instead of "Windows" in the rule?

        Markku
        Isn't the first condition supposed to be the matching requirement for it to work in discovery?

        My understanding is that if its windows and the hostmetadata name is found it applies to that discovery rule being set. I have other ones with the wording "contains linux" and it works fine. Could the wording of the condition be the reason?

        Comment

        • Markku
          Senior Member
          Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
          • Sep 2018
          • 1781

          #19
          Originally posted by bloodyskullz
          I have other ones with the wording "contains linux" and it works fine. Could the wording of the condition be the reason?
          How are those rules configured = which fields do they refer to and what values do those fields contain?

          Markku

          Comment

          • Markku
            Senior Member
            Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
            • Sep 2018
            • 1781

            #20
            To be clear (just tested this): Your discovery rule gets the agent.hostmetadata value from the agent, and then you use it in the discovery action. Since your agent metadata is "SVFPS_something" and your discovery action just checks equality to "Windows", it won't match.

            Markku

            Comment

            • bloodyskullz
              Member
              • Jan 2025
              • 40

              #21
              I changed the received value to contains not equals and that registered the server but its not detecting the agent installed. If I delete the current host from zabbix, make changes to the discovery rule and restart the service on windows, will this register the host again in zabbix?

              Comment

              • Markku
                Senior Member
                Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
                • Sep 2018
                • 1781

                #22
                Originally posted by bloodyskullz
                I changed the received value to contains not equals and that registered the server but its not detecting the agent installed. If I delete the current host from zabbix, make changes to the discovery rule and restart the service on windows, will this register the host again in zabbix?
                Yes, if you delete the host, the next discovery run will detect the host as new again.

                Markku

                Comment

                • bloodyskullz
                  Member
                  • Jan 2025
                  • 40

                  #23
                  I am going to play with the rules and see what I can get to work, seems like I am on the right track now with the modified condition i made. I will report back.

                  Comment

                  Working...