Is peritonitis a contagious disease?

No. Peritonitis is an infectious but not contagious disease.
No. It is internal. If the cause is infectious, and bacteria or systemic virus was involved in the pro drone, it may be possible but most are from bowel and internal to the patient.