Wash the herbs, dab dry and chop. Peel and chop the garlic. Coarsely chop the nuts. Puree the herbs, garlic, 2/3 of the nuts, parmesan and a little oil in the universal chopper. Slowly add the remaining oil while continuing to puree. Season with salt and pepper. Cover and leave to stand.
Cook the pasta in plenty of boiling salted water for about 10 minutes. Cut ham into strips. Clean, wash, quarter and seed the tomatoes. Cut olives into slices from the stone. Mix spaghetti with some pesto, tomatoes, ham and olives loosely. Add the rest of the pesto. Sprinkle with remaining peanuts