Difference between revisions of "Zabbix server hosts management"

(Created page with "Category:Linux =Monitoring= ==Hosts status== =Management= ==Hosts management== ==Add host== You have to had a host (= machine with a zabbix agent) on the server...")
 
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
[[Category:Linux]]
 
[[Category:Linux]]
  
=Monitoring=
+
This explains how to manage hosts.
  
==Hosts status==
+
=Hosts overview=
  
 +
[[File:Hosts overview.png|1024px|caption|Hosts overview]]
  
 +
→ Configuration >> Hosts
  
  
  
=Management=
 
  
==Hosts management==
+
=Add host=
 
 
 
 
==Add host==
 
  
 
You have to had a host (= machine with a zabbix agent) on the server side in order to monitor it.
 
You have to had a host (= machine with a zabbix agent) on the server side in order to monitor it.
  
  
1. Go to the Configuration > "Add host" menu
+
1. Go to the Configuration > Hosts > "Create host"
 
 
[[File:add-zabbix-host-1.png|none|Zabbix add host - step 01]]
 
 
 
* Click on Configuration Menu
 
* Click on Hosts submenu
 
* Click on Create Host button at right side
 
  
 +
[[File:add-zabbix-host-1.png|1024px|caption|Zabbix add host]]
  
  
Line 39: Line 32:
 
** You can create your own groups and classification as well
 
** You can create your own groups and classification as well
 
* Agent interface: Fill the info of Zabbix agent running on host
 
* Agent interface: Fill the info of Zabbix agent running on host
** Select the '''DNS''' option instead of IP. So if we move the client for any reason that will NOT impact the monitoring. :)
+
** Select the '''IP''' option instead of DNS. That will avoid some conflicts between FQDN and simple name.  
 
* Status: Select initial status
 
* Status: Select initial status
  
  
'''IMPORTANT !!''' The name of the ''hostname'' must match the real hostname - as return by the `hostname` command !!
+
'''IMPORTANT !!'''  
 +
 
 +
The name of the ''hostname'' must match the real hostname - as return by the `hostname` command !!  
 +
 
  
  
Line 52: Line 48:
 
[[File:add-zabbix-host-3.png|none|Zabbix add host - step 03]]
 
[[File:add-zabbix-host-3.png|none|Zabbix add host - step 03]]
  
To get the list of templates, just type '''template''' in the search area. Select, at least:
+
To get the list of templates, just type '''template''' in the search area.
* Template OS Linux
 
* (if your client is NOT a Linux) Template Zabbix agent
 
  
 
''Don't forget to click the "ADD" button!''
 
''Don't forget to click the "ADD" button!''
  
 
+
* My custom ''vehco-smartcards'' includes the ''Zabbix agent'' template
The ''Linux OS'' includes the Zabbix agent template. :)  
+
* The ''Linux OS'' includes the ''Zabbix agent'' template. :)  
  
  
Line 65: Line 59:
 
4. Automatic host inventory
 
4. Automatic host inventory
  
Click on the "host inventory" tab
+
* Click on the "host inventory" tab
 
+
* Enable the '''Automatic''' option.
[[File:add-zabbix-host-4.png|none|Zabbix add host - step 04]]
 
 
 
Enable the '''Automatic''' option.
 
Click "save" at the bottom of the page.
 
 
 
 
 
 
 
 
 
==Setup host discovery==
 
 
 
 
 
===Discovery settings===
 
 
 
Go to menu '''Configuration > Discovery''', then click on "Local Network". Fill the form:
 
 
 
[[File:add-zabbix-discovery-1.png|none|Zabbix discovery - step 01]]
 
 
 
* Set the correct '''LAN settings'''
 
* Adjust the time from ''3600'' to ''900'' (check every 15 minutes)
 
* Enable the following Checks:
 
** '''ICMP ping'''
 
** '''zabbix agent'''
 
** '''SSH'''
 
** '''SNMP''' with the following params:
 
*** version: ''SNMPv2''
 
*** port range: ''161'' (default)
 
*** community: ''vehco''
 
*** SNMP OID: ''SNMPv2-MIB::sysName.0''
 
* Use a search by '''IP @''' filter
 
* '''Enable discovery'''
 
 
 
===Create actions===
 
 
 
Go to menu '''Configuration > Actions'''
 
 
 
 
 
1. Select the actions' group '''Discovery''':
 
 
 
[[File:zabbix-actions-discovery.png|none|Zabbix discovery actions]]
 
 
 
 
 
 
 
2. Edit the ''Auto discovery. Linux server'' action:
 
 
 
[[File:zabbix-actions-discovery-linux-01.png|none|Zabbix discovery action - Linux server step 01]]
 
 
 
* Enable the action
 
 
 
 
 
On the "configuration" tab...
 
  
Add a "Host IP" filter with your correct LAN as a 4th filter
 
  
[[File:zabbix-actions-discovery-linux-02.png|none|Zabbix discovery action - Linux server step 02]]
+
5. Click "save" at the bottom of the page.

Latest revision as of 13:36, 28 October 2014


This explains how to manage hosts.

Hosts overview

Hosts overview

→ Configuration >> Hosts



Add host

You have to had a host (= machine with a zabbix agent) on the server side in order to monitor it.


1. Go to the Configuration > Hosts > "Create host"

Zabbix add host


2. Now fill the following details of remote host

Zabbix add host - step 02
  • Hostname: Hostname of Remote system
  • Visible name: Name to be display in zabbix
  • Group: Select the desired group for you host
    • You should use Linux at least
    • You can create your own groups and classification as well
  • Agent interface: Fill the info of Zabbix agent running on host
    • Select the IP option instead of DNS. That will avoid some conflicts between FQDN and simple name.
  • Status: Select initial status


IMPORTANT !!

The name of the hostname must match the real hostname - as return by the `hostname` command !!


3. Set some monitoring templates to apply

Click on the "Templates" tab

Zabbix add host - step 03

To get the list of templates, just type template in the search area.

Don't forget to click the "ADD" button!

  • My custom vehco-smartcards includes the Zabbix agent template
  • The Linux OS includes the Zabbix agent template. :)


4. Automatic host inventory

  • Click on the "host inventory" tab
  • Enable the Automatic option.


5. Click "save" at the bottom of the page.