static public String GetConfigHosts(String mcfgid) throws FileNotFoundException, IOException, NamingException, SQLException {
        if (props == null) {
            props = Basics.getConfiguration();
        }
        String out = ""; String comment = "";
        Context ctx = new InitialContext(); 
        DataSource ds  = (DataSource) ctx.lookup("jdbc/monitoring"); 
        Connection cn = ds.getConnection(); 
        PreparedStatement ps = cn.prepareStatement("SELECT decode(comment,'base64') FROM monitoring_config WHERE mcfgid=?");
        ps.setInt(1, Integer.parseInt( mcfgid ));
        ResultSet rs = ps.executeQuery();
        
        if ( rs.next() ) {
            comment = Basics.encodeConfig( rs.getString( 1 ) );
        }
        
        ArrayList list = Basics.SplitConfig(comment, "<br>");
        
        for (int j = 0; j < list.size(); j++) {
            String[] array = list.get(j).toString().split("=");
            if("all_hosts".equals(array[0])) {
                String[] host = array[1].substring(array[1].indexOf("[")+1,array[1].lastIndexOf("]")).replace("'","").split(",");
                for (int k = 0; k < host.length; k++) {
                    if (host[k].contains("|")) {
                        out+= "\"" + host[k].substring(0,host[k].indexOf("|")) + "\",";
                    } else {
                        out+= "\"" + host[k] + "\",";
                    }
                }
            }
        }
        
        out = out.substring(0, out.length()-1);
        
        /*
         * Close Connection
         */
        cn.close();
        return "[" + out + "]";
    }