• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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