Solved

Huawei Switch. too many interfaces XGigabitEthernet0/0/1

  • 27 July 2022
  • 7 replies
  • 320 views

Badge +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

 

 

icon

Best answer by christophe.niel-ACT 1 August 2022, 10:55

View original

7 replies

Userlevel 6
Badge +19

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. 


 

Userlevel 5
Badge +14

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

Badge +1

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.

Userlevel 5
Badge +14

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$$

 

 

Userlevel 6
Badge +19

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,

Badge +1

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

Badge +1

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!

Reply