Skip to main content
Solved

Huawei Switch. too many interfaces XGigabitEthernet0/0/1

  • July 27, 2022
  • 7 replies
  • 407 views

Manu
Forum|alt.badge.img+1

Hi everyone, how are you?

I have a server centreon, and i want graph only interface traffic xgigabitethernet0/0/1, but it the command, show all interfaces that match the pattern “XGigabitEthernet0/0/1X”. How do filter this? only appear with the huawei switch.

Thank you very much in advance, grettings to all

 

 

Best answer by christophe.niel-ACT

please open a case on the centreon support, they should modify this in the autodiscovery pack for everyone 

all autodiscover should add the “^---$” around the nick name to avoid your issue, here is the rule for the Macro in Huawei (in config/service/autodiscovery/rules)

 

you could change that yourself with ^$name$$

 

 

7 replies

sims24
Forum|alt.badge.img+19
  • Ranger ***
  • July 27, 2022

Hi, 


I would advise you to use the discovery rule to scan interfaces. 

 

Go to Configuration > Services > Scan, then type the name of your Host and choose the Net-Huawei-SNMP-Traffic-Name rule. Click on scan, and just tick the net interface you want and hit save. 

 

You will have the relevant service configured for you. 


 


Forum|alt.badge.img+17

Check your service configuration and the variable containing the interface name

 

If it doesn't start with ^ and end with $  it's an implicit wildcard (it's a regular expression, that's why you have 1, 11,...)

 

Add ^ and $ around your interface name, but you will need to purge the perfdata history to clear the full list on your graph

It will be easier to delete this service and recreate it when you are sure of the syntax


Manu
Forum|alt.badge.img+1
  • Author
  • Steward *
  • July 30, 2022

Thnks for your help.

 

Only check some interfaces in scan services, either another symbol in the name of interface.

 

 

 

thanks for your support.

 

best regards.


Forum|alt.badge.img+17

please open a case on the centreon support, they should modify this in the autodiscovery pack for everyone 

all autodiscover should add the “^---$” around the nick name to avoid your issue, here is the rule for the Macro in Huawei (in config/service/autodiscovery/rules)

 

you could change that yourself with ^$name$$

 

 


sims24
Forum|alt.badge.img+19
  • Ranger ***
  • August 1, 2022

Hi, 

 

Indeed, this is a problem on your side.

 

You can apply @christophe.niel-ACT proposal, it will be fixed in the next release. 


Kind regards,


Manu
Forum|alt.badge.img+1
  • Author
  • Steward *
  • September 4, 2022

today cannot resolve this issue. I will have to open a ticket. thnks for your support.


Manu
Forum|alt.badge.img+1
  • Author
  • Steward *
  • September 10, 2022

finally the solution was to change the service in the specific interface. I tried at the time with ^$name$$ but when exporting, it gave me an error.

Thank you very much to all!