Skip to content

Instantly share code, notes, and snippets.

View gildegoma's full-sized avatar
💭
Not sure what to do next...

Gilles Cornu gildegoma

💭
Not sure what to do next...
View GitHub Profile
@iMilnb
iMilnb / getmonit.py
Last active February 11, 2022 08:24
Fetch monit XML status URL content, transform it to JSON and display a status report
#!/usr/bin/env python
import requests
import xmltodict
import json
import os
import sys
with open('{0}/.getmonitrc'.format(os.path.expanduser('~'))) as f:
cf = json.loads(f.read())