LOGICALDRIVES thresholds

Forums Desktop Info LOGICALDRIVES thresholds

Viewing 1 reply thread
  • Author
    Posts
    • #2209 Reply
      AvatarDavid Ross

      Windows: 10 v1803, 1809 & 1903
      Product: 1.9 (also tried v2.0)

      Hi Glenn,

      (Excellent product – I’ve rolled-out to our whole estate (16k) at our Uni)

      I’m trying to signify to end-users when their disk space is below a critical threshold ie 50Gb. This value is purely ball-park & based on SCCM cache size & feature-update (ie 1909) space required … but I’d like it to be hardwired to a value rather than just as a percentage of the disk.

      I’d like to use the expression …

      LOGICALDRIVES=active:1,interval:300,color:FFFFFF,threshold1:8 -50000000000 0000FF,max:3,text:Free space:,display:%8[1.0B]B/%5[1.0B]B (%9[1.0d]%),include:C:

      … in order to change the text to red when the free space drops below 50Gb. This seems to be failing and this is the problem I am reporting – the minimum threshold value for non-percentage param is failing. After further tests, this also seems to fail using the “total capacity” param.

      However, if I change to using a minimum percentage, then this works as expected ie …

      LOGICALDRIVES=active:1,interval:300,color:FFFFFF,threshold1:9 -20 0000FF,max:3,text:Free space:,display:%8[1.0B]B/%5[1.0B]B (%9[1.0d]%),include:C:

      … the disk spaces are displayed in red below 20precent free.

      To test this and provide you with logs; I set the threshold above the free space on my test machine to flag the error and used the following ini setting …

      LOGICALDRIVES=active:1,interval:300,color:FFFFFF,threshold1:8 -90000000000 0000FF,max:3,text:Free (test):,display:%8[1.0B]B/%5[1.0B]B (%9[1.0d]%),include:C:

      … the above produces the debug log …

      07-10-19 10:00:19:249 INFO Desktop Info version 1.19.0.2673
      07-10-19 10:00:19:249 INFO Windows Version 6.2.9200
      07-10-19 10:00:19:264 DEBUG AddConfItem: active:1,color:FFFFFF,style:b,text:SDX Supported Desktop
      07-10-19 10:00:19:264 DEBUG AddConfItem: active:1,interval:300,color:FFFFFF,text:Computer:
      07-10-19 10:00:19:264 DEBUG AddConfItem: active:1,set:OSBuild,display:%1,hidden:1
      07-10-19 10:00:19:264 DEBUG AddConfItem: active:1,key:1709,value:6.3.16299
      07-10-19 10:00:19:264 DEBUG AddConfItem: active:1,key:1803,value:6.3.17134
      07-10-19 10:00:19:264 DEBUG AddConfItem: active:1,key:1809,value:6.3.17763
      07-10-19 10:00:19:264 DEBUG AddConfItem: active:1,key:1903,value:6.3.18362
      07-10-19 10:00:19:264 DEBUG AddConfItem: active:1,value1:%OSBuild%,value2:%1803%,comparator:eq
      07-10-19 10:00:19:280 DEBUG AddConfItem: active:1,type:0,color:ffffff,style:,text:Support:,display:IS Helpline,uri:https://edin.ac/helpline
      07-10-19 10:00:19:280 DEBUG AddConfItem: active:1,value1:%OSBuild%,value2:%1903%,comparator:eq
      07-10-19 10:00:19:280 DEBUG AddConfItem: active:1,type:0,button-color:0080FF,color:ffffff,style:,text:Support:,display:Feature Preview,uri:https://edin.ac/sdx-feature-previews
      07-10-19 10:00:19:280 DEBUG AddConfItem: active:1,value1:%OSBuild%,value2:%1809%,comparator:eq
      07-10-19 10:00:19:280 DEBUG AddConfItem: active:1,type:0,button-color:0000FF,color:ffffff,style:,text:Support:,display:Unsupported release,uri:https://edin.ac/sdx-unsupported
      07-10-19 10:00:19:280 DEBUG AddConfItem: active:1,value1:%OSBuild%,value2:%1709%,comparator:eq
      07-10-19 10:00:19:280 DEBUG AddConfItem: active:1,type:0,button-color:0000FF,color:ffffff,style:,text:Support:,display:Unsupported release,uri:https://edin.ac/sdx-unsupported
      07-10-19 10:00:19:280 DEBUG AddConfItem: active:1,value1:%OSBuild%,value2:%1709%,comparator:eq
      07-10-19 10:00:19:280 DEBUG AddConfItem: active:1,interval:0,color:0000FF,type:text,file:\\ed.ac.uk\dst\custom\DesktopInfo\v1190\OSBuildVers.txt,key:OS (1709):,display:%1
      07-10-19 10:00:19:280 DEBUG AddConfItem: active:1,value1:%OSBuild%,value2:%1803%,comparator:eq
      07-10-19 10:00:19:295 DEBUG AddConfItem: active:1,interval:0,color:FFFFFF,type:text,file:\\ed.ac.uk\dst\custom\DesktopInfo\v1190\OSBuildVers.txt,key:OS (1803):,display:%1
      07-10-19 10:00:19:295 DEBUG AddConfItem: active:1,value1:%OSBuild%,value2:%1809%,comparator:eq
      07-10-19 10:00:19:295 DEBUG AddConfItem: active:1,interval:0,color:0000FF,type:text,file:\\ed.ac.uk\dst\custom\DesktopInfo\v1190\OSBuildVers.txt,key:OS (1809):,display:%1
      07-10-19 10:00:19:295 DEBUG AddConfItem: active:1,value1:%OSBuild%,value2:%1903%,comparator:eq
      07-10-19 10:00:19:295 DEBUG AddConfItem: active:1,interval:0,color:0080FF,type:text,file:\\ed.ac.uk\dst\custom\DesktopInfo\v1190\OSBuildVers.txt,key:OS (1903):,display:%1
      07-10-19 10:00:19:295 DEBUG AddConfItem: active:1,namespace:root\UoEX,query:Local_Config,display:%SDXFunc%,set:Func,hidden:1
      07-10-19 10:00:19:295 DEBUG AddConfItem: active:1,value1:%Func%,value2:Staff,comparator:ne
      07-10-19 10:00:19:295 DEBUG AddConfItem: active:1,color:FFFFFF,type:text,file:c:\sdx\DesktopInfo\ISFM-Func.txt,display:%2
      07-10-19 10:00:19:295 DEBUG AddConfItem: active:1,interval:300,color:FFFFFF,operstatus:1,,iftype:6 71,text:IP Address:,display:%8
      07-10-19 10:00:19:295 DEBUG AddConfItem: active:1,interval:300,color:FFFFFF,threshold1:8 -90000000000 0000FF,max:3,text:Free (test):,display:%8[1.0B]B/%5[1.0B]B (%9[1.0d]%),include:C:
      07-10-19 10:00:19:295 DEBUG AddConfItem: active:1,interval:300,color:0000FF,type:text,file:\\ed.ac.uk\dst\custom\DesktopInfo\v1190\AllSDXAlert.txt,display:%2
      07-10-19 10:00:19:295 INFO Items Loaded: 29
      07-10-19 10:00:19:311 DEBUG UpdateEntries Complete.
      07-10-19 10:00:19:311 DEBUG UpdateEntries Complete.
      07-10-19 10:00:19:311 DATA Host: DST-DCR-666
      07-10-19 10:00:19:327 DATA HOST () True
      07-10-19 10:00:19:327 DATA OS Build: 6.3.18362
      07-10-19 10:00:19:327 DATA OSBUILD () True
      07-10-19 10:00:19:327 DATA SET () True
      07-10-19 10:00:19:327 DATA SET () True
      07-10-19 10:00:19:327 DATA SET () True
      07-10-19 10:00:19:327 DATA SET () True
      07-10-19 10:00:19:327 DATA GetIf: 0
      07-10-19 10:00:19:327 DATA IF () True
      07-10-19 10:00:19:327 DATA GetIf: -1
      07-10-19 10:00:19:327 DATA IF () True
      07-10-19 10:00:19:327 DATA CONTROL () True
      07-10-19 10:00:19:342 DATA GetIf: 0
      07-10-19 10:00:19:342 DATA IF () True
      07-10-19 10:00:19:342 DATA GetIf: 0
      07-10-19 10:00:19:342 DATA IF () True
      07-10-19 10:00:19:342 DATA GetIf: 0
      07-10-19 10:00:19:342 DATA IF () True
      07-10-19 10:00:19:342 DATA GetIf: 0
      07-10-19 10:00:19:342 DATA IF () True
      07-10-19 10:00:19:342 DATA GetIf: 0
      07-10-19 10:00:19:342 DATA IF () True
      07-10-19 10:00:19:342 DATA GetIf: -1
      07-10-19 10:00:19:358 DATA IF () True
      07-10-19 10:00:19:389 DATA GetFile2Text: OS (1903):=click above for details
      07-10-19 10:00:19:405 DATA FILE2TEXT () True
      07-10-19 10:00:19:452 DATA GetCustomWMI: lid: Result: Staff
      07-10-19 10:00:19:467 DATA WMI () True
      07-10-19 10:00:19:467 DATA GetIf: 0
      07-10-19 10:00:19:467 DATA IF () True
      07-10-19 10:00:19:483 DATA GetNetworkInterface: 129.215.201.106|
      07-10-19 10:00:19:483 DATA NETWORKINTERFACES () True
      07-10-19 10:00:20:077 DATA GetLogicalDrives2: 89GB/254GB (35%)|
      07-10-19 10:00:20:092 DATA LOGICALDRIVES () True
      07-10-19 10:00:20:092 DATA GetFile2Text:
      07-10-19 10:00:20:092 DATA FILE2TEXT () True
      07-10-19 10:00:20:233 DEBUG UpdateEntries Complete.
      07-10-19 10:00:20:911 DATA SET () True
      07-10-19 10:00:20:911 DATA SET () True
      07-10-19 10:00:20:911 DATA SET () True
      07-10-19 10:00:20:911 DATA SET () True
      07-10-19 10:00:20:927 DATA GetIf: 0
      07-10-19 10:00:20:927 DATA IF () True
      07-10-19 10:00:20:927 DATA GetIf: -1
      07-10-19 10:00:20:927 DATA IF () True
      07-10-19 10:00:20:942 DATA GetIf: 0
      07-10-19 10:00:20:942 DATA IF () True
      07-10-19 10:00:20:942 DATA GetIf: 0
      07-10-19 10:00:20:942 DATA IF () True
      07-10-19 10:00:20:958 DATA GetIf: 0
      07-10-19 10:00:20:958 DATA IF () True
      07-10-19 10:00:20:958 DATA GetIf: 0
      07-10-19 10:00:20:958 DATA IF () True
      07-10-19 10:00:20:958 DATA GetIf: 0
      07-10-19 10:00:20:974 DATA IF () True
      07-10-19 10:00:20:974 DATA GetIf: -1
      07-10-19 10:00:20:974 DATA IF () True
      07-10-19 10:00:20:974 DATA GetIf: 0
      07-10-19 10:00:20:974 DATA IF () True
      07-10-19 10:00:21:224 DEBUG UpdateEntries Complete.

      In the meantime, I’ve used the percentage threshold based on the capacity of their disk ie if the capacity is above 500Gb then set the min threshold to 10percent (ie 50Gb free). If their disk capacity is less than 500Gb, set the threshold to 20percent …

      ### if disk is >= 500Gb then set threshold as 10% ie min 50Gb free on 512Gb disk
      # set disk capacity threshold in bytes (eg 500Gb)
      SET=active:1,key:DiskCapThr,value:500000000000
      LOGICALDRIVES=active:1,include:C:,set:DiskSize,display:%5,hidden:1
      IF=active:1,value1:%DiskSize%,value2:%DiskCapThr%,comparator:ge
      LOGICALDRIVES=active:1,interval:300,color:FFFFFF,threshold1:9 -10 0000FF,max:3,text:Free space:,display:%8[1.0B]B/%5[1.0B]B (%9[1.0d]%),include:C:
      ### if disk is < 500Gb then set threshold as 20% ie min 50Gb free on 250Gb disk
      IF=active:1,value1:%DiskSize%,value2:%DiskCapThr%,comparator:lt
      LOGICALDRIVES=active:1,interval:300,color:FFFFFF,threshold1:9 -20 0000FF,max:3,text:Free space:,display:%8[1.0B]B/%5[1.0B]B (%9[1.0d]%),include:C:

      Thanks again for all your help.

      Cheers,
      Dave.

      0
    • #2211 Reply
      GlennGlenn
      Keymaster

      Hi Dave,
      Thanks for the detailed analysis. You are correct and the clue is the magnitude of the value used in the threshold. One of the internal data types used to read in the threshold config was too small to handle the big number.

      There’s a couple of other bugs worthy of a minor release so I’ll try to do that this week.

      Cheers

      1+
Viewing 1 reply thread
Reply To: LOGICALDRIVES thresholds
Your information:




Do NOT follow this link or you will be banned from the site!