On multivariable analysis, a CD4+ cell count <200 cells/μL (AHR 27.30, CI 2.40–310.27, p = 0.008), male gender, S. aureus nasal carriage, and diabetes were found to be independent predictors of S. aureus peritonitis. Here, CD4 is linked to diabetes mellitus.