Hi. I'm fairly new to Zabbix (and *love* it), so this may be a daft question, though I've been unable to google an answer or find it in the forum archives. I'm using Zabbix as essentially a performance monitoring system. I've got all the actual tests running just fine.
What I've been hung is trying to use the "Aggregate" item with anything that has quotes in the aggregated item's key. For example:
Given a regular 'Zabbix agent' item (that is working and returning valid data) with a key of:
net.tcp.service.perf["smtp","10.1.1.1"]
what should the key in the 'Zabbix aggregate' item be called?
I've tried things like:
grpavg["Mail Servers","net.tcp.service.perf[smtp,10.1.1.1]","last","0"]
grpavg["Mail Servers",'net.tcp.service.perf["smtp","10.1.1.1"]',"last","0"]
grpavg["Mail Servers","net.tcp.service.perf["smtp","10.1.1.1"]","last","0"]
grpavg["Mail Servers","net.tcp.service.perf[\"smtp\",\"10.1.1.1\"]","last","0"]
and any other permutation I could think of, all to no avail. I either get a "error: No items for key" error or just a "is not supported, old status" error. I imagine it's something simple that I've overlooking.
The second part to this question is how then do I put user-defined macros in the aggregated key name? For example, the *real* thing I've been doing is more like this:
I've got a template with an item whose key is:
net.tcp.service.perf["smtp","{$IP_ADDRESS}"]
and in the hosts that are using that template, {$IP_ADDRESS} is defined, e.g. 10.1.1.1 to match the above. The items themselves work just fine and are returning valid data I can't seem to get that to work either in something like grpavg. I've tried the same permutations as above, all with the same failures. I'll also note that if I don't do enough quoting, it'll dereference the macro, which is bad.
Anybody have any pointers on what I'm doing wrong? thanks!
What I've been hung is trying to use the "Aggregate" item with anything that has quotes in the aggregated item's key. For example:
Given a regular 'Zabbix agent' item (that is working and returning valid data) with a key of:
net.tcp.service.perf["smtp","10.1.1.1"]
what should the key in the 'Zabbix aggregate' item be called?
I've tried things like:
grpavg["Mail Servers","net.tcp.service.perf[smtp,10.1.1.1]","last","0"]
grpavg["Mail Servers",'net.tcp.service.perf["smtp","10.1.1.1"]',"last","0"]
grpavg["Mail Servers","net.tcp.service.perf["smtp","10.1.1.1"]","last","0"]
grpavg["Mail Servers","net.tcp.service.perf[\"smtp\",\"10.1.1.1\"]","last","0"]
and any other permutation I could think of, all to no avail. I either get a "error: No items for key" error or just a "is not supported, old status" error. I imagine it's something simple that I've overlooking.
The second part to this question is how then do I put user-defined macros in the aggregated key name? For example, the *real* thing I've been doing is more like this:
I've got a template with an item whose key is:
net.tcp.service.perf["smtp","{$IP_ADDRESS}"]
and in the hosts that are using that template, {$IP_ADDRESS} is defined, e.g. 10.1.1.1 to match the above. The items themselves work just fine and are returning valid data I can't seem to get that to work either in something like grpavg. I've tried the same permutations as above, all with the same failures. I'll also note that if I don't do enough quoting, it'll dereference the macro, which is bad.
Anybody have any pointers on what I'm doing wrong? thanks!