[ZBX-20879] Zabbix Agent is not able to detect all file systems Created: 2022 Apr 11  Updated: 2022 Apr 14

Status: Need info
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 6.0.3
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Michele Manzani Assignee: Aleksandrs Petrovs-Gavrilovs
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Docker or Debian Bulleyes 64bit


Attachments: PNG File image-2022-04-11-15-15-29-127.png     File output.rtf    

 Description   

Steps to reproduce:

This is the output of the lsblk command

 

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT

sda           8:0    0 931.5G  0 disk 

└─sda1        8:1    0 931.5G  0 part /user/ext_hd

mmcblk0     179:0    0 119.4G  0 disk 

├─mmcblk0p1 179:1    0   256M  0 part /boot

└─mmcblk0p2 179:2    0 119.1G  0 part /

 

Result:

Expected:

Device is detected

File system is not detected in the disk sda1



 Comments   
Comment by Aleksandrs Petrovs-Gavrilovs [ 2022 Apr 12 ]

Hello,

How were they mounted? Could you attach an output from:

cat /proc/mounts
lsblk -o KNAME,TYPE,SIZE,MODEL

Best Regards,
Aleksandrs

Comment by Michele Manzani [ 2022 Apr 12 ]

Sure. 

Attached here  output.rtf

Best Regards

Michele

ps: confider that i have the same problem on the zabbix server where all the process are running on containers and the only FS detected is where the docker images are stored. ( external hdd ). In this case the SD card is missing. 

Comment by Aleksandrs Petrovs-Gavrilovs [ 2022 Apr 13 ]

Thank you, and to double check, could you provide an output from the zabbix_get command for the key that you use?

Best Regards,
Aleksandrs

Comment by Michele Manzani [ 2022 Apr 13 ]

like this one? 

docker exec -it zabbix-server-pgsql zabbix_get -s 192.168.10.16 -p 10050 -k vfs.fs.size[/,total]

125835149312

 

Comment by Alex Kalimulin [ 2022 Apr 13 ]

This doesn't look like a bug. Template "Linux filesystems by Zabbix agent" only discovers file systems defined in macro {$VFS.FS.FSTYPE.MATCHES}.

The list is limited to ^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$. Where as filesystems in the question are exfat (for /dev/sda1) and vfat (for /dev/mmcblk0p1).

Comment by Michele Manzani [ 2022 Apr 14 ]

There is something that is not clear for me: 

for example: 

on this server (Zabbix server ) with this partition the FS detected is only ( Green ) /dev/sda2and not the red one.  

Device         Boot    Start      End  Sectors  Size Id Type

/dev/mmcblk0p1          8192   532479   524288  256M  c W95 FAT32 (LBA)

/dev/mmcblk0p2        532480 31116287 30583808 14.6G 83 Linux

/dev/mmcblk0p3      31117312 70179811 39062500 18.6G 83 Linux

 

Disk /dev/sda: 931.51 GiB, 1000204883968 bytes, 1953525164 sectors

Disk model: External USB 3.0

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disklabel type: gpt

Disk identifier: 7EE5B72A-A590-4EB1-83EF-839C4C328D18

Device      Start        End    Sectors   Size Type

/dev/sda1      40     409639     409600   200M EFI System

/dev/sda2  409640 1953262983 1952853344 931.2G Apple HFS/HFS+

 

and on this server is totally the opposite, consider that mmcblk0p2 they are formatted with the same FS. 

 

Disk /dev/mmcblk0: 119.38 GiB, 128177930240 bytes, 250347520 sectors

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disklabel type: dos

Disk identifier: 0xc2151d24

 

Device         Boot  Start       End   Sectors   Size Id Type

/dev/mmcblk0p1        8192    532479    524288   256M  c W95 FAT32 (LBA)

/dev/mmcblk0p2      532480 250347519 249815040 119.1G 83 Linux

Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors

Disk model: EXTERNAL_USB    

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disklabel type: dos

Disk identifier: 0x6d6114a1

 

Device     Boot Start        End    Sectors   Size Id Type

/dev/sda1  *     2048 1953521663 1953519616 931.5G  7 HPFS/NTFS/exFAT

If you want I can try to format /dev/sda1 with NTFS and try again. ( but takes time ... so you need to be patient )  

Am I wrong?

Comment by Alex Kalimulin [ 2022 Apr 14 ]

miki3421, it looks like you are confusing a partition type with a file system type. Zabbix relies on file system types and only discovers file systems of types listed in my previous comment. Feel free to modify this list in your template if you need to discover more types. You can check file system types for mounted file systems with the mount command.

Comment by Michele Manzani [ 2022 Apr 14 ]

ah ok thanks!!! 

modified in this way 

^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs|ext4|vfat|exfat)$

relaunched the discovery. 

nothing changed

Generated at Fri May 09 07:45:55 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.