• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • Our UX team believes in the in the power of direct feedback and would like to invite you to participate in interviews, tests, and surveys.
    To stay in the loop and never miss an opportunity to share your thoughts, please subscribe to our UX research program. If you were previously part of the Plesk UX research program, please re-subscribe to continue receiving our invitations.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Question Need URL to get stable Version Number

micneon

New Pleskian
Server operating system version
Debian11-12, Ubuntu 20.04 - 22.04, Rocky Linux 9
Plesk version and microupdate number
18.0.64u1
Hello,

I would like to build a check_plesk_update, to get the version on Linux level which is currently installed is no problem, but is there a URL or something that always returns the current stable release, so that you could trigger an event in the monitoring in case of a deviation?

plesk -v | grep "Product version" | awk '{ print $5 }'
18.0.64.1

Nextcloud has something like that.

Greetings Michael
 
You mean something like this?

Code:
#!/bin/bash

# Get the current installed Plesk version
current_version=$(plesk -v | grep "Product version" | awk '{ print $5 }')

# Get the latest stable Plesk version from the RSS feed
latest_version=$(curl -s https://docs.plesk.com/release-notes/obsidian/change-log/rss.xml | \
    grep -oP '(?<=<title>).*?(?=</title>)' | \
    grep -oP 'Plesk Obsidian \d+\.\d+\.\d+(?: Update \d+)?' | head -n 1)

# Check if the latest version was retrieved
if [[ -z "$latest_version" ]]; then
    echo "Error: Unable to fetch the latest version from the RSS feed."
    exit 1
fi

# Check if the current version matches the latest version
if [[ "$current_version" != "$latest_version" ]]; then
    echo "Version mismatch detected!"
    echo "Current installed Plesk version: $current_version"
    echo "Latest Plesk version: $latest_version"
    # Trigger an event or monitoring alert here
else
    echo "Plesk is up to date. Current version: $current_version"
fi

It works like this:
Code:
# sh check_plesk_version.sh
Version mismatch detected!
Current installed Plesk version: 18.0.63.4
Latest Plesk version: Plesk Obsidian 18.0.64 Update 1
 
Hello,

yes something like that, but unfortunately it will never match because the versions will always be different, thanks I hope there is a page from Plesk that is also directly matched, because I don't want to have to convert it with scripts like update 1 to .1 and if there is no update then only the main version is taken. If there is nothing else and someone has ne info your approach is schom times mega thanks for it.

Currently, this would not fit together:
Current installed Plesk version: 18.0.64.1
Latest Plesk version: Plesk Obsidian 18.0.64 Update 1

Greetings Michael
 
Back
Top