Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Huawei monitoring interface xgigabitethernet0/0/1 display all interface that equal pattern #11683

Open
2 tasks
Manu-ctrl opened this issue Sep 4, 2022 · 2 comments
Labels
status/new New tickets

Comments

@Manu-ctrl
Copy link

Manu-ctrl commented Sep 4, 2022

BUG REPORT INFORMATION

Prerequisites

The opened issue, must be code related. GitHub is not meant for support. Feel free to check the CONTRIBUTING section for more details.

Versions

For the RPM based systems

-- Copy/Paste the result of the following command --

$ rpm -qa | grep centreon | egrep -v "(plugin|pack)" | sort

centreon-22.04.3-4.el8.noarch
centreon-auto-discovery-server-22.04.1-2.el8.noarch
centreon-broker-22.04.1-4.el8.x86_64
centreon-broker-cbd-22.04.1-4.el8.x86_64
centreon-broker-cbmod-22.04.1-4.el8.x86_64
centreon-broker-core-22.04.1-4.el8.x86_64
centreon-broker-storage-22.04.1-4.el8.x86_64
centreon-central-22.04.3-4.el8.noarch
centreon-clib-22.04.1-4.el8.x86_64
centreon-common-22.04.3-4.el8.noarch
centreon-connector-22.04.1-4.el8.x86_64
centreon-connector-perl-22.04.1-4.el8.x86_64
centreon-connector-ssh-22.04.1-4.el8.x86_64
centreon-database-22.04.3-4.el8.noarch
centreon-engine-22.04.1-4.el8.x86_64
centreon-engine-daemon-22.04.1-4.el8.x86_64
centreon-engine-extcommands-22.04.1-4.el8.x86_64
centreon-gorgone-22.04.0-9.el8.noarch
centreon-gorgone-centreon-config-22.04.0-9.el8.noarch
centreon-license-manager-22.04.0-1.el8.noarch
centreon-license-manager-common-22.04.0-1.el8.noarch
centreon-perl-libs-22.04.3-4.el8.noarch
centreon-poller-22.04.3-4.el8.noarch
centreon-pp-manager-22.04.0-2.el8.noarch
centreon-release-22.04-3.el8.noarch
centreon-trap-22.04.3-4.el8.noarch
centreon-web-22.04.3-4.el8.noarch
centreon-widget-engine-status-22.04.0-5.el8.noarch
centreon-widget-global-health-22.04.0-5.el8.noarch
centreon-widget-graph-monitoring-22.04.0-5.el8.noarch
centreon-widget-grid-map-22.04.0-5.el8.noarch
centreon-widget-hostgroup-monitoring-22.04.0-5.el8.noarch
centreon-widget-host-monitoring-22.04.0-5.el8.noarch
centreon-widget-httploader-22.04.0-5.el8.noarch
centreon-widget-live-top10-cpu-usage-22.04.0-5.el8.noarch
centreon-widget-live-top10-memory-usage-22.04.0-5.el8.noarch
centreon-widget-servicegroup-monitoring-22.04.0-5.el8.noarch
centreon-widget-service-monitoring-22.04.0-5.el8.noarch
centreon-widget-single-metric-22.04.0-5.el8.noarch
centreon-widget-tactical-overview-22.04.0-5.el8.noarch

For the deb based systems

-- Copy/Paste the result of the following command --

$ dpkg -l | grep centreon

Operating System

CentOS Linux centreon 4.18.0-372.19.1.el8_6.x86_64 #1 SMP Mon Jul 18 11:14:02 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux

Browser used

  • [X ] Google Chrome
  • [X ] Firefox
  • Internet Explorer IE11
  • Safari

Version: -- lastest

Additional environment details (AWS, VirtualBox, physical, etc.):

Physical

Description

-- Describe the encountered issue --
https://thewatch.centreon.com/data-collection-6/huawei-switch-too-many-interfaces-xgigabitethernet0-0-1-863
When autoscan services for a huawei switch hosts, centreon display all interface with the pattern xgigabitehernet0/0/1X" that include xgi0/0/10, 0/0/11, 0/0/12, etc, at the same graph. then cannot view graph only xgigabitethernet 0/0/1.

