Ad Widget

Collapse

Disable some partition checks on Synology

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cor9957
    Junior Member
    • Jan 2014
    • 12

    #1

    Disable some partition checks on Synology

    Hello everybody,

    I hope somebody can help me with the following.
    On my Synology I run Active Backup, because of this the Synology creates some (work?) partitions which fill up quickly when the backup is run. I've tried to excluding them from the discovery rule by using "Administration - General - Regular expressions", but I can't get it to work.
    Every time I remove the partions from Zabbix the discovery rule creates them again. I've tried disabling the triggers, but every now and again partitions are created a new name (9 or 10 random numbers)

    The partitions look like this when Zabbix finds them: /volume1/@ActiveBackup/agent/xxxxxxxxx (the x's are 9 or 10 random numbers)
    The exclude regular expression looks like this: ^(Shared memory|Physical memory|Virtual memory|Memory buffers|Cached memory|Swap space|@ActiveBackup)$ [Result is FALSE]
    I'm running Zabbix 4.0

    Thanks for any help you can give me.

    Regards,
    Cor.
    Last edited by cor9957; 22-07-2019, 09:55. Reason: Added some tags
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    Hi, note that your regex matches only strings that contain just @ActiveBackup (or the other strings in the regex), not in the middle of a longer string like your use case requires. Remove ˆ (beginning of the line) and $ (end of the line) to match anywhere within the string, if that suits your other requirements in the regex.

    Markku

    Comment

    • cor9957
      Junior Member
      • Jan 2014
      • 12

      #3
      Thanks Markku, not sure if that works because other strings in the regular expression, but I will give it a try and let you know if it worked out

      Comment

      • cor9957
        Junior Member
        • Jan 2014
        • 12

        #4
        Removing ^ and/or $ caused problems with the other strings. With the help of an online tester I came up with this regular expression which seems to be working: ^(Shared memory|Physical memory|Virtual memory|Memory buffers|Cached memory|Swap space|/volume1/@ActiveBackup/[a-z]*/[0-9]*)$

        Thanks for your help!

        Cor.

        PS I know I should have tried the solution I found before I posted my question, but I'm no regular expression expert and hoped that somebody might have the same problem I had.

        Comment

        Working...