Hello everyone,
I have a few questions. I would like to implement proxy in my environment.
Here's my idea:
I have installed zabbix server 3.0.3 on debian and 2x zabbix proxy. Also I use agents for auto-registration on my zabbix server.
I want to make active check of zabbix agents to the proxy servers, than collected data will be received to main zabbix server.
My Zabbix Agents is behind NAT and sent the data Active to the
> Proxy1,Proxy2 > Active to Zabbix Server.
Example:
This is my Client#1 configuration file:
############# zabbix_agentd.conf / Username
LogFile=c:\zabbix_agentd.log
Server=IP-Proxy-1:10051,IP-Proxy-2:10052,IP-Zabbix-server
ServerActive=Proxy-1:10051,Proxy-2:10052
HostMetadata=Windows 21df83bf21bf0bsade663090bb
HostnameItem=system.hostname
#RefreshActiveChecks=120
#EnableRemoteCommands=1
DebugLevel=3
Timeout=3
This is my Proxy-1 Configuration file:
### Option: ProxyMode
# Proxy operating mode.
# 0 - proxy in the active mode
# 1 - proxy in the passive mode
#
# Mandatory: no
# Default:
ProxyMode=1
Server=IP-Zabbix-server
Hostname=proxy-1
ListenPort=10051
DBName=*****
DBUser=*****
DBPassword=****
This is my Proxy-2 Configuration file:
### Option: ProxyMode
# Proxy operating mode.
# 0 - proxy in the active mode
# 1 - proxy in the passive mode
#
# Mandatory: no
# Default:
ProxyMode=1
Server=IP-Zabbix-server
Hostname=proxy-2
ListenPort=10052
DBName=*****
DBUser=*****
DBPassword=****
Action of my Zabbix server for Auto-registration
Name: Active auto-registration - Windows
Conditions:
Host metadata like Windows
Host metadata like 21df83bf21bf0bsade663090bb
Operations:
Send message to user groups: Zabbix administrators via all media, Link to templates: Template OS Windows - Active Agents
When my new host is added to Hosts on zabbix server (auto-registration)
The agents is unreachable.
proxy-1: HostnameOfAgent Applications 9 Items 18 Triggers 9 Graphs 2 Discovery 2 Web IPofAggent:10050 Template OS Windows - Active Agents (Template App Zabbix Agent)
In Agent log:
5532:20160712:092638.331 Starting Zabbix Agent [HostnameOfAgent]. Zabbix 3.0.0 (revision 58455).
5532:20160712:092638.332 **** Enabled features ****
5532:20160712:092638.332 IPv6 support: YES
5532:20160712:092638.333 TLS support: NO
5532:20160712:092638.333 **************************
5532:20160712:092638.334 using configuration file: c:\zabbix_agentd.conf
5532:20160712:092638.335 agent #0 started [main process]
9100:20160712:092638.336 agent #1 started [collector]
5196:20160712:092638.336 agent #2 started[listener #1]
4672:20160712:092638.337 agent #3 started[listener #2]
5264:20160712:092638.337 agent #4 started[listener #3]
6008:20160712:092638.338 agent #5 started [active checks #1]
6344:20160712:092638.338 agent #6 started [active checks #2]
6344:20160712:100642.494 no active checks on server [Proxy-2:10052]: host [HostnameOfAgent] not found
6008:20160712:100842.638 no active checks on server [Proxy-1:10051]: host [HostnameOfAgent] not found
6344:20160712:100842.646 no active checks on server [Proxy-2:10052]: host [HostnameOfAgent] not found
Please help! Where is the mistake?
Thanks
I have a few questions. I would like to implement proxy in my environment.
Here's my idea:
I have installed zabbix server 3.0.3 on debian and 2x zabbix proxy. Also I use agents for auto-registration on my zabbix server.
I want to make active check of zabbix agents to the proxy servers, than collected data will be received to main zabbix server.
My Zabbix Agents is behind NAT and sent the data Active to the
> Proxy1,Proxy2 > Active to Zabbix Server.
Example:
This is my Client#1 configuration file:
############# zabbix_agentd.conf / Username
LogFile=c:\zabbix_agentd.log
Server=IP-Proxy-1:10051,IP-Proxy-2:10052,IP-Zabbix-server
ServerActive=Proxy-1:10051,Proxy-2:10052
HostMetadata=Windows 21df83bf21bf0bsade663090bb
HostnameItem=system.hostname
#RefreshActiveChecks=120
#EnableRemoteCommands=1
DebugLevel=3
Timeout=3
This is my Proxy-1 Configuration file:
### Option: ProxyMode
# Proxy operating mode.
# 0 - proxy in the active mode
# 1 - proxy in the passive mode
#
# Mandatory: no
# Default:
ProxyMode=1
Server=IP-Zabbix-server
Hostname=proxy-1
ListenPort=10051
DBName=*****
DBUser=*****
DBPassword=****
This is my Proxy-2 Configuration file:
### Option: ProxyMode
# Proxy operating mode.
# 0 - proxy in the active mode
# 1 - proxy in the passive mode
#
# Mandatory: no
# Default:
ProxyMode=1
Server=IP-Zabbix-server
Hostname=proxy-2
ListenPort=10052
DBName=*****
DBUser=*****
DBPassword=****
Action of my Zabbix server for Auto-registration
Name: Active auto-registration - Windows
Conditions:
Host metadata like Windows
Host metadata like 21df83bf21bf0bsade663090bb
Operations:
Send message to user groups: Zabbix administrators via all media, Link to templates: Template OS Windows - Active Agents
When my new host is added to Hosts on zabbix server (auto-registration)
The agents is unreachable.
proxy-1: HostnameOfAgent Applications 9 Items 18 Triggers 9 Graphs 2 Discovery 2 Web IPofAggent:10050 Template OS Windows - Active Agents (Template App Zabbix Agent)
In Agent log:
5532:20160712:092638.331 Starting Zabbix Agent [HostnameOfAgent]. Zabbix 3.0.0 (revision 58455).
5532:20160712:092638.332 **** Enabled features ****
5532:20160712:092638.332 IPv6 support: YES
5532:20160712:092638.333 TLS support: NO
5532:20160712:092638.333 **************************
5532:20160712:092638.334 using configuration file: c:\zabbix_agentd.conf
5532:20160712:092638.335 agent #0 started [main process]
9100:20160712:092638.336 agent #1 started [collector]
5196:20160712:092638.336 agent #2 started[listener #1]
4672:20160712:092638.337 agent #3 started[listener #2]
5264:20160712:092638.337 agent #4 started[listener #3]
6008:20160712:092638.338 agent #5 started [active checks #1]
6344:20160712:092638.338 agent #6 started [active checks #2]
6344:20160712:100642.494 no active checks on server [Proxy-2:10052]: host [HostnameOfAgent] not found
6008:20160712:100842.638 no active checks on server [Proxy-1:10051]: host [HostnameOfAgent] not found
6344:20160712:100842.646 no active checks on server [Proxy-2:10052]: host [HostnameOfAgent] not found
Please help! Where is the mistake?
Thanks
Comment