Ad Widget

Collapse

Exclude Pagefile partition from monitoring/trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chandra22
    Junior Member
    • Feb 2016
    • 13

    #1

    Exclude Pagefile partition from monitoring/trigger

    Hi,

    I'm having an issue with Mounted filesystem discovery. In the template OS Windows there is a discovery rule that finds all drives on the host. On these discovery rules there are trigger prototypes. They create a trigger for every detected drive.

    We have around 400 hosts with a pagefile partition, which is always filled – free space less then 1% free. I would like to disable the trigger for this pagefile partition on all servers.

    Another problem is, drive letter of this pagefile partition may vary from server to server (D: drive or E: drive).
    Is there anyway the Zabbix system automatically detects the pagefile drive on all servers and exclude the monitoring/triggers on those pagefile partitions only ?

    May some kind of script or condition or expression, to add in Templates. Or any other ideas ?

    Manual checking will be huge task for us.

    Regards,
    Chandra
  • Firm
    Senior Member
    • Dec 2009
    • 342

    #2
    Apply filter to macro in "Mounted filesystem" discovery rule.

    Comment

    • chandra22
      Junior Member
      • Feb 2016
      • 13

      #3
      Hi,
      Thanks for quick reply
      If possible, could you please elaborate / provide an example

      Comment

      • Firm
        Senior Member
        • Dec 2009
        • 342

        #4
        Open Filters tab and use regexp like ^[C-F] (or ^C|^D|^E|^F ) for {#FSNAME} macro.

        Comment

        • chandra22
          Junior Member
          • Feb 2016
          • 13

          #5
          Thanks mate

          The problem here is, I wouldn't know the drive letter of all these servers. some servers it may be C: drive, some may be D: drive or E: drive
          (as its hundreds of machines already configured, its very hard to find now - no list maintained)

          Can we able to apply the filter as per the Drive name/label ?. Pagefile drives named/labeled as "Pagefile Drive".
          Could you please provide the Macro which checks the Drive label/name

          Regards,
          Chandra

          Comment

          • Firm
            Senior Member
            • Dec 2009
            • 342

            #6
            Create regexp: Administration -> General -> Regular expressions, set Expression to "Pagefile Drive" (without double quotes) and Expression type to "Character sting not included". Then apply this expression to filter out swap drives.

            Comment

            • chandra22
              Junior Member
              • Feb 2016
              • 13

              #7
              Hi,

              Thanks helping me on this

              1.) Filter using Drive letter working fine
              Macro: {#FSNAME}, Regular expression: ^C|^E|^F|^G
              - This is to skip the D: drive monitoring.

              Question: instead of writing all drive letters except (D), would you able to suggest me a simple regular expression which skips just D drive.


              2.) Filter using Drive Label not working
              Created the regular expression as per your previous reply and applied Filter using below options saperatly
              i.) Macro: {#FSLABEL}, Regular expression: @Pagefile Drive
              ii.) Macro: {#FSNAME}, Regular expression: @Pagefile Drive

              None of above options worked.
              I am basic user on Zabbix, may be i am missing something here or not configuring settings correctly.
              Could you please bare me and provide step by step configuration, if possible.


              3.) Is there any possibility that, Zabbix search each drive/partition in the client machine (Windows). If it finds a Pagefile.sys, it skips the monitoring of that Drive which contains the Pagefile.sys (including hidden file)
              - This option will make our life lot easy.

              Thank you

              Comment

              • Firm
                Senior Member
                • Dec 2009
                • 342

                #8
                1. regexp: ^[^D] - match all strings not starting with D
                2. Please, show discovery json file returned by agent.
                3. Filtering does the same thing - skips drive using match criteria.

                Comment

                • chandra22
                  Junior Member
                  • Feb 2016
                  • 13

                  #9
                  Thanks mate

                  3. Filtering does the same thing - skips drive using match criteria.
                  - Do you mind to provide the Regular expression (or any specific steps) to achieve the result (skip the Drive the which have the Pagefile.sys).

                  2. Please, show discovery json file returned by agent.
                  - I will provide tomorrow


                  Regards,

                  Comment

                  • Firm
                    Senior Member
                    • Dec 2009
                    • 342

                    #10
                    3. You need to write your own discovery script I think.

                    Comment

                    Working...