Periodically notify users of unused versions located in versions directory
As a safety measure for admins in Ops Manager to avoid facing issues due to unnecessary disk occupation under the Ops Manager installation directory:
Send periodic notifications (configurable) i.e: once a month; to notify what binaries are not being used by none of the components in their environment so they can evaluate to delete them in order to free up space on their Ops Manager servers.
-
Emilio commented
Ops Manager configured as "Internet" mode (tested on latest 4.2.12 version) downloads automatically even obsolete EOL versions such as 2.6, 3.0, 3.2 and 3.4:
```
[root@omserver mongodb-releases]# ls -l
total 1740080
drwxr-xr-x 3 mongodb-mms mongodb-mms 78 May 18 15:59 mongodb-linux-x86_64-2.6.12
-rw------- 1 mongodb-mms mongodb-mms 116719706 May 18 15:58 mongodb-linux-x86_64-2.6.12.tgz
drwxr-xr-x 4 mongodb-mms mongodb-mms 89 May 18 15:59 mongodb-linux-x86_64-enterprise-rhel70-2.6.12
-rw------- 1 mongodb-mms mongodb-mms 91649796 May 18 15:58 mongodb-linux-x86_64-enterprise-rhel70-2.6.12.tgz
drwxr-xr-x 4 mongodb-mms mongodb-mms 89 May 18 15:59 mongodb-linux-x86_64-enterprise-rhel70-3.0.15
-rw------- 1 mongodb-mms mongodb-mms 71198712 May 18 15:58 mongodb-linux-x86_64-enterprise-rhel70-3.0.15.tgz
drwxr-xr-x 4 mongodb-mms mongodb-mms 102 May 18 15:59 mongodb-linux-x86_64-enterprise-rhel70-3.2.22
-rw------- 1 mongodb-mms mongodb-mms 85774826 May 18 15:59 mongodb-linux-x86_64-enterprise-rhel70-3.2.22.tgz
drwxr-xr-x 4 mongodb-mms mongodb-mms 137 May 18 15:59 mongodb-linux-x86_64-enterprise-rhel70-3.4.24
-rw------- 1 mongodb-mms mongodb-mms 139945076 May 18 15:57 mongodb-linux-x86_64-enterprise-rhel70-3.4.24.tgz
drwxr-xr-x 4 mongodb-mms mongodb-mms 137 May 18 15:59 mongodb-linux-x86_64-enterprise-rhel70-3.6.23
-rw------- 1 mongodb-mms mongodb-mms 137450371 May 18 15:58 mongodb-linux-x86_64-enterprise-rhel70-3.6.23.tgz
drwxr-xr-x 4 mongodb-mms mongodb-mms 148 May 18 15:59 mongodb-linux-x86_64-enterprise-rhel70-4.0.24
-rw------- 1 mongodb-mms mongodb-mms 121641786 May 18 15:57 mongodb-linux-x86_64-enterprise-rhel70-4.0.24.tgz
drwxr-xr-x 4 mongodb-mms mongodb-mms 148 May 18 15:59 mongodb-linux-x86_64-enterprise-rhel70-4.2.14
-rw------- 1 mongodb-mms mongodb-mms 169474830 May 18 15:58 mongodb-linux-x86_64-enterprise-rhel70-4.2.14.tgz
drwxr-xr-x 4 mongodb-mms mongodb-mms 113 May 18 15:59 mongodb-linux-x86_64-enterprise-rhel70-4.4.6
-rw------- 1 mongodb-mms mongodb-mms 133197958 May 18 15:58 mongodb-linux-x86_64-enterprise-rhel70-4.4.6.tgz
drwxr-xr-x 3 mongodb-mms mongodb-mms 78 May 18 15:59 mongodb-linux-x86_64-rhel70-3.0.15
-rw------- 1 mongodb-mms mongodb-mms 70641804 May 18 15:57 mongodb-linux-x86_64-rhel70-3.0.15.tgz
drwxr-xr-x 3 mongodb-mms mongodb-mms 91 May 18 15:59 mongodb-linux-x86_64-rhel70-3.2.22
-rw------- 1 mongodb-mms mongodb-mms 82613298 May 18 15:57 mongodb-linux-x86_64-rhel70-3.2.22.tgz
drwxr-xr-x 3 mongodb-mms mongodb-mms 126 May 18 15:59 mongodb-linux-x86_64-rhel70-3.4.24
-rw------- 1 mongodb-mms mongodb-mms 125217131 May 18 15:58 mongodb-linux-x86_64-rhel70-3.4.24.tgz
drwxr-xr-x 3 mongodb-mms mongodb-mms 135 May 18 15:59 mongodb-linux-x86_64-rhel70-3.6.23
-rw------- 1 mongodb-mms mongodb-mms 124176929 May 18 15:58 mongodb-linux-x86_64-rhel70-3.6.23.tgz
drwxr-xr-x 3 mongodb-mms mongodb-mms 135 May 18 15:59 mongodb-linux-x86_64-rhel70-4.0.24
-rw------- 1 mongodb-mms mongodb-mms 106804000 May 18 15:58 mongodb-linux-x86_64-rhel70-4.0.24.tgz
drwxr-xr-x 3 mongodb-mms mongodb-mms 135 May 18 15:59 mongodb-linux-x86_64-rhel70-4.2.14
-rw------- 1 mongodb-mms mongodb-mms 133214967 May 18 15:58 mongodb-linux-x86_64-rhel70-4.2.14.tgz
drwxr-xr-x 3 mongodb-mms mongodb-mms 100 May 18 15:59 mongodb-linux-x86_64-rhel70-4.4.6
-rw------- 1 mongodb-mms mongodb-mms 72077387 May 18 15:57 mongodb-linux-x86_64-rhel70-4.4.6.tgz
```This should not happen as it's wasting disk space on the Ops Manager server. MongoDB 3.2 and lower versions cannot be used by Automation by Ops Manager 4.4 as they are unsupported by it.