Ad Widget

Collapse

Disk discovery by macOS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • corti
    Junior Member
    • Feb 2022
    • 1

    #1

    Disk discovery by macOS

    I am monitoring a macOS system.

    The mounted filesystem discovery detects the following disks

    Code:
    /System/Volumes/Data
    /System/Volumes/Update
    /System/Volumes/Preboot
    /System/Volumes/VM
    /
    Zabbix is giving the same data for all five of them (same value, same change, ...)

    But the volumes do not have the same capacity.

    Code:
    [FONT=Courier New]Filesystem    512-blocks      Used Available Capacity   iused ifree %iused Mounted on
    /dev/disk1s1   976490576 844178136  95565240      90% 4124373 477826200 1% /System/Volumes/Data
    /dev/disk1s2   976490576   1412816  95565240       2%    4172 477826200 0% /System/Volumes/Preboot
    /dev/disk1s4   976490576   2097400  95565240       3%       1 477826200 0% /System/Volumes/VM
    /dev/disk1s5s1 976490576  30770344  95565240      25%  577694 477826200 0% /
    /dev/disk1s6   976490576     11368  95565240       1%      17 477826200 0% /System/Volumes/Update[/FONT]
    The information returned by df is clearly wrong (sabe size, same value for available but different values for used)

    Or how can I ignore all the '/System/' volumes?

    I tried to add a Filter (B) in the "Mounted filesystem discovery"
    • Type of calculation "And"
    • A (default) {#FSTYPE} matches "@File systems for discovery"
    • B (my addition) {#FSNAME} does not match "^/System.*"
    With no visibile changes.

    Does the rule make sense?
    How can I remove a discovered file system?
  • Glencoe
    Zabbix developer
    • Oct 2019
    • 152

    #2
    The information returned by df is clearly wrong (sabe size, same value for available but different values for used)
    It's not wrong per se, but confusing because apfs can map the same physical space to different volumes.

    With no visibile changes.

    Does the rule make sense?
    Yes, it perfectly does. For the sake of completeness, this is what works well for me (your filter is overly broad, IMHO):

    Click image for larger version

Name:	Screenshot 2022-03-28 at 18.42.22.png
Views:	231
Size:	103.2 KB
ID:	442180

    You may not notice the changes right away because these discovery rules run hourly. Please also keep in mind that even though these items will be marked as lost these will not disappear until "Keep lost resources" parameter is met. Which is 30 days. You may want to set it to shorter value to your own taste.

    Comment

    Working...