Friday, December 18, 2015

Install zabbix agent on Window and Linux host

7:31 AM Posted by Dilli Raj Maharjan , No comments

Install Zabbix agent on Windows

Create Zabbix directory. We can create directory on any location. In my case I choose to create directory on desktop.









Open URL:http://www.zabbix.com/download.php on browser.



















Under Zabbix pre-compiled agents heading Click on Download on Windows Platform.





Save the downloaded file to newly create Zabbix directory on Desktop.









Extract Zabbix_agents_2.4.4.win.zip











Enter bin directory and on basic of architecture of your OS enter win32 or win64















Copy all *.exe to Zabbix directory on Desktop.
















Enter conf directory and copy zabbix_agentd.win.conf file to Zabbix directory on Desktop and rename it as zabbix_agentd.conf


Open the file and remove all the contents and paste following lines
Server=127.0.0.1,192.168.1.250
ServerActive=192.168.1.250








Remove all unnecessary files as bin,conf directories and even source leaving 3 .exe files and 1 .conf file












Open windows terminal(command) as user Administrator to install zabbix-agentd services
Change directory to Desktop/Zabbix
Execute Following command

zabbix_agentd.exe --install -c zannox_agentd.conf

















After Successfully install zabbix-agentd service start with command below

net start "Zabbix Agent"








Install Zabbix agent on Linux

Go to http://www.zabbix.com/download.php



















Under Zabbix Packages heading select required Distribution, Version and Architecture and click on Download.



Download the required version of the zabbix-agent.















wget http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/zabbix-agent-2.4.7-1.el6.x86_64.rpm











Install zabbix-agent with command below

rpm -ivh zabbix-agent-2.4.7-1.el6.x86_64.rpm










Modify agent file. We need to modify Server, ServerActive and hostname parameters values.

vi /etc/zabbix/zabbix_agentd.conf












Start Zabbix-agentd with command below


/etc/init.d/zabbix-agent start







Configure Zabbix-agent host on Zabbix server.

Open Zabbix server UI.










Click on Configuration and then Hosts.













Click Create host button on Top Right.













Add Host name, Visible name ad Group under which the host will be displayed. Enter IP address or DNS name of the host.












Click on Templates tab and add required templates that need to be monitored. Click on Update.




Verify 10050 port is listening on the host where zabbix agent is installed.













Finally we can find the Added host with Status Enabled and Green on Availability.






0 comments:

Post a Comment