Steps to Reproduce

Please describe precisely the steps to reproduce the encountered issue.

  1. I logged in Centreon
  2. I access to menu monitoring -> performance -> graph
  3. I select interface xgigabitethernet0/0/1, then the graph show all interface "XGE0/0/1" pattern, include 10, 11, 12 in the same graph

Describe the received result

all interface with the pattern "XGigabitEthernet0/0/1"

Describe the expected result

Show graph only XGigabitEthernet0/0/1

Logs

PHP error logs

For version using PHP 7.2 or 7.3 on centOs 8 or PHP 8

tail -f /var/log/php-fpm/centreon-error.log

[04-Sep-2022 14:29:07 America/Santiago] PHP Warning: Undefined array key "required" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/56cd0ea84e5bd6807a7221518c39080602898407_0.file.form.ihtml.php on line 160
[04-Sep-2022 14:29:07 America/Santiago] PHP Warning: Trying to access array offset on value of type null in /usr/share/centreon/GPL_LIB/SmartyCache/compile/56cd0ea84e5bd6807a7221518c39080602898407_0.file.form.ihtml.php on line 160
[04-Sep-2022 14:29:07 America/Santiago] PHP Warning: Undefined array key "required" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/56cd0ea84e5bd6807a7221518c39080602898407_0.file.form.ihtml.php on line 231
[04-Sep-2022 14:29:07 America/Santiago] PHP Warning: Trying to access array offset on value of type null in /usr/share/centreon/GPL_LIB/SmartyCache/compile/56cd0ea84e5bd6807a7221518c39080602898407_0.file.form.ihtml.php on line 231
[04-Sep-2022 14:29:07 America/Santiago] PHP Warning: Undefined array key "required" in /usr/share/centreon/GPL_LIB/SmartyCache/compile/56cd0ea84e5bd6807a7221518c39080602898407_0.file.form.ihtml.php on line 285
[04-Sep-2022 14:29:07 America/Santiago] PHP Warning: Trying to access array offset on value of type null in /usr/share/centreon/GPL_LIB/SmartyCache/compile/56cd0ea84e5bd6807a7221518c39080602898407_0.file.form.ihtml.php on line 285
[04-Sep-2022 14:33:20 America/Santiago] PHP Fatal error: Uncaught Exception: Username and token query strings must be set. in /usr/share/centreon/www/include/views/graphs/generateGraphs/generateImage.php:99
Stack trace:
#0 {main}

centreon-engine logs (if needed)

tail -f /var/log/centreon-engine/centengine.log

centreon-broker logs (if needed)

tail -f /var/log/centreon-broker/central-broker-master.log

centreon gorgone logs for Centreon >= 20.4 (if needed)

tail -f /var/log/centreon-gorgone/gorgoned.log

centcore logs for Centreon <= 19.10.x (if needed)

tail -f /var/log/centreon/centcore.log

Additional relevant information (e.g. frequency, ...)

@Manu-ctrl Manu-ctrl added the status/new New tickets label Sep 4, 2022
@kozfelipe
Copy link
Contributor

hi there
What huawei template are you using?
How is your service resulting command?
Have you tried regex like:
--interface ^XGigabitEthernet0/0/1$

@Manu-ctrl
Copy link
Author

Hi!,

hi there What huawei template are you using? How is your service resulting command? Have you tried regex like: --interface ^XGigabitEthernet0/0/1$

1.- Net-Huawei-SNMP-Custom
2.- The command is the default command of the huawei plugin.
3.- GREAT! this is the sintax for query the interface "--interface ^XGigabitEthernet0/0/1$". before I had only dealt with ^ and when exporting to the poller it gave me an error

imagen_2022-09-09_232040850

Captura

Thanks a lot!
Best regards.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/new New tickets
Projects
None yet
Development

No branches or pull requests

2 participants