• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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