They knew it was coming. They did nothing.
From
Breitbart:
"According to senior diplomatic sources, the US State Department had credible information 48 hours before mobs charged the consulate in Benghazi, and the embassy in Cairo, that American missions may be targeted, but no warnings were given for diplomats to go on high alert and "lockdown", under which movement is severely restricted."
More at
Breitbart.