Zabbix for Beginners- 04- Working with Zabbix - Part 3 - Templates with ZabbixAgent

In this tutorial video, I install the Zabbix Agent on Windows 2012 and Linux Ubuntu and then by using Zabbix Templates, I can monitor them.

You can download the slide from here: https://drive.google.com/file/d/0B7Qqqz58v3OKM1A0TFFIeXFKQ1k/view?usp=sharing

 Also You can watch the video from here: http://youtu.be/_b7qszaK2BA



Zabbix Agent is a software which is provided by Zabbix to monitor the machines that have Operating Systems like Windows and Linux
You have to install Zabbix Agent on your servers first, if you need to monitor them using Zabbix Agent.

Installing Zabbix Agent on Ubuntu Linux:
  1. Update package list: sudo apt-get update 
  2. Install Zabbix Agent: sudo apt-get install zabbix-agent 
  3. Edit Zabbix Config file: sudo vi /etc/zabbix/zabbix_agentd.conf  (Server=192.168.1.200 (Zabbix Server))
  4. Restart the Zabbix Agent: sudo service zabbix-agent restart 
  5. Use Zabbix Templates for Monitoring your Server
You can download Zabbix Agent for different distribution of Linux: http://www.zabbix.com/download.php


Install Zabbix Agent on Windows Server 2012 
  1. Download and Unzip the Zabbix Agent http://www.zabbix.com/download.php 
  2. I copy Zabbix Agent folder in C:\Zabbix (You can copy to any Folder you want) 
  3. Copy the Config file into the Zabbix Agent folder Edit Config file and set Server IP address (192.168.1.200, Zabbix Server) 
  4. Open CMD/PowerShell as administrator and go to bin and then win64/win32 folder 
  5. Install Zabbix Agent: In CMD: zabbix_agentd.exe --config zabbix_agentd.win.conf --install and in PowerShell: .\zabbix_agentd.exe --config .\zabbix_agentd.win.conf --install
  6. Go to Windows Services console and run the Zabbix Agent service 
  7. Use Zabbix Templates for Monitoring your Server

In Windows : To start Zabbix Agent
  • In CMD: zabbix_agentd.exe --start 
  • In Power Shell: .\zabbix_agentd.exe --start 
  • In Windows Services console, start Zabbix Agent Service

In Windows : To stop Zabbix Agent
  • In CMD: zabbix_agentd.exe --stop 
  • In Power Shell: .\zabbix_agentd.exe --stop 
  • In Windows Services console, stop Zabbix Agent Service 

In Windows : To uninstall Zabbix Agent:
  • In CMD: zabbix_agentd.exe --uninstall 
  • In Power Shell: .\zabbix_agentd.exe --uninstall 

In Linux, Ubuntu:
  • To start Zabbix Agent: sudo service zabbix-agent start 
  • To stop Zabbix Agent: sudo service zabbix-agent stop
  • To uninstall Zabbix Agent: sudo apt-get remove zabbix-agent (Uninstall only Zabbix Agent) 
  • To uninstall only Zabbix Agent and delete Config files: sudo apt-get purge zabbix-agent

17 comments:

Unknown said...

Dear Alireza,

I enjoy your videos a lot

I wonder, when will be next one?

I am currently looking forward for Auto-Discovery and I think with your video, this is going to be piece of cake :D

Thank you

Grateful viewer=)

KAYVAN N said...

Hi
Thank you for this tutorials.
I want to config and use the zabbix but I cant work for it.
Please share GNS3 project files.
Thank you so much.

KAYVAN N said...

Hi
Thank you for this tutorials.
I want to config and use the zabbix but I cant work for it.
Please share GNS3 project files.
Thank you so much.

Alireza Rezvani said...

@Unknown!
Hi, thanks... I have just created the video, although it dose not yet 100% match my expectation.

I am uploading it

Alireza Rezvani said...

@KAYVAN!

