Hi,
I appear to be having a strange host macro issue in zabbix 2.07
I am using zabbix sender to send value to server: sudo zabbix_sender -z 5.9.173.251 -s client1 -k aKMTMPA -o 10.1
Without using a host macro value gets through fine: info from server: "Processed 1 Failed 0 Total 1 Seconds spent 0.000188" sent: 1; skipped: 0; total: 1
PROBLEM: When I use macros (details below) value does not get through: info from server: "Processed 0 Failed 1 Total 1 Seconds spent 0.000122" sent: 1; skipped: 0; total: 1
My host macro is: Configuration > hosts > client1 > Macros
{$SENKEY1} = KMTMPA
My template details: Template name: Template Sensors
Name = Sensor1 key = a[{$SENKEY1}]
I have tried a variety of different key/Macro permutations based on input from a variety of zabbix posts and user manual: https://www.zabbix.com/documentation...ros/usermacros
I initially wanted:
{$SENKEY1} = aKMTMPA
Name = Sensor1 key = [{$SENKEY1}]
However I get a: Error in item key: "Invalid item key format.". Therefore to resolve this issue it appeared as though I needed an alphanumeric character at the beginning which led to the character "a" which is consistent across all keys being placed at the beginning.
Interesting:
I wondered whether or not there was a deeper issue here in relation to my system and macros. I inserted standard global macros into default local area network - zabbix server host - map label and found that they were not displaying either. Details below:
Administration > General > Macros >
{$SNMP_COMMUNITY} = public
Configuration > maps > local network > zabbix server > label
{HOST.NAME}
{HOST.CONN}
{SENKEY1}
{SNMP_COMMUNITY}
Monitoring > maps > local network >
{HOST.NAME} = zabbix server
{HOST.CONN} = 127.0.0.1
{SENKEY1} = {SENKEY1}
{SNMP_COMMUNITY} = {SNMP_COMMUNITY}
It appears as though the ones I have added do not display correctly - perhaps/likely I am doing something wrong however I have done this successfully many times in the past.
Can someone help?
Regards
Aidan
I appear to be having a strange host macro issue in zabbix 2.07
I am using zabbix sender to send value to server: sudo zabbix_sender -z 5.9.173.251 -s client1 -k aKMTMPA -o 10.1
Without using a host macro value gets through fine: info from server: "Processed 1 Failed 0 Total 1 Seconds spent 0.000188" sent: 1; skipped: 0; total: 1
PROBLEM: When I use macros (details below) value does not get through: info from server: "Processed 0 Failed 1 Total 1 Seconds spent 0.000122" sent: 1; skipped: 0; total: 1
My host macro is: Configuration > hosts > client1 > Macros
{$SENKEY1} = KMTMPA
My template details: Template name: Template Sensors
Name = Sensor1 key = a[{$SENKEY1}]
I have tried a variety of different key/Macro permutations based on input from a variety of zabbix posts and user manual: https://www.zabbix.com/documentation...ros/usermacros
I initially wanted:
{$SENKEY1} = aKMTMPA
Name = Sensor1 key = [{$SENKEY1}]
However I get a: Error in item key: "Invalid item key format.". Therefore to resolve this issue it appeared as though I needed an alphanumeric character at the beginning which led to the character "a" which is consistent across all keys being placed at the beginning.
Interesting:
I wondered whether or not there was a deeper issue here in relation to my system and macros. I inserted standard global macros into default local area network - zabbix server host - map label and found that they were not displaying either. Details below:
Administration > General > Macros >
{$SNMP_COMMUNITY} = public
Configuration > maps > local network > zabbix server > label
{HOST.NAME}
{HOST.CONN}
{SENKEY1}
{SNMP_COMMUNITY}
Monitoring > maps > local network >
{HOST.NAME} = zabbix server
{HOST.CONN} = 127.0.0.1
{SENKEY1} = {SENKEY1}
{SNMP_COMMUNITY} = {SNMP_COMMUNITY}
It appears as though the ones I have added do not display correctly - perhaps/likely I am doing something wrong however I have done this successfully many times in the past.
Can someone help?
Regards
Aidan
Comment