Error "Creation Failed" when Adding Port Groups
Goal: Attempting to make “aggregate” graphs by calculating port bandwidth from multiple devices. For example, a graph that shows the total bandwidth of IP transit or IXP Peering ports that are not in LAG groups on Cisco gear.
Problem Statement: When creating a “Group” of ports I get an error in red that says “Creation Failed: Unknown action requested.”
Problem Description: 1. Click “Create New Group” in the GUI 2. Select Entity Type “Port” 3. Give group name of “TestGroup1” 4. Select “Device” from the dropdown, default to “in” and select a Cisco router in the dropdown that is already present and working in Observium 5. Click “Add rule” select “AND” choose “Port ifIndex” “equals” enter in the field the ifindex a. I’ve also tried adding just one or even multiple rules with “OR’s” results in this message b. I’ve also tried adding the port with “Port ID”, “Port ifDescr”, “Port ifName” and others all result in this failure message c. I’m getting the port_id, ifindex, ifName, etc from the “Data” tab when viewing a Port of the Cisco in Observium 6. Click the bottom right, green “Add Group” and receive the error message: “Creation Failed: Unknown action requested.”
Can someone direct me to how to make such graphs? And/or explain what I might be doing wrong that I cannot create Port Groups?
Observium Subscription License Version 1.3: Observium 22.12.12421 (21st December 2022) OS Linux 4.18.0-408.el8.x86_64 [amd64] (CentOS 8) Apache 2.4.37 (centos) OpenSSL/1.1.1k PHP 7.2.24 (OPcache: ENABLED) (Memory: 128MB) Python 3.6.8 (python3 not used as default python) MariaDB 10.3.28-MariaDB (extension: mysqli 5.0.12-dev) SNMP NET-SNMP 5.8 RRDtool 1.7.0 Fping 4.2 (IPv4 and IPv6)
-=JGR
I can't reproduce this trouble.
Increase php memory available in WUI: https://docs.observium.org/faq/?h=memory#observium-returns-a-blank-web-page-...
Justin Radke via observium wrote on 19.01.2023 03:05:
Goal: Attempting to make “aggregate” graphs by calculating port bandwidth from multiple devices. For example, a graph that shows the total bandwidth of IP transit or IXP Peering ports that are not in LAG groups on Cisco gear.
Problem Statement: When creating a “Group” of ports I get an error in red that says “Creation Failed: Unknown action requested.”
Problem Description:
- Click “Create New Group” in the GUI
- Select Entity Type “Port”
- Give group name of “TestGroup1”
- Select “Device” from the dropdown, default to “in” and select a Cisco router in the dropdown that is already present and working in Observium
- Click “Add rule” select “AND” choose “Port ifIndex” “equals” enter in the field the ifindex
a. I’ve also tried adding just one or even multiple rules with “OR’s” results in this message b. I’ve also tried adding the port with “Port ID”, “Port ifDescr”, “Port ifName” and others all result in this failure message c. I’m getting the port_id, ifindex, ifName, etc from the “Data” tab when viewing a Port of the Cisco in Observium 6. Click the bottom right, green “Add Group” and receive the error message: “Creation Failed: Unknown action requested.”
Can someone direct me to how to make such graphs? And/or explain what I might be doing wrong that I cannot create Port Groups?
Observium Subscription License Version 1.3: Observium 22.12.12421 (21st December 2022) OS Linux 4.18.0-408.el8.x86_64 [amd64] (CentOS 8) Apache 2.4.37 (centos) OpenSSL/1.1.1k PHP 7.2.24 (OPcache: ENABLED) (Memory: 128MB) Python 3.6.8 (python3 not used as default python) MariaDB 10.3.28-MariaDB (extension: mysqli 5.0.12-dev) SNMP NET-SNMP 5.8 RRDtool 1.7.0 Fping 4.2 (IPv4 and IPv6)
-=JGR _______________________________________________ observium mailing list --observium@lists.observium.org To unsubscribe send an email toobservium-leave@lists.observium.org
Thanks for looking it over Mike to verify I was attempting it correctly.
Does anyone have any ideas on how I can troubleshoot this problem? Also, can I send images with this email thread? Is it best for me to send links to images or create a video to describe the problem better?
Here is what I have tried to troubleshoot:
* I don’t see any relevant entries in the /opt/observium/logs files. * Observium is updated to the latest subscription edition. * I will also note that Traffic Accounting for billing does graph data but all data in “Bill Summary” is blank. That’s the only other oddity that I’ve noticed about my installation. * I’ve tried this with multiple Cisco devices (Catalyst, Nexus, ASR, etc.) with the same failed result. * Using different options for the rule such as Port ifIndex, ifName, even > rather than equals and still get the immediate failed result.
Thanks for any help you can offer.
-=JGR
From: Mike Stupalov mike@observium.org Sent: Thursday, January 19, 2023 12:32 AM To: Observium observium@lists.observium.org; Justin Radke via observium observium@lists.observium.org Cc: Justin Radke justin.radke@cbsoregon.com Subject: Re: [Observium] Error "Creation Failed" when Adding Port Groups
You don't often get email from mike@observium.orgmailto:mike@observium.org. Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification I can't reproduce this trouble.
Increase php memory available in WUI: https://docs.observium.org/faq/?h=memory#observium-returns-a-blank-web-page-...
Justin Radke via observium wrote on 19.01.2023 03:05:
Goal: Attempting to make “aggregate” graphs by calculating port bandwidth from multiple devices. For example, a graph that shows the total bandwidth of IP transit or IXP Peering ports that are not in LAG groups on Cisco gear.
Problem Statement: When creating a “Group” of ports I get an error in red that says “Creation Failed: Unknown action requested.”
Problem Description:
1. Click “Create New Group” in the GUI
2. Select Entity Type “Port”
3. Give group name of “TestGroup1”
4. Select “Device” from the dropdown, default to “in” and select a Cisco router in the dropdown that is already present and working in Observium
5. Click “Add rule” select “AND” choose “Port ifIndex” “equals” enter in the field the ifindex
a. I’ve also tried adding just one or even multiple rules with “OR’s” results in this message
b. I’ve also tried adding the port with “Port ID”, “Port ifDescr”, “Port ifName” and others all result in this failure message
c. I’m getting the port_id, ifindex, ifName, etc from the “Data” tab when viewing a Port of the Cisco in Observium
6. Click the bottom right, green “Add Group” and receive the error message: “Creation Failed: Unknown action requested.”
Can someone direct me to how to make such graphs? And/or explain what I might be doing wrong that I cannot create Port Groups?
Observium Subscription License Version 1.3:
Observium 22.12.12421 (21st December 2022)
OS Linux 4.18.0-408.el8.x86_64 [amd64] (CentOS 8)
Apache 2.4.37 (centos) OpenSSL/1.1.1k
PHP 7.2.24 (OPcache: ENABLED) (Memory: 128MB)
Python 3.6.8 (python3 not used as default python)
MariaDB 10.3.28-MariaDB (extension: mysqli 5.0.12-dev)
SNMP NET-SNMP 5.8
RRDtool 1.7.0
Fping 4.2 (IPv4 and IPv6)
-=JGR
_______________________________________________
observium mailing list -- observium@lists.observium.orgmailto:observium@lists.observium.org
To unsubscribe send an email to observium-leave@lists.observium.orgmailto:observium-leave@lists.observium.org
-- Mike Stupalov https://stupalov.com
-- Mike Stupalov, Discord channel: https://discord.gg/GjpNXKWm8W Observium Limited, https://observium.org
Hi Justin,
mainly increase php memory as showed by FAQ entry (apache restart required). 128M is very small limit.
After that you can check errors in apache error log.
Justin Radke wrote on 19.01.2023 22:01:
Thanks for looking it over Mike to verify I was attempting it correctly.
Does anyone have any ideas on how I can troubleshoot this problem?
Also, can I send images with this email thread? Is it best for me to send links to images or create a video to describe the problem better?
Here is what I have tried to troubleshoot:
- I don’t see any relevant entries in the /opt/observium/logs files.
- Observium is updated to the latest subscription edition.
- I will also note that Traffic Accounting for billing does graph data but all data in “Bill Summary” is blank. That’s the only other oddity that I’ve noticed about my installation.
- I’ve tried this with multiple Cisco devices (Catalyst, Nexus, ASR, etc.) with the same failed result.
- Using different options for the rule such as Port ifIndex, ifName, even > rather than equals and still get the immediate failed result.
Thanks for any help you can offer.
-=JGR
*From:*Mike Stupalov mike@observium.org *Sent:* Thursday, January 19, 2023 12:32 AM *To:* Observium observium@lists.observium.org; Justin Radke via observium observium@lists.observium.org *Cc:* Justin Radke justin.radke@cbsoregon.com *Subject:* Re: [Observium] Error "Creation Failed" when Adding Port Groups
You don't often get email from mike@observium.org mailto:mike@observium.org. Learn why this is important https://aka.ms/LearnAboutSenderIdentification
I can't reproduce this trouble.
Increase php memory available in WUI: https://docs.observium.org/faq/?h=memory#observium-returns-a-blank-web-page-...
Justin Radke via observium wrote on 19.01.2023 03:05:
Goal: Attempting to make “aggregate” graphs by calculating port bandwidth from multiple devices. For example, a graph that shows the total bandwidth of IP transit or IXP Peering ports that are not in LAG groups on Cisco gear. Problem Statement: When creating a “Group” of ports I get an error in red that says “Creation Failed: Unknown action requested.” Problem Description: 1. Click “Create New Group” in the GUI 2. Select Entity Type “Port” 3. Give group name of “TestGroup1” 4. Select “Device” from the dropdown, default to “in” and select a Cisco router in the dropdown that is already present and working in Observium 5. Click “Add rule” select “AND” choose “Port ifIndex” “equals” enter in the field the ifindex a. I’ve also tried adding just one or even multiple rules with “OR’s” results in this message b. I’ve also tried adding the port with “Port ID”, “Port ifDescr”, “Port ifName” and others all result in this failure message c. I’m getting the port_id, ifindex, ifName, etc from the “Data” tab when viewing a Port of the Cisco in Observium 6. Click the bottom right, green “Add Group” and receive the error message: “Creation Failed: Unknown action requested.” Can someone direct me to how to make such graphs? And/or explain what I might be doing wrong that I cannot create Port Groups? Observium Subscription License Version 1.3: Observium 22.12.12421 (21st December 2022) OS Linux 4.18.0-408.el8.x86_64 [amd64] (CentOS 8) Apache 2.4.37 (centos) OpenSSL/1.1.1k PHP 7.2.24 (OPcache: ENABLED) (Memory: 128MB) Python 3.6.8 (python3 not used as default python) MariaDB 10.3.28-MariaDB (extension: mysqli 5.0.12-dev) SNMP NET-SNMP 5.8 RRDtool 1.7.0 Fping 4.2 (IPv4 and IPv6) -=JGR _______________________________________________ observium mailing list --observium@lists.observium.org <mailto:observium@lists.observium.org> To unsubscribe send an email toobservium-leave@lists.observium.org <mailto:observium-leave@lists.observium.org>
-- Mike Stupalov https://stupalov.com
-- Mike Stupalov, Discord channel: https://discord.gg/GjpNXKWm8W Observium Limited, https://observium.org
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
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] Robert@CustodianDC.com [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 disclaimerhttps://www.custodiandc.com/email-disclaimer
Hi!
Currently showing these:
# svn status M . ? config.php D C includes/definitions/os/tripplite.inc.php > local file unversioned, incoming file add upon update A + C includes/polling/os/cs121.inc.php > local file edit, incoming file delete or move upon update ? observium.log ? rrd Summary of conflicts: Tree conflicts: 2
The cs121 is something we changed ages ago, it’s probably no longer relevant. Tripplite I have no idea about to be honest, don’t recognise that one.
Out of interest, I’ve dropped it back to php 7.4.33 – with no other changes - and it’s perfectly happy both at CLI and in Apache.
Will sit on 7 for now then as it keeps it operational, but am happy to flip it 7<>8 in order to test anything suggested.
Cheers!
[Custodian Data Centres]https://www.custodiandc.com Robert Williams Technical Director [Email] Robert@CustodianDC.com [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 disclaimerhttps://www.custodiandc.com/email-disclaimer From: Adam Armstrong via observium observium@lists.observium.org Sent: 27 January 2023 12:01 To: Observium observium@lists.observium.org Cc: Adam Armstrong adama@observium.org Subject: [Observium] Re: PHP Fatal after upgrade to 22.04 (php 8.1)
How odd. I’ve not seen this before, you’d expect other PHP8 installs to hit it!
Do you have any local modifications?
(svn status)
Adam.
Sent from my iPhone
On 27 Jan 2023, at 11:36, Robert Williams via observium <observium@lists.observium.orgmailto:observium@lists.observium.org> wrote: 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
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]
Robert@CustodianDC.commailto:Robert@CustodianDC.com
[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 disclaimerhttps://www.custodiandc.com/email-disclaimer _______________________________________________ observium mailing list -- observium@lists.observium.orgmailto:observium@lists.observium.org To unsubscribe send an email to observium-leave@lists.observium.orgmailto:observium-leave@lists.observium.org
this is line 105 in that file:
It's not at all obvious what it's complaining about. Just a few lines before we do an almost identical thing:
and countless times before that!
My dev install is also the same PHP 8.1 package :
root@dev:/opt/observium# php --version PHP 8.1.2-1ubuntu2.10 (cli) (built: Jan 16 2023 15:19:49) (NTS)
Sticking to PHP7.4 is fine. I can't imagine an in-place update caused PHP to behave differently, so I'm not sure where to start diagnosing this behaviour.
adam.
Robert Williams via observium wrote on 27/01/2023 12:24:
Hi!
Currently showing these:
# svn status
M .
? config.php
D C includes/definitions/os/tripplite.inc.php
> local file unversioned, incoming file add upon update
A + C includes/polling/os/cs121.inc.php
> local file edit, incoming file delete or move upon update
? observium.log
? rrd
Summary of conflicts:
Tree conflicts: 2
The cs121 is something we changed ages ago, it’s probably no longer relevant. Tripplite I have no idea about to be honest, don’t recognise that one.
Out of interest, I’ve dropped it back to php 7.4.33 – with no other changes - and it’s perfectly happy both at CLI and in Apache.
Will sit on 7 for now then as it keeps it operational, but am happy to flip it 7<>8 in order to test anything suggested.
Cheers!
Custodian Data Centres https://www.custodiandc.com Robert Williams Technical Director Email Robert@CustodianDC.com 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
*From:*Adam Armstrong via observium observium@lists.observium.org *Sent:* 27 January 2023 12:01 *To:* Observium observium@lists.observium.org *Cc:* Adam Armstrong adama@observium.org *Subject:* [Observium] Re: PHP Fatal after upgrade to 22.04 (php 8.1)
How odd. I’ve not seen this before, you’d expect other PHP8 installs to hit it!
Do you have any local modifications?
(svn status)
Adam.
Sent from my iPhone
On 27 Jan 2023, at 11:36, Robert Williams via observium <observium@lists.observium.org <mailto:observium@lists.observium.org>> wrote: 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 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 Robert@CustodianDC.com <mailto:Robert@CustodianDC.com> 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 -- observium@lists.observium.org <mailto:observium@lists.observium.org> To unsubscribe send an email to observium-leave@lists.observium.org <mailto:observium-leave@lists.observium.org>
observium mailing list -- observium@lists.observium.org To unsubscribe send an email to observium-leave@lists.observium.org
How odd…
I poked it a bit, the behaviour is interesting (added line numbers):
1 $mib = 'FOUNDRY-SN-SWITCH-GROUP-MIB'; 2 $config['mibs'][$mib]['enable'] = 1; 3 $config['mibs'][$mib]['identity_num'] = '.1.3.6.1.4.1.1991.1.1.3'; 4 $config['mibs'][$mib]['mib_dir'] = 'brocade'; 5 $config['mibs'][$mib]['descr'] = '';
Found that commenting out (2) just moves the error to (3), and so on.
But, if you comment out (1) instead, thus leaving $mib defined as the previous definition, all the lines 2,3,4,5 are all now suddenly valid.
So the issue occurs only once you assign $mib as FOUNDRY-SN-SWITCH-GROUP-MIB in particular. It is ok if you assign it to another MIB name instead.
Clearing up that section with comments, moved the issue to another file, but with identical symptoms and behaviour:
PHP Fatal error: Uncaught Error: Cannot use a scalar value as an array in /opt/observium/includes/definitions/mibs/force10.inc.php:15
$mib = 'FORCE10-BGP4-V2-MIB'; $config['mibs'][$mib]['enable'] = 1; $config['mibs'][$mib]['identity_num'] = '.1.3.6.1.4.1.6027.20.1'; $config['mibs'][$mib]['mib_dir'] = 'force10'; $config['mibs'][$mib]['descr'] = '';
And similar behaviour occurs there….
So whatever it dislikes, it only dislikes it when certain MIBs are being referenced?
I can’t remember, but are these MIB files (or something MIB definition related) stored outside of SVN? Is it possible those are stale in our deployment?
Cheers!
[Custodian Data Centres]https://www.custodiandc.com Robert Williams Technical Director [Email] Robert@CustodianDC.com [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 disclaimerhttps://www.custodiandc.com/email-disclaimer From: Adam Armstrong adama@observium.org Sent: 27 January 2023 12:44 To: Observium observium@lists.observium.org; Robert Williams via observium observium@lists.observium.org Cc: Robert Williams Robert@CustodianDC.com Subject: Re: [Observium] Re: PHP Fatal after upgrade to 22.04 (php 8.1)
this is line 105 in that file:
[cid:image001.png@01D93254.C7480D90]
It's not at all obvious what it's complaining about. Just a few lines before we do an almost identical thing:
[cid:image002.png@01D93254.C7480D90]
and countless times before that!
My dev install is also the same PHP 8.1 package :
root@dev:/opt/observium# php --version PHP 8.1.2-1ubuntu2.10 (cli) (built: Jan 16 2023 15:19:49) (NTS)
Sticking to PHP7.4 is fine. I can't imagine an in-place update caused PHP to behave differently, so I'm not sure where to start diagnosing this behaviour.
adam.
Robert Williams via observium wrote on 27/01/2023 12:24:
Hi!
Currently showing these:
# svn status M . ? config.php D C includes/definitions/os/tripplite.inc.php > local file unversioned, incoming file add upon update A + C includes/polling/os/cs121.inc.php > local file edit, incoming file delete or move upon update ? observium.log ? rrd Summary of conflicts: Tree conflicts: 2
The cs121 is something we changed ages ago, it’s probably no longer relevant. Tripplite I have no idea about to be honest, don’t recognise that one.
Out of interest, I’ve dropped it back to php 7.4.33 – with no other changes - and it’s perfectly happy both at CLI and in Apache.
Will sit on 7 for now then as it keeps it operational, but am happy to flip it 7<>8 in order to test anything suggested.
Cheers!
[Custodian Data Centres]https://www.custodiandc.com/
Robert Williams
Technical Director
[Email]
Robert@CustodianDC.commailto:Robert@CustodianDC.com
[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 disclaimerhttps://www.custodiandc.com/email-disclaimer From: Adam Armstrong via observium observium@lists.observium.orgmailto:observium@lists.observium.org Sent: 27 January 2023 12:01 To: Observium observium@lists.observium.orgmailto:observium@lists.observium.org Cc: Adam Armstrong adama@observium.orgmailto:adama@observium.org Subject: [Observium] Re: PHP Fatal after upgrade to 22.04 (php 8.1)
How odd. I’ve not seen this before, you’d expect other PHP8 installs to hit it!
Do you have any local modifications?
(svn status)
Adam.
Sent from my iPhone
On 27 Jan 2023, at 11:36, Robert Williams via observium <observium@lists.observium.orgmailto:observium@lists.observium.org> wrote: 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
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]
Robert@CustodianDC.commailto:Robert@CustodianDC.com
[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 disclaimerhttps://www.custodiandc.com/email-disclaimer _______________________________________________ observium mailing list -- observium@lists.observium.orgmailto:observium@lists.observium.org To unsubscribe send an email to observium-leave@lists.observium.orgmailto:observium-leave@lists.observium.org
_______________________________________________
observium mailing list -- observium@lists.observium.orgmailto:observium@lists.observium.org
To unsubscribe send an email to observium-leave@lists.observium.orgmailto:observium-leave@lists.observium.org
-- Sent from Postboxhttps://www.postbox-inc.com/?utm_source=email&utm_medium=siglink&utm_campaign=reach
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 Robert@CustodianDC.com 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 -- observium@lists.observium.org To unsubscribe send an email to observium-leave@lists.observium.org
This message should only appear if you make a request with an action variable that doesn't have a corresponding action. It's the "failthrough" condition when actions.php is trying to figure out what code to send the request to.
In this instance the action should be group_add, and it should get passed to html/ajax/actions/group_add.inc.php
Do you have that file?
adam.
Justin Radke via observium wrote on 19/01/2023 00:05:
Goal: Attempting to make “aggregate” graphs by calculating port bandwidth from multiple devices. For example, a graph that shows the total bandwidth of IP transit or IXP Peering ports that are not in LAG groups on Cisco gear.
Problem Statement: When creating a “Group” of ports I get an error in red that says “Creation Failed: Unknown action requested.”
Problem Description:
- Click “Create New Group” in the GUI
- Select Entity Type “Port”
- Give group name of “TestGroup1”
- Select “Device” from the dropdown, default to “in” and select a Cisco router in the dropdown that is already present and working in Observium
- Click “Add rule” select “AND” choose “Port ifIndex” “equals” enter in the field the ifindex
a. I’ve also tried adding just one or even multiple rules with “OR’s” results in this message b. I’ve also tried adding the port with “Port ID”, “Port ifDescr”, “Port ifName” and others all result in this failure message c. I’m getting the port_id, ifindex, ifName, etc from the “Data” tab when viewing a Port of the Cisco in Observium 6. Click the bottom right, green “Add Group” and receive the error message: “Creation Failed: Unknown action requested.”
Can someone direct me to how to make such graphs? And/or explain what I might be doing wrong that I cannot create Port Groups?
Observium Subscription License Version 1.3: Observium 22.12.12421 (21st December 2022) OS Linux 4.18.0-408.el8.x86_64 [amd64] (CentOS 8) Apache 2.4.37 (centos) OpenSSL/1.1.1k PHP 7.2.24 (OPcache: ENABLED) (Memory: 128MB) Python 3.6.8 (python3 not used as default python) MariaDB 10.3.28-MariaDB (extension: mysqli 5.0.12-dev) SNMP NET-SNMP 5.8 RRDtool 1.7.0 Fping 4.2 (IPv4 and IPv6)
-=JGR _______________________________________________ observium mailing list -- observium@lists.observium.org To unsubscribe send an email to observium-leave@lists.observium.org
participants (5)
-
Adam Armstrong
-
Justin Radke
-
Justin Radke
-
Mike Stupalov
-
Robert Williams