-
New Feature Request
-
Resolution: Unresolved
-
Major
-
None
-
None
Add the ability to aggregate checks on multiple items to the same host using the PCRE regular expression
Example:
It is necessary to get the amount of free space on host data storage
Items:
- vmware.hv.datastore.size [\{$ URL}, \{HOST.HOST}, _ds1_r10_6hdd_, free]
- vmware.hv.datastore.size [\{$ URL}, \{HOST.HOST}, _ds2_r0_1ssd_, free]
- vmware.hv.datastore.size [\{$ URL}, \{HOST.HOST}, _ds3_r10_6hdd_, free]
- vmware.hv.datastore.size [\{$ URL}, \{HOST.HOST}, _ds4_r10_4hdd_, free]
or
- vmware.vm.vfs.fs.size [\{$ URL}, \{HOST.HOST}, _C:_, free]
- vmware.vm.vfs.fs.size [\{$ URL}, \{HOST.HOST}, _D:_, free]
or
- vfs.fs.size [ C:, used]
- vfs.fs.size [ D:, used]
Problem:
- When using grpsum, you cannot use sampling only by Host.
- The key element can change the name
Possible Solution :
Extend functionality to
groupfunc ["host group or THIS", "item key or regular expression", itemfunc, timeperiod]
The resulting item will look like this:
grpsum [THIS, "vmware \ .hv \ .datastore \ .size \ [\{\ $ URL}, \{HOST \ .HOST}, (. *), free ]",last]
grpsum [THIS, "vmware \ .vm \ .vfs \ .fs \ .size \ [\{ $ URL}, \{HOST \ .HOST}, (. *), free ]", last]
grpsum [THIS, "vfs \ .fs \ .size \ [(. *), used \]", last]