Immunological monitoring to prevent and treat sepsis