Ad Widget

Collapse

How to monitor and get alert if mount point is not available anymore in Linux

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kazarkin
    Junior Member
    • Feb 2026
    • 1

    #1

    How to monitor and get alert if mount point is not available anymore in Linux

    Hello All,

    Can't find an answer there.
    So the question is how to monitor and get alert if mount point written in /etc/fstab is not available anymore in Linux.
    For example there is VM, some disks are mounted and written in /etc/fstab, then somebody deleted VM disk in VMware. Of course it will cause losing moint point on Linux server.
    So I would like to have monitoring of losing mount points in Linux.
    Is there any way to do it?
    If there is already an answer please provide me with the link.
  • kyus
    Senior Member
    • Feb 2024
    • 189

    #2
    Assuming you're using Zabbix 7.x and using the template "Linux by Zabbix agent":
    I can't think of any specific item for this, but you can create a trigger prototype in your "Mounted filesystem discovery" discovery rule.

    It can be: FS [{#FSNAME}]: Filesystem is not mounted
    Using an expression: nodata(/Linux by Zabbix agent/vfs.fs.dependent[{#FSNAME},data],30m)=1

    Note that this will trigger in case the item doesn't get any data, so if your host is unavailable it'll trigger, thus I suggest adding a dependency on this trigger (to some availability trigger).

    Comment

    Working...