The second case that could occur and prevent the removal of the device, would be if it is the last device of its type still monitored in BLESK.
1 – SERVER2 is the only remaining Windows server. If we try to delete it, we will receive an error message indicating that there are several services dependent on it. These are the services that were associated by default with this type of device (Windows Server) by BLESK auto detection.
2 – We must therefore do the same exercise as before by disassociating these services from the device before being able to erase it. Go to Supervision | Services and do a search for all services listed, then click on the “Edit” icon for each of them to access their settings.
3 – Once in the settings of these services, click on the pencil icon to edit the section called “Hosts“, which lists all the hosts on which the service applies. Remove your device from the list, then at the bottom of the page uncheck the options labeled “Active” and “Registered” and click on the “Save” button. Repeat for other related services remaining.
4 – Once completed, click on the button at the bottom of the page called “Write all config files” in order to write all the modifications to the server’s disk.
5 – Now we can go back to the “Host” tab to erase our device called “SERVER2”. Click Supervision | Host, then search the list for the host “SERVER2” and click on the “Delete” icon to delete it. This time, you are able to do this because there is no longer a service dependency associated with the device. Do not forget to click on the button at the bottom of the page called “Write all config files” in order to write all the modifications to the server disk.
6 – Finally, go to the Tools | Control and click on the four buttons on this page in the order shown below (from top to bottom). This allows for a final check and ensure that everything is set before restarting the process in real time. Note, that if you see an error, it is important to fix it before restarting the process.