[ZBXNEXT-580] Support {#FSTYPE} for "vfs.fs.discovery" key out of the box. Created: 2010 Dec 12 Updated: 2011 Dec 22 Resolved: 2011 Oct 26 |
|
Status: | Closed |
Project: | ZABBIX FEATURE REQUESTS |
Component/s: | Agent (G) |
Affects Version/s: | None |
Fix Version/s: | 1.9.8 (beta) |
Type: | Change Request | Priority: | Critical |
Reporter: | Oleksii Zagorskyi | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 4 |
Labels: | discovery, lld | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
latest trunk |
Description |
If we define the key "vfs.fs.discovery" for Windows and for Linux we get all the file systems, including absolutely unnecessary file systems. For example in windows floppy-drive A, and optical drives. In Linux for example the FS like /dev, /proc, others. Presented an example script in the documentation is good, but I'm sure it must be supported by an agent of the box. macro, FS discovery feature is quite inconvenient. There is only one drawback - a cool JSON-format example in the documentation will have to change - you need to come up with yet another cool example to demonstrate JSON-format |
Comments |
Comment by Brad Crowder [ 2011 Sep 28 ] |
Two Diffs to add #FSTYPE to JSON result for vfs.fs.discovery for Linux and HPUX, (first is linux, second is hpux) — diskspace.c.orig 2011-09-28 14:06:45.000000000 -0400
@@ -124,8 +124,16 @@ *p = '\0'; + mtype = ++p; + zbx_json_addstring(&j, "{#FSTYPE}", mtype, ZBX_JSON_TYPE_STRING); zbx_json_close(&j); } --------------------------------------------------------------------------------------------------- — diskspace.c.orig 2011-09-10 00:10:56 -0700 +++ diskspace.c 2011-09-28 11:14:57 -0700 @@ -179,6 +179,7 @@ { zbx_json_addobject(&j, NULL); zbx_json_addstring(&j, "{#FSNAME} ", mt->mnt_dir, ZBX_JSON_TYPE_STRING); ", mt->mnt_type, ZBX_JSON_TYPE_STRING); |
Comment by Aleksandrs Saveljevs [ 2011 Oct 24 ] |
Added {#FSTYPE}and tested on the following platforms: AIX: AIX 5.2, AIX 6.1 (also see http://api.kde.org/4.x-api/kdelibs-apidocs/kdecore/html/kmountpoint_8cpp_source.html for how KDE does it) Added vfs.fs.discovery and tested on the following platforms: FreeBSD: FreeBSD 4.2 and FreeBSD 6.2 (after working around |
Comment by Aleksandrs Saveljevs [ 2011 Oct 25 ] |
Updated documentation at http://www.zabbix.com/documentation/2.0/manual/discovery/low_level_discovery . <richlv> i liked the filtering example, so i returned it to that page. please, review <asaveljevs> OK, CLOSED. |
Comment by Aleksandrs Saveljevs [ 2011 Oct 26 ] |
Updated documentation at http://www.zabbix.com/documentation/2.0/manual/appendix/items/supported_by_platform, because support for "vfs.fs.discovery" was added for FreeBSD, NetBSD, and OpenBSD. |
Comment by Alexander Vladishev [ 2011 Oct 27 ] |
Has tested support of a macro {$FSTYPE} on next platforms:
|
Comment by Aleksandrs Saveljevs [ 2011 Nov 02 ] |
Available in pre-1.9.8 in r22899. |
Comment by Oleksii Zagorskyi [ 2011 Nov 02 ] |
Thank you Aleksandrs ! Now I'm happy |
Comment by Michael OBrien [ 2011 Nov 30 ] |
Any way we could get Win2003 support out of the box? I've tested XP, 2008, 2008 R2, and Win7 - All work great. I'm a bit surprised that 2003 doesn't work, given XP does. |
Comment by Oleksii Zagorskyi [ 2011 Dec 01 ] |
Michael, I cannot confirm. It works for Win 2003 server. I tried 3 different machines, always successfully:
|