Indicator for EoL of OS in Virtualmin Dashboard

Could we have a visual / colour indicator for EoL status of the operating system in the Virtualmin Dashboard, like there is for Webmin version, Virtualmin version, Usermin version and Theme version?

Quite simply, if the OS is EoL, show it in red.

#FeatureRequest

2 Likes

That’s a good idea. I’m not sure how we’d implement it in a reliable way. I think apt will say something about it on apt update, but it’s in a mess of text, I’m not confident it’s always the exact same phrase in every EOL version or that it’ll stay the same.

I guess we could maintain our own list of EOL operating systems, but I’m sure we’d occasionally be a little behind, since I don’t monitor it super closely.

I’ll think on it.

1 Like

You could pull the info from places like https://endoflife.software/ or https://endoflife.date/ (has an API too).

1 Like

I like this idea too! @Jamie let’s just make a list of EOL OS (at least some, Grade A in Virtualmin for starters) and just push a notification to the Dashboard a few months before EOL and make it dismissible.

Yeah, I wouldn’t want to pull from a third party on every client machine, but we could build our own static text list hosted on one of our servers from an API, and update it every week or whatever (EOL dates don’t change often, though Debian historically sort of vaguely moves around based on when the next new release is ready…the commercial distros have fixed dates that rarely change).

Yeah, though I don’t think we even need to pull it remotely. EOL is really not changing more often than Webmin releases, so I think it should be a simple local file.

1 Like

Yeah I think this is a good idea. The question is where to store it … simplest would be a simple text file per distro that’s part of Virtualmin containing the support status like :

os_name=Debian Linux
os_version=13.0
status=supported
eol=12-12-2025

Only hard part would be creating all those files!

I think we should store it in Webmin, in os_list_eol.txt file.

… or perhaps in os_list.txt itself as the last parameter.

os_list.txt would explode in complexity. It doesn’t currently keep up with every single release…only the ones that change something Webmin cares about.

A separate EOL file is right. How to generate it…this API Steini linked above looks perfect: endoflife.date API Documentation -

The “get all details” endpoint is everything about each OS they track in a JSON file per OS.

That could work, although we’d need to map between the distro names used by that API and the ones Webmin uses.

1 Like

@Joe, The real thing is that detect_operating_system() is already reading os_list.txt and updates /etc/webmin/config with real_os_type, os_type, os_version, etc. Additionally, a lot has been done around this subroutine, which is called from get_webmin_notifications, already part of the status collection that involves caching, and much more! Therefore, I believe we should just add OS Active Support as parameter #6 and Security Support as parameter #7 to os_list.txt file, and store it in /etc/webmin/config with os_eol_active and os_eol_security keys, using the standard SQL date format.

@Jamie, I’ll go check how we can automate this and send you a PR.

What I said is true though, you’re right, there is no need to store it in os_list.txt file.

Implemented here:

Thanks, I will take a look at your PR!

@calport How about this? Is it good enough?

Or should we also add an alert message?

Also, it will be possible to configure how many months before the EOL message is shown, e.g.:

1 Like

Hi Illia

First warning is enough (screen shot)… no one is going to go reading about how long before EOL on a page I have never visited in the 10 plus years we been running Virtualmin

Thanks
Michael

I think this is just right. An alert message is a one time deal, this is a constant reminder to be a good server guy but is not in your face.

3 month for the warning in red, maybe from 6 months out use an orange colour for defaults. This obviously require 2 settings.

Being able to set these time is a good idea for those who like to be proactive.

Thank you very much @Ilia and the Virtualmin team. This is most satisfactory and will be of help to users to plan ahead for upgrades.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.