[ZBXNEXT-2361] The "all" identifier for vfs.dev....[all,...], net.if....[...,bytes] would be more meaningfull (on Linux) if some restrictions are applied Created: 2014 Jun 30  Updated: 2014 Jul 01

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Agent (G)
Affects Version/s: 2.2.4
Fix Version/s: None

Type: New Feature Request Priority: Minor
Reporter: Rolf Fokkens Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: patch, regexps
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux OS


Attachments: Text File zabbix-2.2.4-devfilter.patch    

 Description   

"all" results in cumulative stats for all devices. Both for disk and network (on Linux) this results in multiple times counting the same device:

  • Network devices (e.g. eth0) may be part of other (stacked) devices like eth0.8 (for vlan's) or bridges.
  • Disk devices (e.g. sda) may be part of other (stacked) devices like sda1 (partition) LVM devices and RAID devices.
    So because many things may be counted multiple times, the resulting cumulative count becomes somewhat meaningles.

The attached patch illustrates how this can be solved by allowing users to specify a regexp in the agent config to make the agent filter only useful devices.



 Comments   
Comment by Rolf Fokkens [ 2014 Jun 30 ]

We're using this patch for our own zabbix systems, monitoring Linux systems with the following filtering:

NicFilter=^(eth[0-9]+|enp[0-9]+s[0-9]+|em[0-9]+)$
DiskFilter=^(hd|sd|vd).$
Generated at Thu Apr 25 04:56:56 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.