Ad Widget

Collapse

How to globally disable windows service checks

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tgreaves12345
    Junior Member
    • Jul 2024
    • 3

    #1

    How to globally disable windows service checks

    I am a new Zabbix user and im not sure if this is possible but, we get tons of service not running messages like below.. Is there a way to globally disable the checks for this service? Or at least disable the notification for it..
    What about a global disable on checking all windows services?

    Problem name: "GoogleUpdaterService128.0.6597.0" (GoogleUpdater Service 128.0.6597.0 (GoogleUpdaterService128.0.6597.0)) is not running (startup type automatic)

  • troffasky
    Senior Member
    • Jul 2008
    • 565

    #2
    Global = disable the discovery rule at template level.

    Factory windows templates have macro $SERVICE.NAME.NOT_MATCHES. This can be used to filter out services not to match.

    Click image for larger version

Name:	image.png
Views:	706
Size:	78.7 KB
ID:	488537
    Despite the fact that the factory templates have this useful feature, it is inexplicably not mentioned here:

    Comment

    • tgreaves12345
      Junior Member
      • Jul 2024
      • 3

      #3
      So I can just make it as below with "|google|" added and it will not report on any services that have google in the name?

      Click image for larger version

Name:	image.png
Views:	689
Size:	23.2 KB
ID:	488559

      Comment

      • kyus
        Senior Member
        • Feb 2024
        • 171

        #4

        Originally posted by tgreaves12345
        So I can just make it as below with "|google|" added and it will not report on any services that have google in the name?

        Click image for larger version  Name:	image.png Views:	0 Size:	23.2 KB ID:	488559
        You should use some regex operators aswell. For example, if you desire to disable the "GoogleUpdaterService128.0.6597.0" service, you would need to write the whole service name in the "$SERVICE.NAME.NOT.MATCHES" macro, so, instead of writing the whole name, you can simply use a regular expression, like: Google.*

        Using a regular expression is also useful when the service name may change from time to time (just like this google service).

        Comment

        • Daniel4711
          Senior Member
          • Jul 2014
          • 126

          #5
          It's easier to name only desired services than to forbid 1000, isn't it?
          I would adapt the macro ($SERVICE_NAME_MATCHES).​

          Comment

          • tgreaves12345
            Junior Member
            • Jul 2024
            • 3

            #6
            I have the template set as below but, i'm still getting the "Problem name: "GoogleUpdaterService128.0.6597.0" (GoogleUpdater Service 128.0.6597.0 (GoogleUpdaterService128.0.6597.0)) is not running (startup type automatic)" showing up in notifications..

            Click image for larger version

Name:	image.png
Views:	691
Size:	23.5 KB
ID:	488636

            Comment

            • Daniel4711
              Senior Member
              • Jul 2014
              • 126

              #7
              I assume that the regex entries are case sensitive. So write google.* in lower case or use a corresponding regex.
              Try: (?i)google.*

              Comment

              • troffasky
                Senior Member
                • Jul 2008
                • 565

                #8
                Originally posted by tgreaves12345
                I have the template set as below but, i'm still getting the "Problem name: "GoogleUpdaterService128.0.6597.0" (GoogleUpdater Service 128.0.6597.0 (GoogleUpdaterService128.0.6597.0)) is not running (startup type automatic)" showing up in notifications..

                Click image for larger version

Name:	image.png
Views:	691
Size:	23.5 KB
ID:	488636
                The filter is on discovery, so only applies at the point of discovery. If you re-run the discovery, then the Google services will have a [!] next to them if your filtering amendment has worked. Then it will say how long it will be until they are deleted. IF it says they're going to be deleted, you can just delete them manually.

                Comment

                • troffasky
                  Senior Member
                  • Jul 2008
                  • 565

                  #9
                  Originally posted by Daniel4711
                  I assume that the regex entries are case sensitive. So write google.* in lower case or use a corresponding regex.
                  Try: (?i)google.*
                  As all the factory ones are in mixed-case then it's probably reasonable to assume they are case-sensitive, otherwise why would they bother?

                  Unfortunately this template/host-level filter is harder to use than Admin > General > Regular Expressions, which has a testing tool.

                  Comment

                  Working...