Tenho varios clientes que utilizo o zabbix para monitora-los, porem tenho um cliente que o telnet aberto, nc funcionando e não tem jeito da configuração funcionar.
Configurei um proxy no mesmo servidor para testes e dele pra ele mesmo também não funciona, conforme:
[root@SrvOracle~]# zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -vv -k TESTE -o 0
zabbix_sender [35657]: DEBUG: answer [{"response":"success","info":"processed: 0; failed: 1; total: 1; seconds spent: 0.000036"}]
Response from "localhost:10051": "processed: 0; failed: 1; total: 1; seconds spent: 0.000036"
sent: 1; skipped: 0; total: 1
Observe que ele esta para localhoste mesmo assim não funciona, telnet e nc funcionam, conforme:
[root@SrvOracle ~]# telnet localhost 10051
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
[root@SrvOracle ~]# nc -zv localhost 10051
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connected to ::1:10051.
Ncat: 0 bytes sent, 0 bytes received in 0.01 seconds.
Dentro da rede do cliente eu instalei o monitoramento para outro server tentar esta configuração e o mesmo também não funcionou.
Segue as confs do agent e do proxy:
Agent:
PidFile=/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agent.log
#EnableRemoteCommands=1
LogRemoteCommands=1
Server=10.1.1.5
ListenPort=10050
ServerActive=localhost
Hostname=SrvOracle
AllowRoot=1
AllowKey=system.run[*]
Proxy:
Server=x.x.x.x
ServerPort=10051
Hostname=NOME_DO_PROXY
PidFile=/run/zabbix/zabbix_proxy.pid
DBName=/var/db/zabbix/proxy_new.db
LogFile=/var/log/zabbix/zabbix_proxy.log
ConfigFrequency=600
FpingLocation=/usr/sbin/fping
ProxyMode=0
StartHTTPPollers=4
Timeout=30
StartPreprocessors=6
AllowRoot=1
DebugLevel=3
Log do proxy:
33174:20210512:151317.137 proxy #29 started [preprocessing worker #1]
33164:20210512:151317.137 proxy #19 started [self-monitoring #1]
33176:20210512:151317.230 proxy #31 started [preprocessing worker #3]
33179:20210512:151317.231 proxy #34 started [preprocessing worker #6]
33148:20210512:151442.396 cannot send list of active checks to "10.1.1.13": host [APPSERVER02] not found
33150:20210512:151504.610 cannot send list of active checks to "10.1.1.5": host [SrvOracle] not found
33150:20210512:151643.227 cannot send list of active checks to "10.1.1.13": host [APPSERVER02] not found
33148:20210512:151704.629 cannot send list of active checks to "10.1.1.5": host [SrvOracle] not found
33151:20210512:151843.074 cannot send list of active checks to "10.1.1.13": host [APPSERVER02] not found
33151:20210512:151904.647 cannot send list of active checks to "10.1.1.5": host [SrvOracle] not found
33147:20210512:152042.830 cannot send list of active checks to "10.1.1.13": host [APPSERVER02] not found
33148:20210512:152104.667 cannot send list of active checks to "10.1.1.5": host [SrvOracle] not found
33148:20210512:152242.716 cannot send list of active checks to "10.1.1.13": host [APPSERVER02] not found
33148:20210512:152304.688 cannot send list of active checks to "10.1.1.5": host [SrvOracle] not found
33146:20210512:152317.024 cannot obtain configuration data from server at "x.x.x.x": ZBX_TCP_READ() timed out
33148:20210512:152442.551 cannot send list of active checks to "10.1.1.13": host [APPSERVER02] not found
33148:20210512:152504.708 cannot send list of active checks to "10.1.1.5": host [SrvOracle] not found
LOG do agent:
33098:20210512:151304.579 using configuration file: /etc/zabbix/zabbix_agentd.conf
33098:20210512:151304.579 agent #0 started [main process]
33099:20210512:151304.579 agent #1 started [collector]
33100:20210512:151304.580 agent #2 started[listener #1]
33101:20210512:151304.580 agent #3 started[listener #2]
33102:20210512:151304.581 agent #4 started[listener #3]
33103:20210512:151304.582 agent #5 started [active checks #1]
33103:20210512:151304.588 no active checks on server [10.1.1.5:10051]: host [SrvOracle] not found
33103:20210512:151504.610 no active checks on server [10.1.1.5:10051]: host [SrvOracle] not found
33103:20210512:151704.629 no active checks on server [10.1.1.5:10051]: host [SrvOracle] not found
33103:20210512:151904.648 no active checks on server [10.1.1.5:10051]: host [SrvOracle] not found
33103:20210512:152104.667 no active checks on server [10.1.1.5:10051]: host [SrvOracle] not found
OBSERVAÇÃO:
o server possui o IP 10.1.1.5, mas no final configurei o hostname localhost para garantir que ele não fosse sair da rede.
[root@SrvOracle ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.1.1.5 SrvOracle
[root@SrvOracle ~]# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 8.8.8.8
já não sei mais o que fazer.
Configurei um proxy no mesmo servidor para testes e dele pra ele mesmo também não funciona, conforme:
[root@SrvOracle~]# zabbix_sender -c /etc/zabbix/zabbix_agentd.conf -vv -k TESTE -o 0
zabbix_sender [35657]: DEBUG: answer [{"response":"success","info":"processed: 0; failed: 1; total: 1; seconds spent: 0.000036"}]
Response from "localhost:10051": "processed: 0; failed: 1; total: 1; seconds spent: 0.000036"
sent: 1; skipped: 0; total: 1
Observe que ele esta para localhoste mesmo assim não funciona, telnet e nc funcionam, conforme:
[root@SrvOracle ~]# telnet localhost 10051
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
[root@SrvOracle ~]# nc -zv localhost 10051
Ncat: Version 7.50 ( https://nmap.org/ncat )
Ncat: Connected to ::1:10051.
Ncat: 0 bytes sent, 0 bytes received in 0.01 seconds.
Dentro da rede do cliente eu instalei o monitoramento para outro server tentar esta configuração e o mesmo também não funcionou.
Segue as confs do agent e do proxy:
Agent:
PidFile=/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agent.log
#EnableRemoteCommands=1
LogRemoteCommands=1
Server=10.1.1.5
ListenPort=10050
ServerActive=localhost
Hostname=SrvOracle
AllowRoot=1
AllowKey=system.run[*]
Proxy:
Server=x.x.x.x
ServerPort=10051
Hostname=NOME_DO_PROXY
PidFile=/run/zabbix/zabbix_proxy.pid
DBName=/var/db/zabbix/proxy_new.db
LogFile=/var/log/zabbix/zabbix_proxy.log
ConfigFrequency=600
FpingLocation=/usr/sbin/fping
ProxyMode=0
StartHTTPPollers=4
Timeout=30
StartPreprocessors=6
AllowRoot=1
DebugLevel=3
Log do proxy:
33174:20210512:151317.137 proxy #29 started [preprocessing worker #1]
33164:20210512:151317.137 proxy #19 started [self-monitoring #1]
33176:20210512:151317.230 proxy #31 started [preprocessing worker #3]
33179:20210512:151317.231 proxy #34 started [preprocessing worker #6]
33148:20210512:151442.396 cannot send list of active checks to "10.1.1.13": host [APPSERVER02] not found
33150:20210512:151504.610 cannot send list of active checks to "10.1.1.5": host [SrvOracle] not found
33150:20210512:151643.227 cannot send list of active checks to "10.1.1.13": host [APPSERVER02] not found
33148:20210512:151704.629 cannot send list of active checks to "10.1.1.5": host [SrvOracle] not found
33151:20210512:151843.074 cannot send list of active checks to "10.1.1.13": host [APPSERVER02] not found
33151:20210512:151904.647 cannot send list of active checks to "10.1.1.5": host [SrvOracle] not found
33147:20210512:152042.830 cannot send list of active checks to "10.1.1.13": host [APPSERVER02] not found
33148:20210512:152104.667 cannot send list of active checks to "10.1.1.5": host [SrvOracle] not found
33148:20210512:152242.716 cannot send list of active checks to "10.1.1.13": host [APPSERVER02] not found
33148:20210512:152304.688 cannot send list of active checks to "10.1.1.5": host [SrvOracle] not found
33146:20210512:152317.024 cannot obtain configuration data from server at "x.x.x.x": ZBX_TCP_READ() timed out
33148:20210512:152442.551 cannot send list of active checks to "10.1.1.13": host [APPSERVER02] not found
33148:20210512:152504.708 cannot send list of active checks to "10.1.1.5": host [SrvOracle] not found
LOG do agent:
33098:20210512:151304.579 using configuration file: /etc/zabbix/zabbix_agentd.conf
33098:20210512:151304.579 agent #0 started [main process]
33099:20210512:151304.579 agent #1 started [collector]
33100:20210512:151304.580 agent #2 started[listener #1]
33101:20210512:151304.580 agent #3 started[listener #2]
33102:20210512:151304.581 agent #4 started[listener #3]
33103:20210512:151304.582 agent #5 started [active checks #1]
33103:20210512:151304.588 no active checks on server [10.1.1.5:10051]: host [SrvOracle] not found
33103:20210512:151504.610 no active checks on server [10.1.1.5:10051]: host [SrvOracle] not found
33103:20210512:151704.629 no active checks on server [10.1.1.5:10051]: host [SrvOracle] not found
33103:20210512:151904.648 no active checks on server [10.1.1.5:10051]: host [SrvOracle] not found
33103:20210512:152104.667 no active checks on server [10.1.1.5:10051]: host [SrvOracle] not found
OBSERVAÇÃO:
o server possui o IP 10.1.1.5, mas no final configurei o hostname localhost para garantir que ele não fosse sair da rede.
[root@SrvOracle ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.1.1.5 SrvOracle
[root@SrvOracle ~]# cat /etc/resolv.conf
# Generated by NetworkManager
nameserver 8.8.8.8
já não sei mais o que fazer.
Comment