added email and nagios notifications