Robert Williams via observium wrote on 27.01.2023 14:33:
Hi,
Subscription edition, have just completed an upgrade of underlying
Ubuntu to 22.04 from 18.04. Added all packages back to correct
versions as per docs:
apt install libapache2-mod-php8.1 php8.1-cli php8.1-mysql php8.1-gd
php8.1-bcmath php8.1-mbstring \
php8.1-opcache php8.1-curl php-apcu php-pear snmp fping mysql-server
mysql-client rrdtool subversion \
whois mtr-tiny ipmitool graphviz imagemagick apache2 python3-mysqldb
python3-pymysql python-is-python3
PHP Version is as expected:
PHP 8.1.2-1ubuntu2.10 (cli) (built: Jan 16 2023 15:19:49) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
However, both Apache and any manual CLI attempts throw this:
# ./poller.php -h all
PHP Fatal error: Uncaught Error: Cannot use a scalar value as an
array in /opt/observium/includes/definitions/mibs/brocade.inc.php:105
Stack trace:
#0 /opt/observium/includes/include-dir.inc.php(48): include()
#1 /opt/observium/includes/definitions/mibs.inc.php(780): require('...')
#2 /opt/observium/includes/definitions.inc.php(396): include('...')
#3 /opt/observium/includes/sql-config.inc.php(55): require('...')
#4 /opt/observium/poller.php(19): include('...')
#5 {main}
thrown in /opt/observium/includes/definitions/mibs/brocade.inc.php
on line 105
Mainly, you should not use poller.php -h all at all.
This is old deprecated way, I'm sure there might be some unexpected
errors here, especially with php 8.x.
Correct usage is poller wrapper as:
/opt/observium/observium-warpper poller
Have tried setting as per docs:
error_reporting = E_ALL & ~E_NOTICE
Still throws it as ‘fatal’ and dies :(
We are at revision *12495*.
Any ideas please? Assuming this is a side effect of an in-place
upgrade on Ubuntu, rather than a reinstall/migrate, that’ll teach me…
Cheers,
Custodian Data Centres <https://www.custodiandc.com>
Robert Williams
Technical Director
Email [email protected]
Call +44 (0)1622 230382 (Opt. 1)
Follow us on Twitter <https://twitter.com/custodiandc> Like us on
Facebook <https://www.facebook.com/custodiandc> Review us on Google
<https://goo.gl/trEs7h>
Connect with us on LinkedIn Subscribe to us on YouTube We have 5
stars us on Google
Registered Office: Vinters Business Park, New Cut Rd, Maidstone, Kent
ME14 5NZ
Company Number 07878023
Click here to view our email disclaimer
<https://www.custodiandc.com/email-disclaimer>
_______________________________________________
observium mailing list -- [email protected]
To unsubscribe send an email to [email protected]
--
Mike Stupalov,
Discord channel: https://discord.gg/GjpNXKWm8W
Observium Limited, https://observium.org
_______________________________________________
observium mailing list -- [email protected]
To unsubscribe send an email to [email protected]