Machine-readable end-of-life date for Ubuntu releases
Using the Launchpad API, it is easy to check if a given Ubuntu version is still supported:
import launchpadlib.
def supported(version):
cachedir = os.path.
lp = launchpadlib.
ubuntu = lp.distribution
return ubuntu.
I'm writing a Nagios check to ensure my machines are running a supported version of
Ubuntu. I'd like the check to return a warning state a couple of months before the
version reaches end-of-life, but as far as I can tell the end-of-life date is not avalable
via the Launchpad API. I'm aware of https:/
is fairly hard to parse.
Proposal: add an end_of_file attribute to object returned by getSeries, that contains
the currently scheduled end-of-life date as a string in YYYY-MM-DD format.
Or is that information already available in machine-readable form somewhere?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Benji York
- Solved:
- Last query:
- Last reply: