first version of server density monitoring modules

Would you please add a docstring to this function?