-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
T5702: SNMP add interface-mib max-interfaces-number and prefix #2434
Conversation
Why not make the CLI more generic by using:
? |
How to separate “interface interfaces-max” and “interface eth”? |
Sorry, typo - I have adjusted m initial comment |
Done!
|
interface-definitions/snmp.xml.in
Outdated
<properties> | ||
<help>Sets the interface name prefix to include in the IF-MIB data collection</help> | ||
<valueHelp> | ||
<format>txt</format> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we probably include proper <valueHelp>
nodes for the interface types?
Like eth,br,bond.wireguard,vxlan and so on? So the users know only the text part is required and nothing like an asterisk as glob pattern?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@c-po Done!
- Allow to configure only required interface prefixes set service snmp mib interface 'eth' set service snmp mib interface 'bond' include_ifmib_iface_prefix eth bond Sets the interface name prefixes to include in the IF-MIB data collection. For servers with a large number of interfaces (ppp, dummy, bridge, etc) the IF-MIB processing will take a large chunk of CPU for ioctl calls. A set of space separated interface name prefixes will reduce the CPU load for IF-MIB processing. For example, configuring "include_ifmib_iface_prefix eth dummy lo" will include only interfaces with these prefixes and ignore all others for IF-MIB processing. - Allow to configure maximum interface number set service snmp mib interface-max '100' ifmib_max_num_ifaces NUM Sets the maximum number of interfaces included in IF-MIB data collection. For servers with a large number of interfaces (ppp, dummy, bridge, etc) the IF-MIB processing will take a large chunk of CPU for ioctl calls (on Linux). Setting a reasonable maximum for the CPU used will reduce the CPU load for IF-MIB processing. For example, configuring "ifmib_max_num_ifaces 500" will include only the first 500 interfaces based on ifindex and ignore all others for IF-MIB processing.
@Mergifyio backport sagitta |
✅ Backports have been created
|
Change Summary
Without those options we have high CPU utilization with many dynamic interfaces (ipoe/l2tp/pppoe/etc)
Types of changes
Related Task(s)
Related PR(s)
Component(s) name
snmp
Proposed changes
How to test
VyOS configuration:
snmpd config:
Smoketest result
Checklist: