Ad Widget

Collapse

autodiscover exceptions do not work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kamilalek1
    Junior Member
    • Jul 2016
    • 16

    #1

    autodiscover exceptions do not work

    On zabbix server I get information that BITS or egdeupate service is disabled, problem affects several computers.
    Following the advice on the internet, I added these services to Regular expressions

    Click image for larger version

Name:	a2.PNG
Views:	2278
Size:	12.8 KB
ID:	417132
    Then I removed the computer from the hosts and added it again.
    Unfortunately, this did not work as expected, as he continues to receive warnings.
    Click image for larger version

Name:	a1.PNG
Views:	2320
Size:	7.1 KB
ID:	417131

  • kamilalek1
    Junior Member
    • Jul 2016
    • 16

    #2
    I changed false to true, removed the host and added it again, unfortunately the problem still exists.
    Click image for larger version

Name:	a4.PNG
Views:	2274
Size:	18.3 KB
ID:	417197
    Click image for larger version

Name:	a5.PNG
Views:	2287
Size:	14.6 KB
ID:	417198

    Comment

    • kamilalek1
      Junior Member
      • Jul 2016
      • 16

      #3
      this configuration also doesn't work
      Click image for larger version

Name:	b1.PNG
Views:	2272
Size:	10.3 KB
ID:	417247
      Click image for larger version

Name:	b2.PNG
Views:	2306
Size:	39.2 KB
ID:	417248

      Comment

      • kamilalek1
        Junior Member
        • Jul 2016
        • 16

        #4
        In the last version I made all the exceptions on one line, then removed and added the host, unfortunately zabbix still displays entries regarding edgeupdate and BITS after that.
        The line does not exceed 170 characters
        Click image for larger version

Name:	b1.PNG
Views:	2311
Size:	10.3 KB
ID:	417268
        Click image for larger version

Name:	b2.PNG
Views:	2218
Size:	39.2 KB
ID:	417269

        Comment

        • kamilalek1
          Junior Member
          • Jul 2016
          • 16

          #5
          Any ideas why this doesn't work?
          Click image for larger version

Name:	c1.PNG
Views:	2268
Size:	33.0 KB
ID:	417288

          Comment

          • tonick
            Junior Member
            • Mar 2020
            • 5

            #6
            Originally posted by cyber
            Think... I know, it hurts me also sometimes.. discovery finds service name "edgeupdate", it will go and match it to regexes... first line says "its ok, edgeupdate is in my list" (result is TRUE), Second line says "its ok, edgeupdate is not in my list" (Result is FALSE). Both matchings are TRUE in that sense, that they give back positive result, combined is TRUE... but what it means? yep ... edgeupdate is good to go and lets make items and triggers for it..
            So this multiple lines of regexes will never work. You need every line to return "result is false" to a word, what you are feeding to it.
            Change it to single line, if you run out of space (don't know if it has been updated to more than 255 character in newer versions), try to make those matchings shorter (I don't understand why there is all this clr_optimization crap, if it can be shortened to just clr_optimization.*). Or you do some work and start monitoring only those services that matter. which is probably much shorter list.
            You can also do all that regexing in preprocessing via JS. Write as long sets of services as you like and match all incoming data against it, drop them from list and all you have left is only the needed services.

            This windows services question should be put somewhere blinking, same as "why is ZBX icon not turning green"... It is asked and answered so many times.

            EDIT, your last post was not here, when I started writing this...
            Do not working

            Attached Files

            Comment

            • Adamusinski
              Junior Member
              • Jan 2021
              • 1

              #7
              Originally posted by cyber
              You have never mentioned, what version of Zabbix and what version of templates you are using... Based on picture, I just assumed, that you are using older version... If you are using templates from v5 or above, they do not use that global regex, but the one in template module macro list.
              Also ran into the same problem. Does global regular expressions (Windows service names for discovery) no longer work in template then? So what is the proper way to exclude the service from LLD?

              Comment

              • kamilalek1
                Junior Member
                • Jul 2016
                • 16

                #8
                Click image for larger version

Name:	1.PNG
Views:	2328
Size:	65.1 KB
ID:	417662
                Click image for larger version

Name:	2.PNG
Views:	2337
Size:	75.1 KB
ID:	417663
                Click image for larger version

Name:	3.PNG
Views:	2300
Size:	23.4 KB
ID:	417664

                Click image for larger version

Name:	4.PNG
Views:	2304
Size:	24.8 KB
ID:	417665
                Click image for larger version

Name:	5.PNG
Views:	2323
Size:	48.9 KB
ID:	417666

                Comment

                • cyber
                  Senior Member
                  Zabbix Certified SpecialistZabbix Certified Professional
                  • Dec 2006
                  • 4807

                  #9
                  Is this from global regular expressions?
                  Find your error from this pic...
                  EDIT: My posts here are out of sequence due to human error and restoring of posts, try to fit them between other posts in thread, you should get a bit more clear picture.
                  Last edited by cyber; 05-04-2021, 08:30.

                  Comment

                  • cyber
                    Senior Member
                    Zabbix Certified SpecialistZabbix Certified Professional
                    • Dec 2006
                    • 4807

                    #10
                    Think... I know, it hurts me also sometimes.. discovery finds service name "edgeupdate", it will go and match it to regexes... first line says "its ok, edgeupdate is in my list" (result is TRUE), Second line says "its ok, edgeupdate is not in my list" (Result is FALSE). Both matchings are TRUE in that sense, that they give back positive result, combined is TRUE... but what it means? yep ... edgeupdate is good to go and lets make items and triggers for it..
                    So this multiple lines of regexes will never work. You need every line to return "result is false" to a word, what you are feeding to it.
                    Change it to single line, if you run out of space (don't know if it has been updated to more than 255 character in newer versions), try to make those matchings shorter (I don't understand why there is all this clr_optimization crap, if it can be shortened to just clr_optimization.*). Or you do some work and start monitoring only those services that matter. which is probably much shorter list.
                    You can also do all that regexing in preprocessing via JS. Write as long sets of services as you like and match all incoming data against it, drop them from list and all you have left is only the needed services.

                    This windows services question should be put somewhere blinking, same as "why is ZBX icon not turning green"... It is asked and answered so many times.

                    EDIT, your last post was not here, when I started writing this...

                    Comment

                    • cyber
                      Senior Member
                      Zabbix Certified SpecialistZabbix Certified Professional
                      • Dec 2006
                      • 4807

                      #11
                      You have never mentioned, what version of Zabbix and what version of templates you are using... Based on picture, I just assumed, that you are using older version... If you are using templates from v5 or above, they do not use that global regex, but the one in template module macro list.

                      Comment

                      • cyber
                        Senior Member
                        Zabbix Certified SpecialistZabbix Certified Professional
                        • Dec 2006
                        • 4807

                        #12
                        So seems we got to the point here... Changing wrong things does not help..

                        Comment

                        Working...