Reputation Activity
-
Jan C. Nielsen got a reaction from WYE in Services or Process - is not sending alertBut you gave me a clue to the problem - so it is fixed now :-)
Â
-
Jan C. Nielsen reacted to WYE in Services or Process - is not sending alertHi @Jan C. Nielsen
Do you have any policies set on that group\site?Â
Policies will take precedence over agent configured settings.Â
Also - check that they are in the "unconfigured state" or "ticked" based on your requriements.Â
Â
-
Jan C. Nielsen reacted to Paul in Change configuration on multiple serversI've recently built this script which also identifies the serial number of the disk to fill in the ID field:
$query = 'SELECT VolumeSerialNumber FROM Win32_LogicalDisk where DriveType=3 AND Name=''' + $env:SystemDrive + '''' $serialNumber = (gwmi -Query $query).VolumeSerialNumber $count = 0 # rule 1: < 5000MB - Elevated Set-ItemProperty -Path 'HKLM:\SOFTWARE\MMSOFT Design\PC Monitor\HDDList' -Name ('Id' + $count) -Value $serialNumber Set-ItemProperty -Path 'HKLM:\SOFTWARE\MMSOFT Design\PC Monitor\HDDList' -Name ('Percentage' + $count) -Value '15' # not used Set-ItemProperty -Path 'HKLM:\SOFTWARE\MMSOFT Design\PC Monitor\HDDList' -Name ('Priority' + $count) -Value '2' # elevated Set-ItemProperty -Path 'HKLM:\SOFTWARE\MMSOFT Design\PC Monitor\HDDList' -Name ('SizeMB' + $count) -Value '5000' Set-ItemProperty -Path 'HKLM:\SOFTWARE\MMSOFT Design\PC Monitor\HDDList' -Name ('UsePercentage' + $count) -Value '0' $count = $count + 1 # rule 2: < 2000MB - Critical Set-ItemProperty -Path 'HKLM:\SOFTWARE\MMSOFT Design\PC Monitor\HDDList' -Name ('Id' + $count) -Value $serialNumber Set-ItemProperty -Path 'HKLM:\SOFTWARE\MMSOFT Design\PC Monitor\HDDList' -Name ('Percentage' + $count) -Value '15' # not used Set-ItemProperty -Path 'HKLM:\SOFTWARE\MMSOFT Design\PC Monitor\HDDList' -Name ('Priority' + $count) -Value '3' # critical Set-ItemProperty -Path 'HKLM:\SOFTWARE\MMSOFT Design\PC Monitor\HDDList' -Name ('SizeMB' + $count) -Value '2000' Set-ItemProperty -Path 'HKLM:\SOFTWARE\MMSOFT Design\PC Monitor\HDDList' -Name ('UsePercentage' + $count) -Value '0' $count = $count + 1 Set-ItemProperty -Path 'HKLM:\SOFTWARE\MMSOFT Design\PC Monitor\HDDList' -Name 'Count' -Value $count Set-ItemProperty -Path 'HKLM:\SOFTWARE\MMSOFT Design\PC Monitor' -Name 'SendNotificationOnLowHDDSpace' -Value '1' -Paul
-
Jan C. Nielsen reacted to WYE in Change configuration on multiple serversHi Jan,Â
This is all theory - but it may point you in the right direction. Use PowerShell to update the settings for the Agent:
Set-Itemproperty -path 'HKLM:\SOFTWARE\MMSOFT Design\PC Monitor' -Name 'SendNotificationOnLowHDDSpace' -value '1' Then look in the HKEY_LOCAL_MACHINE\SOFTWARE\MMSOFT Design\PC Monitor\HDDList keys:
It appears to have two values for each notification. I've configured two alerts for my single disk (as that's all I have on this PC) and this is what i get:
You could easily use Get-Disk to figure out if there is a second disk, and if so, apply the relevant notification and configuration in the agent via the Set-ItemProperty cmdlet.
 Do let us know how you get on and\or if this helps?Â
WYE
Â