fixing status calculation issue for groups and fixing restart of monitor hierarchy