-
Change Request
-
Resolution: Duplicate
-
Minor
-
None
-
None
-
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\",\n";
print "\t\t\"
\":\"$fstype\"\n";
print "\t\t\"
\":\"$fsmode\"\n";
print "\t}\n";
}
print "\n\t]\n";
print "}\n";
- duplicates
-
ZBXNEXT-1616 Agent supported vfs mount status on discovered mounts.
- Closed