Results: In diabetic patients, elevated CRP, IL-6, TRG/HDL-C ratio, and TyG index, severe pneumonia, and hyperglycemia were associated with extended hospitalization. Here, CRP is linked to pneumonia.