Ad Widget

Collapse

Tips for a Proxy Configuration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mauro.michelotti
    Junior Member
    • May 2017
    • 5

    #1

    Tips for a Proxy Configuration

    Good morning everybody.
    I need to monitor two remote servers; Both can be reached via a single public IP address 195.x.x.x.
    The first server (with internal IP 104) is visible externally with ports 10050/51; The second server (with internal IP 105) is not visible to the outside.
    In this configuration, the public IP 195 ports 10050/51 talks to server 104, ports 10050/51.

    I have implemented the agent on server 104; The proxy on server 104; The agent on the server 105 configured to talk to the proxy on 104.
    The agent on the 104 also talks with the proxy.
    Finally, the proxy on the 104 should talk to the Zabbix server (and only he, without even doing the agent)
    Side ZabbixServer, I defined the proxy using the same name as in the zabbix_proxy.conf file. Finally, I defined the two remote servers,
    also with the same name as the one defined in the respective zabbix_agent.conf file, but with the address as IP 195 for both
    (the only visible to the outside) and port 10051.

    What happens is that all server 105 data is actually server 104 (banally, server name 105 is server 104).
    So there is something that escapes me or I do not know in the configuration, or an upstream error in the configuration.
    Among other things, it is also necessary that in the zabbix_agent.conf file of server 104 tha 'Server' variable is must be set both to 127.0.0.1 and 195 (ZabbixServer),
    otherwise I lose the data of 104 (and as a result of 105 that is actually only a copy of 104).

    At this point I lost the route.
    Does anyone have experience of such a configuration?
    Suggestions?

    Below the zabbix configuration files.
    Code:
    104 AGENT
    
    PidFile=/var/log/zabbix/zabbix_agentd.pid
    LogType=file
    LogFile=/var/log/zabbix/zabbix_agentd.log
    LogFileSize=2
    DebugLevel=3
    Server=127.0.0.1,195.*.*.* <External IP Address of server>
    #Server=127.0.0.1
    ListenPort=10050
    ServerActive=127.0.0.1,195.*.*.* <External IP Address of server>
    #ServerActive=127.0.0.1:10051
    Hostname=0510-webserver
    Code:
    104 PROXY
    
    ProxyMode=0
    Server=<Zabbix Server IP>
    ServerPort=10051
    Hostname=0510-Zabbix
    ListenPort=10051
    LogType=file
    LogFile=/var/log/zabbix/zabbix_proxy.log
    LogFileSize=2
    DebugLevel=3
    PidFile=/var/log/zabbix/zabbix_proxy.pid
    DBName=/opt/zabbix/database/zabbix.db
    DBUser=zabbix
    ProxyLocalBuffer=12
    ProxyOfflineBuffer=12
    HeartbeatFrequency=300
    ConfigFrequency=3600
    DataSenderFrequency=30
    StartPollers=1
    StartIPMIPollers=0
    StartTrappers=1
    StartPingers=1
    StartDiscoverers=1
    StartHTTPPollers=1
    HousekeepingFrequency=12
    StartDBSyncers=1
    Timeout=4
    FpingLocation=/usr/bin/fping
    LogSlowQueries=3000
    Code:
    105 AGENT
    
    PidFile=/var/log/zabbix/zabbix_agentd.pid
    LogType=file
    LogFile=/var/log/zabbix/zabbix_agentd.log
    LogFileSize=5
    DebugLevel=3
    EnableRemoteCommands=0
    LogRemoteCommands=1
    Server=192.168.1.104
    ListenPort=10051
    ServerActive=192.168.1.104:10051
    Hostname=0510-database
    Thanks for your time and for all the suggestions you want to give me.

    Mauro Michelotti
  • mauro.michelotti
    Junior Member
    • May 2017
    • 5

    #2
    Nobody have had an experience with a proxy configuration ?

    Comment

    Working...