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

Add mount options in vfs.fs.discovery

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • None
    • Agent (G)
    • None
    • Linux

      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";

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

              Created:
              Updated:
              Resolved: