Ad Widget

Collapse

6.4 fstab (nfs) mounts.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tristis Oris
    Member
    • Sep 2015
    • 66

    #1

    6.4 fstab (nfs) mounts.

    After last changes to mountpoints, is it any way to get native auto discovery for fstab, nfs\cifs paths? Without agent or OS modifications and custom scripts.

    Code:
    Added monitoring of mount point options for Unix-like OSes
    Code:
    vfs.fs.get and vfs.fs.discovery, used for discovery of mounted filesystems, now additionally return filesystem mount options in the "options" and "{#FSOPTIONS}" property respectively. These options allow to detect filesystems that remounted as read-only (e.g. on VMs) or to filter bind mounts or .dmg volumes on macOS.
  • Tristis Oris
    Member
    • Sep 2015
    • 66

    #2
    yes, got it.
    not that at macro tabs.

    {$VFS.FS.FSTYPE.MATCHES} just need to add
    Code:
    |nfs|nfs3|nfs4|cifs|smb
    Last edited by Tristis Oris; 25-04-2023, 17:44.

    Comment

    • Tristis Oris
      Member
      • Sep 2015
      • 66

      #3
      Next step to check is folder mounted or not.

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        Originally posted by Tristis Oris
        Next step to check is folder mounted or not.
        If your discovery finds them, then they are mounted... both vfs.fs.get and vfs.fs.discovery return data about "mounted filesystems"...

        Comment

        • Tristis Oris
          Member
          • Sep 2015
          • 66

          #5
          not sure how to to make it.

          need something like
          Code:
          find(/hostname/vfs.fs.get[{#FSNAME}],1,"like","failed")=0
          but got
          Code:
          Incorrect item key "vfs.fs.get[{#FSNAME}]"
          or that work only for trigger prototypes?


          well, trigger doesn't matter right now. After any first umount, history for this item stop working.

          from latest data:
          Code:
          Preprocessing failed for: [{"fsname":"/sys","fstype":"sysfs","bytes":{"total":0,"free":0,"used":0,"pfree":0,"pused":0},"ino...
          1. Failed: cannot extract value from json by path "$.[?(@.fsname=='/mnt/kopia-backup/')].first()": no data matches the specified path



          so with prototype
          Code:
          find(/kopia/vfs.fs.dependent[{#FSNAME},data],1,"like","Failed")=1
          host trigger
          Code:
           Cannot evaluate function find(/kopia/vfs.fs.dependent[/mnt/kopia-backup/,data],1,"like","Failed"): item is not supported.​
          after umount.
          Last edited by Tristis Oris; 26-04-2023, 15:56.

          Comment

          Working...