Seit ca. 1 Monat verlängert sich die LiveConfig-Lizenz nicht mehr automatisch. Nach mehreren Vorfällen habe ich ein Monitoring Script für meine LiveConfig-Instanzen laufen und das ist wohl bei allen so.
D. h. ich muss jetzt zwingend regelmäßig einen systemctl restart liveconfig ausführen und dann erst wird die Lizenz wieder erneuert.
Das ist mein Monitoring - Script:
Bash
#!/bin/bash
declare -rx PATH=/bin:/usr/bin:/usr/sbin:/sbin:/usr/local/bin
declare -rx LC_ALL=C
declare -rx KEYFILE=/etc/liveconfig/liveconfig.key
eexit() {
echo "$*"
exit 1
}
myinit() {
which openssl &>/dev/null || eexit "openssl not found, please install, aborting..."
}
openssl_dates() {
local dates
local start_date
local end_date
if [ -f $KEYFILE ] ; then
dates="$(openssl x509 -in $KEYFILE -noout -dates)"
start_date="$(echo -e "$dates"| awk '/notBefore/ {split($0,res,"=");print(res[2])}')"
end_date="$(echo -e "$dates"| awk '/notAfter/ {split($0,res,"=");print(res[2])}')"
start_date="$(date +%s -d "$start_date")"
end_date="$(date +%s -d "$end_date") "
fi
echo $start_date $end_date
}
main() {
local start_date
local end_date
local status
local status_text
myinit
read start_date end_date < <(openssl_dates)
if [ -n "$start_date" ] ;then
now=$(date +%s)
if [ "$start_date" -lt "$now" -a "$end_date" -gt "$now" ] ;then
status=0
((time_remaining=$end_date-$now))
status_text="Lizenz gültig. Zeitraum von $(date +%d.%m.%Y -d @$start_date) bis $(date +%d.%m.%Y -d @$end_date)"
else
status=2
time_remaining=0
status_text="Lizenz ungültig(!). Zeitraum von $(date +%d.%m.%Y -d @$start_date) bis $(date +%d.%m.%Y -d @$end_date)"
fi
echo "$status liveconfig_license time_remaining=$time_remaining $status_text"
fi
}
main
exit 0
# openssl example output
openssl x509 -in /etc/liveconfig/liveconfig.key -dates
notBefore=Jan 5 09:51:42 2026 GMT
notAfter=Jan 28 10:52:46 2026 GMT
-----BEGIN CERTIFICATE-----
MIICozCCAimgAwIBAgIIHB3V0zZoWJgwCgYIKoZIzj0EAwIwdTELMAkGA1UEBhMC
...
mLRSSD5g+g==
-----END CERTIFICATE-----
Alles anzeigen
LiveConfig Diagnostics:
Code
liveconfig --diag
Running OS diagnostics... (LiveConfig 2.18.10-release)
FILE SYSTEMS:
/ [/dev/mapper/vg_sys-root] (total: 144710053888, free: 51986051072)
/boot [/dev/sda1] (total: 2110627840, free: 1705836544)
CPUs:
CPU: 'cpu' user=149727954 nice=12398464 system=90782325 idle=3556481290 wait=19727787 irq=0 sirq=19589384 steal=7404562 guest=0
CPU: 'cpu0' user=149727954 nice=12398464 system=90782325 idle=3556481290 wait=19727787 irq=0 sirq=19589384 steal=7404562 guest=0
CPU: 'cpu1' user=149727954 nice=12398464 system=90782325 idle=3556481290 wait=19727787 irq=0 sirq=19589384 steal=7404562 guest=0
CPU: 'cpu2' user=149727954 nice=12398464 system=90782325 idle=3556481290 wait=19727787 irq=0 sirq=19589384 steal=7404562 guest=0
CPU: 'cpu3' user=149727954 nice=12398464 system=90782325 idle=3556481290 wait=19727787 irq=0 sirq=19589384 steal=7404562 guest=0
CPU IDENTIFICATION:
Physical CPUs: 2
CPU Vendor: GenuineIntel
CPU Model: Common KVM processor
Physical Core Count: 2
Cache: 16384 KB
LOAD AVERAGE:
Load: 1min=1.384277, 5min=1.013184, 15min=0.557129
MEMORY:
Total Memory: 8322863104
Free Memory: 7111802880
Total Swap: 2147479552
Free Swap: 2133663744
INTERFACES:
Name: 'lo'
MAC: 00:00:00:00:00:00
IPv4: '127.0.0.1'/8
IPv6: '::1'/128
IN: 1016687589 bytes (44715000 packets)
OUT: 1016687589 bytes (44715000 packets)
FLAGS: UP LOOPBACK
Name: 'ens18'
MAC: 00:00:00:00:00:00
IPv4: '1.2.3.4'/24
IPv6: 'fe80::be24:11ff:feaa:9a8f'/64
IN: 1553139171 bytes (4283659892 packets)
OUT: 2968096714 bytes (580931998 packets)
FLAGS: UP BROADCAST
HOSTNAME:
Hostname: 'myhostname'
FQDN: 'myhostname.mydomain.de'
UPTIME:
Uptime: 111 days, 17:47:28
DMI:
Manufacturer: QEMU
Product Name: Standard PC (i440FX + PIIX, 1996)
Version: pc-i440fx-10.0
IPMI:
ERROR: IPMI not supported in this build
QUOTA for group 'root' at path /var/www: ERROR - No such process
Running Lua diagnostics...
[INFO] Detected 'Ubuntu 22.04.5 LTS'
Distribution name: 'Ubuntu'
Distribution codename: 'jammy'
Distribution family: 'Debian'
Distribution version: '22.04'
Distribution description: 'Ubuntu 22.04.5 LTS'
Checking for web server software:
- Found 'apache' web server
Version: '2.4.52'
Package version: '2.4.52-1ubuntu4.18'
Modules: core so watchdog http log_config logio version unixd access_compat actions alias auth_basic authn_core authn_file authz_core authz_groupfile authz_host authz_user autoindex deflate dir env fcgid filter include mime mpm_event negotiation proxy proxy_fcgi proxy_http reqtimeout rewrite setenvif socache_shmcb ssl status suexec
- PHP 8.3.30 (code='php83', eol='2027-12-31')
CGI/FastCGI: /opt/php-8.3/bin/php-cgi
FPM: /opt/php-8.3/sbin/php-fpm
pool config: /etc/php-fpm/php83-fpm.d
default php.ini: '/opt/php-8.3/etc/php.ini'
- PHP 8.1.2 [DEFAULT] (code='php8')
CGI/FastCGI: /usr/bin/php-cgi
default php.ini: '/etc/php/8.1/cgi/php.ini'
- default PHP CLI: /usr/bin/php
Checking for ftp server software:
- Found 'proftpd' FTP server
Version: '1.3.7c'
Package version: '1.3.7c+dfsg-1ubuntu0.1'
Checking for SMTP server software:
- Found 'postfix' smtp server
Version: '3.6.4'
Package version: '3.6.4-1ubuntu1.3'
DANE/TLSA support: 'yes'
- SpamAssassin: NOT FOUND
- found OpenDKIM (package version: '2.11.0~beta2-6')
configured: no
Checking for POP/IMAP server software:
- Found 'dovecot' POP/IMAP server
Version: '2.3.16'
Package version: '1:2.3.16+dfsg1-3ubuntu2.6'
Checking for database server software:
- Found 'mysql' database server
Version: '8.0.45'
Package version: '8.0.45-0ubuntu0.22.04.1'
Checking for DNS server software:
Done.
Alles anzeigen