[ZBXNEXT-584] Support multiple server in active check mode Created: 2010 Dec 16  Updated: 2015 Apr 02  Resolved: 2012 Apr 11

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Agent (G)
Affects Version/s: 1.9.1 (alpha)
Fix Version/s: None

Type: New Feature Request Priority: Major
Reporter: Takanori Suzuki Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows, Unix, Linux zabbix-1.9 (r16152)


Attachments: File zabbix-1.9-r16152_extend_multi_active_check.patch    
Issue Links:
Duplicate
duplicates ZBXNEXT-548 Support of multiple server address co... Open
is duplicated by ZBXNEXT-1109 support multiple server for active proxy Open
is duplicated by ZBXNEXT-2762 Need Zabbix agent to collect data fro... Closed

 Description   

I made a patch for supporting multiple server in active check mode.
I heard the needs in Japanese Zabbix community meeting.
Some users says they want Zabbix to support multiple server in active check for redundant monitoring.

Following is some explanation for my patch.

  • The attached file is patch for zabbix-1.9 (r16152)
  • "ActiveCheckServer" parameter
    I added new config parameter "ActiveCheckServer" to avoid to make needless process.
    Because active check uses one process per one Zabbix server.
    For example, if I have a Zabbix server "192.168.0.1" and add "127.0.0.1" to "Server" for zabbix_get test, the process for "127.0.0.1" is needless.
    So, I made a new parameter for active check.
  • "__declspec(thread)" (Thread Local Storage in Visual C++)
    I added "__declspec(thread)" for Windows agent to avoid to refer same variable by different thread.
    Thread Local Storage is needed for Windows, because Windows agent works in thread.
    It is not needed for Unix and Linux, because the agent for them work in multi process.
    (reference) http://en.wikipedia.org/wiki/Thread-local_storage


 Comments   
Comment by richlv [ 2012 Apr 10 ]

draft spec : https://zabbix.org/wiki/Docs/specs/ZBXNEXT-584

Comment by richlv [ 2012 Apr 11 ]

(1) please, review :
http://www.zabbix.com/documentation/1.8/manual/about/what_s_new_1.8.12
http://www.zabbix.com/documentation/2.0/manual/installation/upgrade_notes#upgrade_notes_for_agents
http://www.zabbix.com/documentation/2.0/manual/introduction/whatsnew200#simplified_serveractive_logic
http://www.zabbix.com/documentation/2.0/manual/introduction/whatsnew200#simplified_zabbix_agent_daemon_configuration

<Sasha> CLOSED

Comment by richlv [ 2012 Apr 11 ]

dev branch for 1.8 : svn://svn.zabbix.com/branches/dev/ZBXNEXT-584

Comment by richlv [ 2012 Apr 11 ]

(2) ServerActive seems to be missing from zabbix_agentd.conf

<Sasha> RESOLVED in r26764.

<richlv> (including windows config file changes) CLOSED

Comment by dimir [ 2012 Apr 11 ]

Successfully tested.

Comment by Alexander Vladishev [ 2012 Apr 11 ]

Available in version pre-1.8.12 r26771.

Comment by Alexander Vladishev [ 2012 Apr 13 ]

(3) Please, review:
http://www.zabbix.com/documentation/1.8/manual/processes/zabbix_agentd?&#configuration_file
http://www.zabbix.com/documentation/1.8/manual/processes/zabbix_agentd_win?&#configuration_file
http://www.zabbix.com/documentation/2.0/manual/appendix/config/zabbix_agentd
http://www.zabbix.com/documentation/2.0/manual/appendix/config/zabbix_agentd_win

<Sasha> Reviewed by Martins. CLOSED

Comment by dimir [ 2012 Apr 16 ]

trunk tested, please review my changes in r26846, r26867.

Comment by Alexander Vladishev [ 2012 Apr 17 ]

Available in version pre-2.0.0rc3 r26890.

Generated at Thu Apr 25 09:12:44 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.