I can see how to alter the filesystem discovery with the regular expression... how can I see what the actual string is that it's being compared to? I'm trying to filter out some specific things, not having a lot of luck. Thanks!
Ad Widget
Collapse
Filesystem Discovery String
Collapse
X
-
Hi
Ok, yes, you can create a standard Agent Item with key: vfs.fs.discovery and Type of information set to "Text".
Then you will see what strings returned.
Bests,
Grzegorz
--
Wdrożenia, usługi IT - Warszawa
-
Thanks for the tip... that worked, but it's still not clear what the regular expression is actually comparing to:
{ "data":[ { "{#FSNAME}":"A:", "{#FSTYPE}":"UNKNOWN"}, { "{#FSNAME}":"C:", "{#FSTYPE}":"NTFS"}, { "{#FSNAME}":"E:", "{#FSTYPE}":"NTFS"}, { "{#FSNAME}":"F:", "{#FSTYPE}":"NTFS"}, { "{#FSNAME}":"M:", "{#FSTYPE}":"NTFS"}, { "{#FSNAME}":"Z:", "{#FSTYPE}":"UNKNOWN"}]}
The existing one makes me believe it's just the string following "{#FSTYPE}", does anyone know if it does a similar comparison to the {#FSNAME} data item?Comment
-
Yes, but does @File systems for discovery REGEXP filter both the FSTYPE and FSNAME strings?Comment
-
Only One filter allowed, but xpehbam is wrong.
You can use one of the: FSTYPE or FSNAME.
But not both
Comment
-
http://www.zabbix.com/documentation/...evel_discoveryThe filter can be used to only generate real items, triggers, and graphs for certain file systems. It expects POSIX Extended Regular Expression. For instance, if you are only interested in C:, D:, and E: file systems, you could put {#FSNAME} into “Macro” and "^C|^D|^E" regular expression into “Regexp” text fields. Filtering is also possible by file system types using {#FSTYPE} macro (e. g. "^ext|^reiserfs").
You can enter a regular expression or reference a global regular expression in “Regexp” field.
In order to test the regular expression you can use “grep -E”, for example:Comment
-
Comment
-
Comment