Huawei Switch. too many interfaces XGigabitEthernet0/0/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
Page 1 / 1
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.
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
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.
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$$
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,
today cannot resolve this issue. I will have to open a ticket. thnks for your support.
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.