[ZBXNEXT-2093] add discovery item for disk devices Created: 2013 Dec 28  Updated: 2017 Apr 26  Resolved: 2016 Aug 16

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

Type: New Feature Request Priority: Minor
Reporter: Aleksandrs Saveljevs Assignee: Unassigned
Resolution: Duplicate Votes: 4
Labels: discs, lld, newitemkey
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File vfs-dev-discovery.pl     File vfs-dev-discovery.pl    
Issue Links:
Duplicate
duplicates ZBXNEXT-1302 Make vfs.dev.read/vfs.dev.write disco... Closed

 Description   

Currently, we have item vfs.fs.discovery[], whose results we can use in items like vfs.fs.size[].

It would be nice to have an item like vfs.dev.discovery[], so that we can automatically create items like vfs.dev.read[] and vfs.dev.write[].



 Comments   
Comment by Aleksandrs Saveljevs [ 2013 Dec 28 ]

Attached is a try at a simple UserParameter, which uses the output of lsblk.

Comment by richlv [ 2013 Dec 29 ]

note that example userparam file contains different attempts for linux & solaris (linux one grabs everything from /proc/partitions, thus items would be created both on disk and also on partition level)

Comment by Aleksandrs Saveljevs [ 2016 Aug 16 ]

This looks like a duplicate of ZBXNEXT-1302, closing as such.

Comment by dimir [ 2017 Apr 26 ]

Re-attaching the vfs-dev-discovery.pl patch with additional option -r to lsblk to output raw data.

Comment by Sébastien Maccagnoni [ 2017 Apr 26 ]

dimir: this issue is closed, please see ZBXNEXT-1302 (where I have also posted a userparameter).

Comment by dimir [ 2017 Apr 26 ]

I know, this was just for the case if somebody is using this script.

Generated at Tue Apr 01 18:15:04 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.