Is it possible to use zabbix_sender to feed values for LLD Item Prototypes?
I have an LLD rule to discover HBA Ports (fcs devices) on AIX systems and Item Prototypes of type zabbix_trapper for various HBA Port stats. I have another script that collects HBA Port stats every 2 seconds at 30 second intervals and I want to then feed those values after the fact using zabbix_sender.
I have been able to do this with statically defined items/keys within a template, but it's unsuccessful when dealing with item prototypes and key names containing a macro.
My Item prototypes have keys like "aix.perf.fc.tput["{#FCPORT_NAME}"]" which get expanded as "aix.perf.fc.tput["fcs3"]" properly after the initial discovery rule runs.
Here's what I get when I try to manually enter a value for one of the keys using zabbix_sender:
root@zabbix-server # echo server1.example.com aix.perf.fc.tput[fcs0] 25 | zabbix_sender --config /zabbix/etc/zabbix_agentd.conf -vv -i -
zabbix_sender [25224]: DEBUG: answer [{
"response":"success",
"info":"processed: 0; failed: 1; total: 1; seconds spent: 0.000075"}]
info from server: "processed: 0; failed: 1; total: 1; seconds spent: 0.000075"
sent: 1; skipped: 0; total: 1
There's not much I see in the logs and that appears to be a known issue with failures using zabbix_sender.
Environment Info:
Zabbix Server Version: 2.2.3 installed on RHEL 6.5
Zabbix Sender Version: 2.2.7
I have an LLD rule to discover HBA Ports (fcs devices) on AIX systems and Item Prototypes of type zabbix_trapper for various HBA Port stats. I have another script that collects HBA Port stats every 2 seconds at 30 second intervals and I want to then feed those values after the fact using zabbix_sender.
I have been able to do this with statically defined items/keys within a template, but it's unsuccessful when dealing with item prototypes and key names containing a macro.
My Item prototypes have keys like "aix.perf.fc.tput["{#FCPORT_NAME}"]" which get expanded as "aix.perf.fc.tput["fcs3"]" properly after the initial discovery rule runs.
Here's what I get when I try to manually enter a value for one of the keys using zabbix_sender:
root@zabbix-server # echo server1.example.com aix.perf.fc.tput[fcs0] 25 | zabbix_sender --config /zabbix/etc/zabbix_agentd.conf -vv -i -
zabbix_sender [25224]: DEBUG: answer [{
"response":"success",
"info":"processed: 0; failed: 1; total: 1; seconds spent: 0.000075"}]
info from server: "processed: 0; failed: 1; total: 1; seconds spent: 0.000075"
sent: 1; skipped: 0; total: 1
There's not much I see in the logs and that appears to be a known issue with failures using zabbix_sender.
Environment Info:
Zabbix Server Version: 2.2.3 installed on RHEL 6.5
Zabbix Sender Version: 2.2.7
Comment