Hi

I have uploaded the GNS3 file, but I am not sure it is helpful.

Anonymous said...

Hi,
thank you for your video.
i have a problem with my zabbix server.
i have followed your video and configured zabbix exactly as you showed on your video.
my windows servers are on defernt vlan from zabbix server. everything is open between the servers vlan and the zabbix server. in the web interface i can see that everything is green but on the graphs i see there is no data. can you please help figure this out?
thanks

Alireza Rezvani said...

@Anonymous

Hi,
Thanks for your comment. First be sure that you can ping your Windows machine via Zabbix server (go to the console and ping from there). Second: sometimes, depends on what you put as the interval time, you need to wait to database be updated.
If you have still the problem, please let me know
Thanks

Anonymous said...

Hi,

First, thanks a lot for those tuto, it's very helpful
i have tried to configure SNMP interface (router and Switch) on zabbix server;but the problem that those hosts not figured on GUI of Zabbix server.
1-I'm using a private Lan.
2-I have configured Zabbix agent on computer succesfully (30 computer's)
3-SNMP Interface and Zabbix server was # ip address.
could you please help on this !

Thanks in advance.

Alireza Rezvani said...

@Anonymous

Hi,
Sorry for the delayed respond. I was on holidays. So what is the error you get from ZABBIX? I need more information

Juan Camilo Ospina said...

Hey Bro...you are fkng amazing man...!...Really, I appreciate all the time that you expended to do this for all the world...Really, you teached me lot of things that helped me out to pick up my server and set it up to work...!!!...Thanks and thanks again man!!!...Long life Alireza!

Alireza Rezvani said...

@Juan
Hi mate. Thanks for your comment. Happy you like the videos :-) And thanks for letting me know that

Alireza Rezvani said...

@Juan
Hi mate. Thanks for your comment. Happy you like the videos :-) And thanks for letting me know that

Juan Camilo Ospina said...

Hey Alireza...how are you?...Bro, I wanna ask you something about templates, specifically with ICMP Template...this template has 3 items, but I don't really know how to work with them, I mean, how to configure it to receive the correct alerts about some issue as could be Ping loss for specific time, or when the ping response time be too high. Men, again, thanks a lot for your help and your videos! =D

Alireza Rezvani said...

@Juan,

Hi. Thanks, I am good hoping you are doing well. I am not sure if I get the question accurate. Assuming you want to know if a specific host goes down, after maximum 15sec you realize.

There is an "Update interval (in sec)" for each item dose that. By default the time interval is 60s but you can change it. Please note that Zabbix sends ping request on the each interval time (say for interval=60s, each 60s Zabbix sends ping request) so if you decrease the interval you may get a lot of ping traffic.

if it dose not help, please ask the question more specific.
Thanks



Juan Camilo Ospina said...

Hey Alireza...thanks for your answer...Well, I really want to know how to use the ICMP Template items. For my production environment, I need this configuration: Send a PING every 30 seconds...if 4 ICMP packets get lost (120 seconds), I need to receive an email alert (the email alerts are solved), but I need to configure that if the device that I'm monitoring doesn't responds during 120 seconds, send the email alert...summarizing, I really want you to let me know how to configure and understand correctly the ICMP template, and what means each field on each item of this template.

I hope you can help me...thanks a lot for your help and time!!!

Alireza Rezvani said...

@ Juan
Hi,
Sorry for the delayed respond. I am quite busy

For this need, you wont need to use ICMP template. I think when you are creating a new host, you can define what is the interval time for ping and when the device goes down, you can set the alert. I think I have done the same scenario in Alert video

Anonymous said...

Hi Alireza appreciate for your work,

I tried to install Zabbix agent on Windows server 2012 R2, but it is throwing an error " "Error 1053: The service did not respond to the start or control request in a timely fashion"

Do you have any idea why i am getting this error, i tried changing registry also but still zabbix agent service is not starting.