[ZBX-16896] Linux Templates Speed Change Trigger Created: 2019 Nov 11 Updated: 2024 Apr 10 Resolved: 2022 Feb 14 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Templates (T) |
Affects Version/s: | 4.4.1, 4.4.4 |
Fix Version/s: | 5.0.21rc1, 5.4.11rc1, 6.0.0rc2, 6.0 (plan) |
Type: | Problem report | Priority: | Trivial |
Reporter: | Adam Stirk | Assignee: | Vyacheslav Khaliev |
Resolution: | Fixed | Votes: | 1 |
Labels: | Template, network | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Zabbix Server v4.4.1 |
Issue Links: |
|
||||||||
Team: | |||||||||
Sprint: | Sprint 85 (Feb 2022) | ||||||||
Story Points: | 0.125 |
Description |
In the templates:
The trigger "Interface {#IFNAME}: Ethernet has changed to lower speed than it was before" isn't working as it's not using the interface speed. There is also no "Interface {#IFNAME}: Speed" item prototype defined which can be set to "vfs.file.contents"/sys/class/net/{#IFNAME}/speed"" which should contain the current interface speed. |
Comments |
Comment by Edgar Akhmetshin [ 2019 Nov 12 ] |
Hello Adam, According to the GIT template provides item prototype with trigger: Which operating system is used on the monitored host (exact name and version)? Does the LLD rule has errors related to the discovery? Regards, |
Comment by Adam Stirk [ 2019 Nov 13 ] |
Hi, I'm using RHEL 7.7 using the "Template OS Linux by Zabbix agent active" template supplied with Zabbix v4.4.1. The issue is that speed changes are not reported, this is because the trigger "Interface {#IFNAME}: Ethernet has changed to lower speed than it was before" uses the item prototype "Interface {#IFNAME}: Interface type" which isn't the current interface speed. I've looked act the link to the GIT repository version of the template you supplied and is doesn't contain a prototype that uses "vfs.file.contents"/sys/class/net/{#IFNAME}/speed" and this is the file that contains the current interface speed.
Regards Adam |
Comment by sh0thub [ 2020 Jan 21 ] |
Hello, I found same problem on zabbix 4.4.4 template. Template: Template Module Windows network by Zabbix agent /active
Template is missing Item prototype for determine interface speed: Name: Interface {#IFNAME}: Speed Key: vfs.file.contents"/sys/class/net/{#IFNAME}/speed" Type of information: Numeric Units: bps Preprocessing: Custom multiplier 1000000
Afterthat, trigger prototype should be like this: Interface {#IFNAME}: Ethernet has changed to lower speed than it was before Problem expression: {Template Module Linux network interfaces by Zabbix agent active:vfs.file.contents["/sys/class/net/\{#IFNAME}/speed"].change()}<0 and {Template Module Linux network interfaces by Zabbix agent active:vfs.file.contents["/sys/class/net/ {#IFNAME}/speed"].last()}>0and ({Template Module Linux network interfaces by Zabbix agent active:vfs.file.contents["/sys/class/net/{#IFNAME} /type"].last()}=6 and ({Template Module Linux network interfaces by Zabbix agent active:vfs.file.contents["/sys/class/net/{#IFNAME} /operstate"].last()}<>2)
Recovery expression: ({Template Module Linux network interfaces by Zabbix agent active:vfs.file.contents["/sys/class/net/ {#IFNAME}/speed"].change()}>0 and {Template Module Linux network interfaces by Zabbix agent active:vfs.file.contents["/sys/class/net/{#IFNAME}/speed"].prev()}>0) or /operstate"].last()}=2)
Please fix this bug. |
Comment by Vyacheslav Khaliev [ 2022 Feb 04 ] |
Available in:
|