Ad Widget

Collapse

Create a trigger for files bigger than "x" MB

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fabrizio We BiNar
    Junior Member
    • Nov 2023
    • 9

    #16
    yes, all of these files are located in c:\test\dicom, no subdirectories.

    Comment

    • Semiadmin
      Senior Member
      • Oct 2014
      • 1625

      #17
      Then I don't know how you get 0, sorry

      Comment

      • Fabrizio We BiNar
        Junior Member
        • Nov 2023
        • 9

        #18
        If I can get the item to return "1", you think that the trigger code is fine for my purpose?

        Comment

        • z0nk
          Member
          • Oct 2024
          • 45

          #19
          How can I make vfs.dir.size return output in MB or GB, not Bytes?
          Last edited by z0nk; 09-11-2024, 19:23.

          Comment


          • ISiroshtan
            ISiroshtan commented
            Editing a comment
            If you want it to be translated on graphs and overview in latest data - just add unit type for item as "B"
            If you want it to be stored in DB and shown in latest data actual values view (rarely needed) - preprocessing with custom multiplier of 0.0009765625. 1 step of this preprocessing for KB, 2 times for MB, 3 times for GB
        • z0nk
          Member
          • Oct 2024
          • 45

          #20
          ISiroshtan, thanks. The problem was I didn't declare 'b' in Unit, then it started calculating MB/GB/TB etc regarding to size

          Comment

          • jurgen16
            Junior Member
            • Jul 2023
            • 11

            #21
            You can use this kind of key if you want to receive an alarm but this case works if normally you don't have files with size more than 260 MB.
            And this will create an alarm everytime that you will have one or more file with size more than 260 MB.

            Item key: vfs.dir.count[C:\test\dicom,,,,,,260000000,,,,]
            Alarm exxpression: last(vfs.dir.count[C:\test\dicom,,,,,,260000000,,,,]​​)=0​

            Comment

            Working...