radiorabe/rabe-zabbix

Value "cat: /sys/block/md0/md/degraded: No such file or directory

denisgolius opened this issue · 2 comments

Value of type "string" is not suitable for value type "Numeric (unsigned)". Value "cat: /sys/block/md0/md/degraded: No such file or directory
Screenshot_20201008_012024

File is not exist because it's not used for raid0.

Hi @denisgolius,

while it's not the prettiest solution, you could simply disable the items after they have been discovered. To actually fix the issue, separate discovery rules and item prototypes would probably be required for RAID level 0 devices.

Would you mind providing a directory listing for a RAID level 0 MD device (/sys/block/md/<MD>)?

Here is for a RAID level 0 MD device in /sys/block/md0/md

array_size
array_state
bitmap
chunk_size
component_size
consistency_policy
dev-sdc
dev-sdd
dev-sdh
dev-sdi
fail_last_dev
layout
level
max_read_errors
metadata_version
new_dev
raid_disks
rd0 -> dev-sdc
rd1 -> dev-sdd
rd2 -> dev-sdi
rd3 -> dev-sdh
reshape_direction
reshape_position
resync_start
safe_mode_delay
serialize_policy
uuid