Greetings,
I'm trying to understand how {HOST.IP<1-9>} works.
Some servers that I'm monitoring, have multiple IP address
(For example and logs, I will replace the wan ip to 8.8.8.8 and vpn ip to 10.10.10.10)
- First IP is the main wan ip.
- Second IP is the vpn ip. (Not all servers have VPN)
I've created 2 different items to monitor the connection and the VPN.
First item for wan: icmppingsec[{HOST.IP1},,,,10000,]
Second item for vpn: icmppingsec[{HOST.IP2},,,,10000,]
The weird thing is that zabbix_proxy is resolving both macros to the main IP instead of the second ip listed at host configuration.
A quick sample of zabbix_proxy.log with debuglevel set to 4:
- what am I doing wrong here? Why HOST.IP2 doesn't returns 10.10.10.10?
- A second question would be: If HOST.IP3 doesn't exist, and I create an item 'icmppingsec[{HOST.IP3},,,,10000,]', would it return 0 or it will use the default ip?
edit: Zabbix Version 2.0.5
Thank you!
I'm trying to understand how {HOST.IP<1-9>} works.
Some servers that I'm monitoring, have multiple IP address
(For example and logs, I will replace the wan ip to 8.8.8.8 and vpn ip to 10.10.10.10)
- First IP is the main wan ip.
- Second IP is the vpn ip. (Not all servers have VPN)
I've created 2 different items to monitor the connection and the VPN.
First item for wan: icmppingsec[{HOST.IP1},,,,10000,]
Second item for vpn: icmppingsec[{HOST.IP2},,,,10000,]
The weird thing is that zabbix_proxy is resolving both macros to the main IP instead of the second ip listed at host configuration.
A quick sample of zabbix_proxy.log with debuglevel set to 4:
Code:
25491:20130415:111834.364 In substitute_key_macros() data:'icmppingsec[{HOST.IP1},,,,10000,]'
25491:20130415:111834.364 In substitute_simple_macros() data:'{HOST.IP1}'
25491:20130415:111834.364 End substitute_simple_macros() data:'8.8.8.8'
25491:20130415:111834.364 End of substitute_key_macros():SUCCEED data:'icmppingsec[8.8.8.8,,,,10000,]'
25491:20130415:111836.418 In substitute_key_macros() data:'icmppingsec[{HOST.IP2},,,,10000,]'
25491:20130415:111836.418 In substitute_simple_macros() data:'{HOST.IP2}'
25491:20130415:111836.418 End substitute_simple_macros() data:'8.8.8.8'
25491:20130415:111836.418 End of substitute_key_macros():SUCCEED data:'icmppingsec[8.8.8.8,,,,10000,]'
- A second question would be: If HOST.IP3 doesn't exist, and I create an item 'icmppingsec[{HOST.IP3},,,,10000,]', would it return 0 or it will use the default ip?
edit: Zabbix Version 2.0.5
Thank you!
Comment