Всем привет!!! Ребята а у Меня такая вот задача-проблема. Есть сервер с Zabbix, стоит за NAT, есть куча клиентов: один ПК, два ПК, Пять ПК и более, все клиенты на Windows и все Они также за Своим NAT, у них кроме агента zabbix ни чего ставить не хотелось бы. Что Я сделал:
1. Пробросил порт 10051 на zabbix сервер
2. Сделал вот такой конфиг на клиенте для активных проверок:
DebugLevel=3
LogFile=C:\Program Files\Zabbix Agent\Zabbix_agentd.log
Server=IP
ListenPort=10051
StartAgents=0
ServerActive=IP:10051
Hostname=Server
RefreshActiveChecks=120
Ошибок в логе нет . Но и данных ни каких тоже нет на сервере , состояние "агент не подключен".
В чем может быть проблема????
Лог с клиента выглядит так:
1288:20131103:193439.609 Starting Zabbix Agent [urojai]. Zabbix 2.0.6 (revision 35155).
204:20131103:193439.625 agent #0 started [collector]
1064:20131103:193439.625 agent #1 started [active checks]
1064:20131103:193500.703 active check configuration update from [78.31.78.62:10050] started to fail (cannot connect to [[78.31.78.62]:10050]: [0x0000274C] Попытка установить соединение была безуспешной, С‚.Рє. РѕС‚ РґСЂСѓРіРѕРіРѕ компьютера Р·Р° требуемое время РЅРµ получен РЅСѓР¶Р)
3700:20131103:193619.093 Zabbix Agent shutdown requested
204:20131103:193619.640 zabbix_agentd collector stopped
3700:20131103:193620.093 Zabbix Agent stopped. Zabbix 2.0.6 (revision 35155).
4008:20131103:193620.406 Starting Zabbix Agent [Server_urojai]. Zabbix 2.0.6 (revision 35155).
2200:20131103:193620.406 agent #0 started [collector]
2332:20131103:193620.406 agent #1 started [active checks]
2332:20131103:193641.390 active check configuration update from [78.31.78.62:10050] started to fail (cannot connect to [[78.31.78.62]:10050]: [0x0000274C] Попытка установить соединение была безуспешной, С‚.Рє. РѕС‚ РґСЂСѓРіРѕРіРѕ компьютера Р·Р° требуемое время РЅРµ получен РЅСѓР¶Р)
1144:20131103:193941.703 Zabbix Agent shutdown requested
2200:20131103:193942.437 zabbix_agentd collector stopped
2332:20131103:193942.437 zabbix_agentd active check stopped
1144:20131103:193942.703 Zabbix Agent stopped. Zabbix 2.0.6 (revision 35155).
688:20131103:193943.031 Starting Zabbix Agent [Server_urojai]. Zabbix 2.0.6 (revision 35155).
812:20131103:193943.031 agent #0 started [collector]
2752:20131103:193943.031 agent #1 started [active checks]
2752:20131103:194004.078 active check configuration update from [78.31.78.62:10050] started to fail (cannot connect to [[78.31.78.62]:10050]: [0x0000274C] Попытка установить соединение была безуспешной, С‚.Рє. РѕС‚ РґСЂСѓРіРѕРіРѕ компьютера Р·Р° требуемое время РЅРµ получен РЅСѓР¶Р)
4068:20131103:194206.625 Zabbix Agent shutdown requested
2752:20131103:194207.046 zabbix_agentd active check stopped
812:20131103:194207.046 zabbix_agentd collector stopped
4068:20131103:194207.625 Zabbix Agent stopped. Zabbix 2.0.6 (revision 35155).
3300:20131103:194207.953 Starting Zabbix Agent [Server_urojai]. Zabbix 2.0.6 (revision 35155).
1104:20131103:194207.953 agent #0 started [collector]
1704:20131103:194207.953 agent #1 started [active checks]
2064:20131103:194231.718 Zabbix Agent shutdown requested
1104:20131103:194231.968 zabbix_agentd collector stopped
1704:20131103:194231.984 zabbix_agentd active check stopped
2064:20131103:194232.718 Zabbix Agent stopped. Zabbix 2.0.6 (revision 35155).
348:20131103:194233.046 Starting Zabbix Agent [Server_urojai]. Zabbix 2.0.6 (revision 35155).
1220:20131103:194233.046 agent #0 started [collector]
436:20131103:194233.046 agent #1 started [active checks]
1532:20131103:200100.359 Zabbix Agent shutdown requested
1220:20131103:200101.078 zabbix_agentd collector stopped
436:20131103:200101.328 zabbix_agentd active check stopped
1532:20131103:200101.390 Zabbix Agent stopped. Zabbix 2.0.6 (revision 35155).
4048:20131103:200101.687 Starting Zabbix Agent [Server_urojai]. Zabbix 2.0.6 (revision 35155).
2068:20131103:200101.687 agent #0 started [collector]
3600:20131103:200101.687 agent #1 started [active checks]
3600:20131103:200922.718 active check configuration update from [78.31.78.62:10051] started to fail (cannot connect to [[78.31.78.62]:10051]: [0x0000274C] Попытка установить соединение была безуспешной, С‚.Рє. РѕС‚ РґСЂСѓРіРѕРіРѕ компьютера Р·Р° требуемое время РЅРµ получен РЅСѓР¶Р)
1148:20131103:201208.453 Zabbix Agent shutdown requested
2068:20131103:201208.703 zabbix_agentd collector stopped
3600:20131103:201208.765 zabbix_agentd active check stopped
1148:20131103:201209.453 Zabbix Agent stopped. Zabbix 2.0.6 (revision 35155).
536:20131103:201209.781 Starting Zabbix Agent [Server_urojai]. Zabbix 2.0.6 (revision 35155).
596:20131103:201209.781 agent #0 started [collector]
568:20131103:201209.781 agent #1 started [active checks]
568:20131103:201209.796 Can't parse list of active checks. Can't open JSON object ""
568:20131103:201409.796 Can't parse list of active checks. Can't open JSON object ""
568:20131103:201609.812 Can't parse list of active checks. Can't open JSON object ""
3504:20131103:201727.953 Zabbix Agent shutdown requested
596:20131103:201728.796 zabbix_agentd collector stopped
568:20131103:201728.812 zabbix_agentd active check stopped
3504:20131103:201728.953 Zabbix Agent stopped. Zabbix 2.0.6 (revision 35155).
784:20131103:201729.281 Starting Zabbix Agent [Server_urojai]. Zabbix 2.0.6 (revision 35155).
3620:20131103:201729.281 agent #0 started [collector]
1488:20131103:201729.281 agent #1 started [active checks]
3696:20131103:202446.000 Zabbix Agent shutdown requested
3620:20131103:202446.296 zabbix_agentd collector stopped
1488:20131103:202446.328 zabbix_agentd active check stopped
3696:20131103:202447.000 Zabbix Agent stopped. Zabbix 2.0.6 (revision 35155).
3328:20131103:202447.328 Starting Zabbix Agent [Server_urojai]. Zabbix 2.0.6 (revision 35155).
2388:20131103:202447.328 agent #0 started [collector]
656:20131103:202447.328 agent #1 started [active checks]
656:20131104:035601.468 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
656:20131104:035601.562 active check configuration update from [78.31.78.62:10051] started to fail ()
656:20131104:035701.578 active check configuration update from [78.31.78.62:10051] is working again
656:20131104:040305.125 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
656:20131104:040305.125 active check configuration update from [78.31.78.62:10051] started to fail ()
656:20131104:040405.140 active check configuration update from [78.31.78.62:10051] is working again
656:20131104:061254.640 active check configuration update from [78.31.78.62:10051] started to fail (cannot connect to [[78.31.78.62]:10051]: [0x0000274C] Попытка установить соединение была безуспешной, С‚.Рє. РѕС‚ РґСЂСѓРіРѕРіРѕ компьютера Р·Р° требуемое время РЅРµ получен РЅСѓР¶Р)
656:20131104:061354.671 active check configuration update from [78.31.78.62:10051] is working again
656:20131104:064558.343 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
656:20131104:064558.343 active check configuration update from [78.31.78.62:10051] started to fail (cannot connect to [[78.31.78.62]:10051]: [0x0000274C] Попытка установить соединение была безуспешной, С‚.Рє. РѕС‚ РґСЂСѓРіРѕРіРѕ компьютера Р·Р° требуемое время РЅРµ получен РЅСѓР¶Р)
656:20131104:064658.359 active check configuration update from [78.31.78.62:10051] is working again
656:20131104:131405.156 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
656:20131104:131405.156 active check configuration update from [78.31.78.62:10051] started to fail (cannot connect to [[78.31.78.62]:10051]: [0x0000274C] Попытка установить соединение была безуспешной, С‚.Рє. РѕС‚ РґСЂСѓРіРѕРіРѕ компьютера Р·Р° требуемое время РЅРµ получен РЅСѓР¶Р)
656:20131104:131505.171 active check configuration update from [78.31.78.62:10051] is working again
656:20131104:141111.078 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
656:20131104:141111.078 active check configuration update from [78.31.78.62:10051] started to fail (cannot connect to [[78.31.78.62]:10051]: [0x0000274C] Попытка установить соединение была безуспешной, С‚.Рє. РѕС‚ РґСЂСѓРіРѕРіРѕ компьютера Р·Р° требуемое время РЅРµ получен РЅСѓР¶Р)
656:20131104:141211.093 active check configuration update from [78.31.78.62:10051] is working again
3924:20131105:014038.109 Zabbix Agent shutdown requested
656:20131105:014038.156 zabbix_agentd active check stopped
2388:20131105:014038.562 zabbix_agentd collector stopped
3924:20131105:014039.109 Zabbix Agent stopped. Zabbix 2.0.6 (revision 35155).
236:20131105:014039.562 Starting Zabbix Agent [Server_urojai]. Zabbix 2.0.6 (revision 35155).
3296:20131105:014039.562 agent #1 started [active checks]
2260:20131105:014039.562 agent #0 started [collector]
3296:20131105:041451.656 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
3296:20131105:041452.218 active check configuration update from [78.31.78.62:10051] started to fail ()
3296:20131105:041552.234 active check configuration update from [78.31.78.62:10051] is working again
3296:20131105:081025.140 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
3296:20131105:081025.140 active check configuration update from [78.31.78.62:10051] started to fail ()
3296:20131105:081125.156 active check configuration update from [78.31.78.62:10051] is working again
3296:20131105:111749.234 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
3296:20131105:111749.234 active check configuration update from [78.31.78.62:10051] started to fail ()
3296:20131105:111849.250 active check configuration update from [78.31.78.62:10051] is working again
3296:20131105:133114.078 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
3296:20131105:133114.078 active check configuration update from [78.31.78.62:10051] started to fail ()
3296:20131105:133214.093 active check configuration update from [78.31.78.62:10051] is working again
3296:20131105:172406.640 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
3296:20131105:172406.640 active check configuration update from [78.31.78.62:10051] started to fail ()
3296:20131105:172506.656 active check configuration update from [78.31.78.62:10051] is working again
3296:20131106:065547.656 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
3296:20131106:065547.656 active check configuration update from [78.31.78.62:10051] started to fail ()
3296:20131106:065647.656 active check configuration update from [78.31.78.62:10051] is working again
3296:20131106:090735.015 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
3296:20131106:090735.015 active check configuration update from [78.31.78.62:10051] started to fail ()
3296:20131106:090835.031 active check configuration update from [78.31.78.62:10051] is working again
3296:20131106:204045.421 Message size 63300069836780328 exceeds the maximum size 134217728 bytes. Message ignored.
1. Пробросил порт 10051 на zabbix сервер
2. Сделал вот такой конфиг на клиенте для активных проверок:
DebugLevel=3
LogFile=C:\Program Files\Zabbix Agent\Zabbix_agentd.log
Server=IP
ListenPort=10051
StartAgents=0
ServerActive=IP:10051
Hostname=Server
RefreshActiveChecks=120
Ошибок в логе нет . Но и данных ни каких тоже нет на сервере , состояние "агент не подключен".
В чем может быть проблема????
Лог с клиента выглядит так:
1288:20131103:193439.609 Starting Zabbix Agent [urojai]. Zabbix 2.0.6 (revision 35155).
204:20131103:193439.625 agent #0 started [collector]
1064:20131103:193439.625 agent #1 started [active checks]
1064:20131103:193500.703 active check configuration update from [78.31.78.62:10050] started to fail (cannot connect to [[78.31.78.62]:10050]: [0x0000274C] Попытка установить соединение была безуспешной, С‚.Рє. РѕС‚ РґСЂСѓРіРѕРіРѕ компьютера Р·Р° требуемое время РЅРµ получен РЅСѓР¶Р)
3700:20131103:193619.093 Zabbix Agent shutdown requested
204:20131103:193619.640 zabbix_agentd collector stopped
3700:20131103:193620.093 Zabbix Agent stopped. Zabbix 2.0.6 (revision 35155).
4008:20131103:193620.406 Starting Zabbix Agent [Server_urojai]. Zabbix 2.0.6 (revision 35155).
2200:20131103:193620.406 agent #0 started [collector]
2332:20131103:193620.406 agent #1 started [active checks]
2332:20131103:193641.390 active check configuration update from [78.31.78.62:10050] started to fail (cannot connect to [[78.31.78.62]:10050]: [0x0000274C] Попытка установить соединение была безуспешной, С‚.Рє. РѕС‚ РґСЂСѓРіРѕРіРѕ компьютера Р·Р° требуемое время РЅРµ получен РЅСѓР¶Р)
1144:20131103:193941.703 Zabbix Agent shutdown requested
2200:20131103:193942.437 zabbix_agentd collector stopped
2332:20131103:193942.437 zabbix_agentd active check stopped
1144:20131103:193942.703 Zabbix Agent stopped. Zabbix 2.0.6 (revision 35155).
688:20131103:193943.031 Starting Zabbix Agent [Server_urojai]. Zabbix 2.0.6 (revision 35155).
812:20131103:193943.031 agent #0 started [collector]
2752:20131103:193943.031 agent #1 started [active checks]
2752:20131103:194004.078 active check configuration update from [78.31.78.62:10050] started to fail (cannot connect to [[78.31.78.62]:10050]: [0x0000274C] Попытка установить соединение была безуспешной, С‚.Рє. РѕС‚ РґСЂСѓРіРѕРіРѕ компьютера Р·Р° требуемое время РЅРµ получен РЅСѓР¶Р)
4068:20131103:194206.625 Zabbix Agent shutdown requested
2752:20131103:194207.046 zabbix_agentd active check stopped
812:20131103:194207.046 zabbix_agentd collector stopped
4068:20131103:194207.625 Zabbix Agent stopped. Zabbix 2.0.6 (revision 35155).
3300:20131103:194207.953 Starting Zabbix Agent [Server_urojai]. Zabbix 2.0.6 (revision 35155).
1104:20131103:194207.953 agent #0 started [collector]
1704:20131103:194207.953 agent #1 started [active checks]
2064:20131103:194231.718 Zabbix Agent shutdown requested
1104:20131103:194231.968 zabbix_agentd collector stopped
1704:20131103:194231.984 zabbix_agentd active check stopped
2064:20131103:194232.718 Zabbix Agent stopped. Zabbix 2.0.6 (revision 35155).
348:20131103:194233.046 Starting Zabbix Agent [Server_urojai]. Zabbix 2.0.6 (revision 35155).
1220:20131103:194233.046 agent #0 started [collector]
436:20131103:194233.046 agent #1 started [active checks]
1532:20131103:200100.359 Zabbix Agent shutdown requested
1220:20131103:200101.078 zabbix_agentd collector stopped
436:20131103:200101.328 zabbix_agentd active check stopped
1532:20131103:200101.390 Zabbix Agent stopped. Zabbix 2.0.6 (revision 35155).
4048:20131103:200101.687 Starting Zabbix Agent [Server_urojai]. Zabbix 2.0.6 (revision 35155).
2068:20131103:200101.687 agent #0 started [collector]
3600:20131103:200101.687 agent #1 started [active checks]
3600:20131103:200922.718 active check configuration update from [78.31.78.62:10051] started to fail (cannot connect to [[78.31.78.62]:10051]: [0x0000274C] Попытка установить соединение была безуспешной, С‚.Рє. РѕС‚ РґСЂСѓРіРѕРіРѕ компьютера Р·Р° требуемое время РЅРµ получен РЅСѓР¶Р)
1148:20131103:201208.453 Zabbix Agent shutdown requested
2068:20131103:201208.703 zabbix_agentd collector stopped
3600:20131103:201208.765 zabbix_agentd active check stopped
1148:20131103:201209.453 Zabbix Agent stopped. Zabbix 2.0.6 (revision 35155).
536:20131103:201209.781 Starting Zabbix Agent [Server_urojai]. Zabbix 2.0.6 (revision 35155).
596:20131103:201209.781 agent #0 started [collector]
568:20131103:201209.781 agent #1 started [active checks]
568:20131103:201209.796 Can't parse list of active checks. Can't open JSON object ""
568:20131103:201409.796 Can't parse list of active checks. Can't open JSON object ""
568:20131103:201609.812 Can't parse list of active checks. Can't open JSON object ""
3504:20131103:201727.953 Zabbix Agent shutdown requested
596:20131103:201728.796 zabbix_agentd collector stopped
568:20131103:201728.812 zabbix_agentd active check stopped
3504:20131103:201728.953 Zabbix Agent stopped. Zabbix 2.0.6 (revision 35155).
784:20131103:201729.281 Starting Zabbix Agent [Server_urojai]. Zabbix 2.0.6 (revision 35155).
3620:20131103:201729.281 agent #0 started [collector]
1488:20131103:201729.281 agent #1 started [active checks]
3696:20131103:202446.000 Zabbix Agent shutdown requested
3620:20131103:202446.296 zabbix_agentd collector stopped
1488:20131103:202446.328 zabbix_agentd active check stopped
3696:20131103:202447.000 Zabbix Agent stopped. Zabbix 2.0.6 (revision 35155).
3328:20131103:202447.328 Starting Zabbix Agent [Server_urojai]. Zabbix 2.0.6 (revision 35155).
2388:20131103:202447.328 agent #0 started [collector]
656:20131103:202447.328 agent #1 started [active checks]
656:20131104:035601.468 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
656:20131104:035601.562 active check configuration update from [78.31.78.62:10051] started to fail ()
656:20131104:035701.578 active check configuration update from [78.31.78.62:10051] is working again
656:20131104:040305.125 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
656:20131104:040305.125 active check configuration update from [78.31.78.62:10051] started to fail ()
656:20131104:040405.140 active check configuration update from [78.31.78.62:10051] is working again
656:20131104:061254.640 active check configuration update from [78.31.78.62:10051] started to fail (cannot connect to [[78.31.78.62]:10051]: [0x0000274C] Попытка установить соединение была безуспешной, С‚.Рє. РѕС‚ РґСЂСѓРіРѕРіРѕ компьютера Р·Р° требуемое время РЅРµ получен РЅСѓР¶Р)
656:20131104:061354.671 active check configuration update from [78.31.78.62:10051] is working again
656:20131104:064558.343 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
656:20131104:064558.343 active check configuration update from [78.31.78.62:10051] started to fail (cannot connect to [[78.31.78.62]:10051]: [0x0000274C] Попытка установить соединение была безуспешной, С‚.Рє. РѕС‚ РґСЂСѓРіРѕРіРѕ компьютера Р·Р° требуемое время РЅРµ получен РЅСѓР¶Р)
656:20131104:064658.359 active check configuration update from [78.31.78.62:10051] is working again
656:20131104:131405.156 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
656:20131104:131405.156 active check configuration update from [78.31.78.62:10051] started to fail (cannot connect to [[78.31.78.62]:10051]: [0x0000274C] Попытка установить соединение была безуспешной, С‚.Рє. РѕС‚ РґСЂСѓРіРѕРіРѕ компьютера Р·Р° требуемое время РЅРµ получен РЅСѓР¶Р)
656:20131104:131505.171 active check configuration update from [78.31.78.62:10051] is working again
656:20131104:141111.078 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
656:20131104:141111.078 active check configuration update from [78.31.78.62:10051] started to fail (cannot connect to [[78.31.78.62]:10051]: [0x0000274C] Попытка установить соединение была безуспешной, С‚.Рє. РѕС‚ РґСЂСѓРіРѕРіРѕ компьютера Р·Р° требуемое время РЅРµ получен РЅСѓР¶Р)
656:20131104:141211.093 active check configuration update from [78.31.78.62:10051] is working again
3924:20131105:014038.109 Zabbix Agent shutdown requested
656:20131105:014038.156 zabbix_agentd active check stopped
2388:20131105:014038.562 zabbix_agentd collector stopped
3924:20131105:014039.109 Zabbix Agent stopped. Zabbix 2.0.6 (revision 35155).
236:20131105:014039.562 Starting Zabbix Agent [Server_urojai]. Zabbix 2.0.6 (revision 35155).
3296:20131105:014039.562 agent #1 started [active checks]
2260:20131105:014039.562 agent #0 started [collector]
3296:20131105:041451.656 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
3296:20131105:041452.218 active check configuration update from [78.31.78.62:10051] started to fail ()
3296:20131105:041552.234 active check configuration update from [78.31.78.62:10051] is working again
3296:20131105:081025.140 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
3296:20131105:081025.140 active check configuration update from [78.31.78.62:10051] started to fail ()
3296:20131105:081125.156 active check configuration update from [78.31.78.62:10051] is working again
3296:20131105:111749.234 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
3296:20131105:111749.234 active check configuration update from [78.31.78.62:10051] started to fail ()
3296:20131105:111849.250 active check configuration update from [78.31.78.62:10051] is working again
3296:20131105:133114.078 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
3296:20131105:133114.078 active check configuration update from [78.31.78.62:10051] started to fail ()
3296:20131105:133214.093 active check configuration update from [78.31.78.62:10051] is working again
3296:20131105:172406.640 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
3296:20131105:172406.640 active check configuration update from [78.31.78.62:10051] started to fail ()
3296:20131105:172506.656 active check configuration update from [78.31.78.62:10051] is working again
3296:20131106:065547.656 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
3296:20131106:065547.656 active check configuration update from [78.31.78.62:10051] started to fail ()
3296:20131106:065647.656 active check configuration update from [78.31.78.62:10051] is working again
3296:20131106:090735.015 Message size 18444075627708416 exceeds the maximum size 134217728 bytes. Message ignored.
3296:20131106:090735.015 active check configuration update from [78.31.78.62:10051] started to fail ()
3296:20131106:090835.031 active check configuration update from [78.31.78.62:10051] is working again
3296:20131106:204045.421 Message size 63300069836780328 exceeds the maximum size 134217728 bytes. Message ignored.