Difference between revisions of "Zabbix server hosts management"

 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
[[Category:Linux]]
 
[[Category:Linux]]
  
 +
This explains how to manage hosts.
  
=Discovery=
+
=Hosts overview=
 
 
==Discovery rule==
 
 
 
You can create a new Discovery rule using the "''create discovery rule''" button. Create a '''Local network''' rule:
 
 
 
[[File:Zabbix discovery rule.png|1024px|caption|Zabbix discovery rule]]
 
 
 
→ Configuration >> Discovery
 
 
 
 
 
Then you should have the following settings:
 
 
 
[[File:Zabbix discovery rule 02.png|none|Zabbix discovery rule 02]]
 
 
 
 
 
IP range: ''your network''
 
 
 
 
 
Checks:
 
* ICMP ping
 
* SNMP v2
 
* SSH
 
* Zabbix agent
 
 
 
 
 
Uniqueness: '''IP'''
 
 
 
 
 
!!! If you use ''Zabbix agent "system.uname"'' as unique criteria you might encounter a problem !!!
 
* Dicovery ''Zabbix agent'' will bring back the '''FQDN''' of the server
 
* Template rules are based on the '''short name''' of the server
 
 
 
So, with ''Zabbix agent'' some template item won't work !!
 
 
 
 
 
 
 
 
 
==Discovery default group==
 
 
 
You can set a '''configuration property''' for the default group of discovered hosts in:
 
 
 
[[File:Zabbix discovery default group.png|1024px|caption|Zabbix discovery default group]]
 
 
 
→ Administration >> General >> Other
 
 
 
 
 
 
 
==Discovery default template==
 
 
 
You can set a ''' discovery action''' to register all Zabbix discovered hosts in a specific template.
 
 
 
[[File:Zabbix discovery default template.png|1024px|caption|Zabbix discovery default template]]
 
 
 
→ Configuration >> Actions >> Discovery
 
 
 
 
 
Then you can either create a new one or edit an existing one.
 
 
 
* Tab 1 '''Action''' : just put a name and set Enabled
 
* Tab 2 '''Conditions''' : let the default options
 
 
 
[[File:Zabbix discovery action tab2 conditions.png|none|Zabbix discovery action tab2 conditions]]
 
 
 
* Tab 3 '''Operations''' : set the default template
 
 
 
[[File:Zabbix discovery action tab3 operations.png|none|Zabbix discovery action tab3 operations]]
 
 
 
 
 
 
 
 
 
 
 
=Hosts configuration=
 
 
 
==Hosts overview==
 
  
 
[[File:Hosts overview.png|1024px|caption|Hosts overview]]  
 
[[File:Hosts overview.png|1024px|caption|Hosts overview]]  
Line 85: Line 12:
  
  
==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.
Line 105: 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 134: Line 64:
  
 
5. Click "save" at the bottom of the page.
 
5. Click "save" at the bottom of the page.
 
 
 
 
 
 
 
=Network map=
 
 
On the main screen you can create / manage maps and set their size using ''Edit'' button:
 
 
[[File:Network map.png|1024px|caption|Network map]]
 
 
→  Configuration >> Maps
 
 
 
 
On the map, '''only put the main network elements''' = keys elements that are important to manage!
 
 
Ex: do not put the ''netboot'' clients, only the servers.
 
 
[[File:Network map creation.png|none|Network map creation]]
 
 
 
 
 
 
 
 
 
 
=Monitoring=
 
 
==Hosts status==
 

Latest revision as of 12: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.