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

Add mount options in vfs.fs.discovery

    XMLWordPrintable

Details

    • Change Request
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • Agent (G)
    • None
    • 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

              Unassigned Unassigned
              mma mma
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: