Ad Widget

Collapse

Wildcard Values in MSSQL.DBNAME.NOT_MATCHES?

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • techmattr
    Member
    • Sep 2022
    • 39

    #1

    Wildcard Values in MSSQL.DBNAME.NOT_MATCHES?

    If I add a partial DB name to this MACRO field will it pick up any DB with that partial? Example:

    Click image for larger version

Name:	n1rVAd8.png
Views:	839
Size:	2.7 KB
ID:	457549

    Will this ignore all databases with _Temp_ in the name?

    If not, would *_Temp_* work?
  • Answer selected by techmattr at 28-02-2023, 22:24.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    Without wildcards it will look for exact match, not partial. So, yes. you need to use wildcards... * means "zero or more of previous"... so you should use ".*"

    Comment

    • techmattr
      Member
      • Sep 2022
      • 39

      #2
      I still haven't been able to figure this out. Is there a way to exclude any database that contains _Temp_?
      I assume the same logic would apply to the does not match Windows services as well.

      Comment

      • techmattr
        Member
        • Sep 2022
        • 39

        #3
        I guess I'll try one last time to see if anyone knows this.

        Is there any way to use wildcard values in the NOT_MATCHES macros?

        Comment

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

          #4
          Without wildcards it will look for exact match, not partial. So, yes. you need to use wildcards... * means "zero or more of previous"... so you should use ".*"

          Comment

          • speedtre
            Junior Member
            • Mar 2024
            • 1

            #5
            Originally posted by cyber
            Without wildcards it will look for exact match, not partial. So, yes. you need to use wildcards... * means "zero or more of previous"... so you should use ".*"
            I'm trying to get it sto stop reporting that GoogleUpdater is not running. Google Update has different versions depending on the version on the machine, (i.e. "GoogleUpdaterService124.0.6342.2") so I'm trying to get it to stop reporting on all versions. I can get it to stop reporting on a specific version if I include the name of the version, but only that version. I've tried the * wildcard (at the end), but it's not working....any ideas?

            Click image for larger version

Name:	image.png
Views:	597
Size:	24.9 KB
ID:	480836

            Comment

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

              #6
              You quoted my post, where is the answer...
              I'll repeat
              * means "zero or more of previous"... so you should use ".*"

              Comment

              Working...