Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-2393

Add mount options in vfs.fs.discovery

    XMLWordPrintable

    Details

    • Type: Change Request
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Agent (G)
    • Labels:
      None
    • Environment:
      Linux

      Description

      Hello,

      Could you add mount option in vfs.fs.discovery ? It's very easy to add it and with this, you can monitor read-only disk and other errors.
      I adapted the script in zabbix documentation to support it :

      #!/usr/bin/perl
      $first = 1;

      print "{\n";
      print "\t\"data\":[\n\n";

      for (`cat /proc/mounts`)
      {
      ($fsname,$fstype,$fsmode) = m/\S+ (\S+) (\S+) (\S+)/;
      $fsname =~ s!/!
      /!g;

      print "\t,\n" if not $first;
      $first = 0;

      print "\t{\n";
      print "\t\t\"

      {#FSNAME}

      \":\"$fsname\",\n";
      print "\t\t\"

      {#FSTYPE}

      \":\"$fstype\"\n";
      print "\t\t\"

      {#FSMODE}

      \":\"$fsmode\"\n";
      print "\t}\n";
      }

      print "\n\t]\n";
      print "}\n";

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              mma mma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: