Changes

From SME Server
Jump to navigationJump to search
596 bytes added ,  09:40, 10 May 2020
Line 5: Line 5:     
===Maintainer===
 
===Maintainer===
[mailto:daniel@firewall-services.com[[User:VIP-ire|Daniel B.]]] from [http://www.firewall-services.com Firewall Services]
+
[mailto:daniel@firewall-services.com][[User:VIP-ire|Daniel B.]] from [http://www.firewall-services.com Firewall Services]
 
=== Description ===
 
=== Description ===
   Line 138: Line 138:     
=== Versions ===
 
=== Versions ===
Here are informations about the latest release of each component:
+
The following is the information about the latest release of each component:
{{ #smeversion: smeserver-zabbix-server }}
+
{{#smeversion: smeserver-zabbix-server }}
{{ #smeversion: zabbix-server }}
+
{{#smeversion: smeserver-zabbix-agent }}
{{ #smeversion: smeserver-zabbix-agent }}
  −
{{ #smeversion: zabbix-agent }}
  −
{{ #smeversion: smeserver-zabbix-proxy }}
  −
{{ #smeversion: zabbix-proxy }}
  −
 
  −
 
  −
 
      
=== Requirements ===
 
=== Requirements ===
Line 157: Line 150:  
Zabbix is composed of four major components:
 
Zabbix is composed of four major components:
 
*The server (the main part). The server will store and analyse the different data, send alerts, etc...
 
*The server (the main part). The server will store and analyse the different data, send alerts, etc...
*The web interface (which is automatically installed with the server with this contrib)
+
*The web interface (which is automatically installed with the server with this contrib).
*The agent, which gathers informations on the different hosts you monitor
+
*The agent, which gathers informations on the different hosts you monitor.
*The proxy, which is an optional part, can be used to collect performance and availability data locally, and send it to the server
+
*The proxy, which is an optional part, can be used to collect performance and availability data locally, and send it to the server.
    
==== Server ====
 
==== Server ====
   −
The server is the core component of Zabbix software. It uses one database (MySQL in this contrib) to store configuration, performance and integrity informations. The server can check network services with simple check (ICMP, TCP etc...) for agent-less monitoring, it can monitor network devices using SNMP and is also the central component to which agent report informations (agent can work in active, passive, or both mode). The server will also analyse all the informations and send alerts depending on very flexible triggers.
+
The server is the core component of Zabbix software. It uses one database (MySQL in this contrib) to store configuration, performance and integrity information. The server can check network services with simple check (ICMP, TCP etc...) for agent-less monitoring, it can monitor network devices using SNMP and is also the central component to which agent report information (agent can work in active, passive, or both mode). The server will also analyse all the information and send alerts depending on very flexible triggers.
    
===== Installation on SME9=====
 
===== Installation on SME9=====
first enable the needed repo: Firewall service and REMI  
+
First enable the needed repo: Firewall service and REMI  
 
{{:Fws}}
 
{{:Fws}}
 
{{:Remi-safe}}
 
{{:Remi-safe}}
Line 173: Line 166:     
to install Zabbix server, just use yum:
 
to install Zabbix server, just use yum:
  yum --enablerepo=smecontribs,fws,remi-safe install smeserver-zabbix-server
+
  yum --enablerepo=smecontribs,fws,remi-safe install smeserver-zabbix-server --exclude=smeserver-zabbix-proxy
 +
NB: the --exclude=smeserver-zabbix-proxy is due to a conflict in late 2019 on SME9 as FWS started using zabbix from zabbix repo instead of building it. We will fix this for SME10 in few months.
    
then go to your server-manager to set php5.4 or higher as default php for your SME, or you will not be able to access to zabbix web gui, or just issue the following
 
then go to your server-manager to set php5.4 or higher as default php for your SME, or you will not be able to access to zabbix web gui, or just issue the following
Line 194: Line 188:  
*'''JabberPassword''': Password for the account (for "JabberAccount")
 
*'''JabberPassword''': Password for the account (for "JabberAccount")
 
*'''JabberTLS''': (enabled|disabled) Does your Jabber server requires TLS security
 
*'''JabberTLS''': (enabled|disabled) Does your Jabber server requires TLS security
{{Note box|The different Jabber settings above are not for the built-in jabber notification function (because I couldn't get it working as my server requires TLS and the built-in feature do not support it). But I've included a external script using sendxmpp to send the notification. You should have a media called 'xmpp' in zabbix administration. }}  
+
{{Note box|The different Jabber settings above are not for the built-in jabber notification function (because I couldn't get it working as my server requires TLS and the built-in features do not support it). But I've included a external script using sendxmpp to send the notification. You should have a media called 'xmpp' in zabbix administration. }}  
    
*'''NodeID''': The node ID of your server. If you don't use distributed monitoring (just one central Zabbix server), you should let this to 0
 
*'''NodeID''': The node ID of your server. If you don't use distributed monitoring (just one central Zabbix server), you should let this to 0
Line 212: Line 206:  
===== Web Interface =====
 
===== Web Interface =====
   −
The main web interface is available (if not disabled with teh key WebAccess) on https://server.domain.tld/zabbix.
+
The main web interface is available (if not disabled with the key WebAccess) on https://server.domain.tld/zabbix.
The default user is '''admin''', with password '''zabbix''' (you should change this password ASAP)
+
The default user is '''Admin''' (with uppercase A as first letter), with password '''zabbix''' (you should change this password ASAP)
    
Here are some screenshots of what you can get with zabbix
 
Here are some screenshots of what you can get with zabbix
Line 228: Line 222:       −
For more screenshots, you can have a look at the project website [http://www.zabbix.com/screenshots.php here]
+
For more screenshots, visit the project website [http://www.zabbix.com/screenshots.php here]
    
==== Agent ====
 
==== Agent ====
   −
Zabbix agent is a very small daemon which will gather informations about the host being monitored, and report it to one or several server(s) (or proxy(s)).
+
Zabbix agent is a very small daemon which will gather information about the host being monitored, and report it to one or several server(s) (or proxy(s)).
 
Agents can run in active or passive mode (or both):
 
Agents can run in active or passive mode (or both):
 
*In active mode, the agent will make outgoing connection to the server (port 10051 by default).
 
*In active mode, the agent will make outgoing connection to the server (port 10051 by default).
 
*In passive mode, the server will connect to the agent (on port 10050 by default).  
 
*In passive mode, the server will connect to the agent (on port 10050 by default).  
   −
Please read Chap. 2.3.4.ZABBIX Agent page 39 and Chap. 3.3.ZABBIX Agent (UNIX, standalone daemon) of the manual for more informations on Zabbix agent.
+
Please read Chap. 2.3.4.ZABBIX Agent page 39 and Chap. 3.3.ZABBIX Agent (UNIX, standalone daemon) of the manual for more information on Zabbix agent.
   −
===== Installation  SME9=====
+
===== Installation  SME9 =====
 
first enable the needed repo: Firewall service   
 
first enable the needed repo: Firewall service   
 
{{:Fws}}
 
{{:Fws}}
    +
and EPEL
 +
{{:Epel}}
 
  signal-event yum-modify
 
  signal-event yum-modify
    
to install Zabbix agent, just use yum:
 
to install Zabbix agent, just use yum:
  yum --enablerepo=smecontribs,fws install smeserver-zabbix-agent
+
  yum --enablerepo=smecontribs,fws,epel install smeserver-zabbix-agent
      Line 280: Line 276:  
  signal-event zabbix-agent-update
 
  signal-event zabbix-agent-update
 
  cat /etc/zabbix/zabbix_agentd.psk
 
  cat /etc/zabbix/zabbix_agentd.psk
 +
 +
you might also need a public access there:
 +
config setprop zabbix-agent  Servers IP1,IP2 access public  active disabled passive enabled AllowHosts IP1,IP2
 +
signal-event zabbix-agent-update
    
On the Zabbix server interface for this client select :  
 
On the Zabbix server interface for this client select :  
Line 286: Line 286:  
# PSK identity: domain.name-agent
 
# PSK identity: domain.name-agent
 
# psk: [paste here the output of cat /etc/zabbix/zabbix_agentd.psk]
 
# psk: [paste here the output of cat /etc/zabbix/zabbix_agentd.psk]
 +
 +
===== agent on the local zabbix server =====
 +
<syntaxhighlight lang="bash">
 +
# config setprop zabbix-agent  access localhost  Servers localhost  active disabled  passive enabled
 +
# signal-event zabbix-agent-update
 +
</syntaxhighlight>
    
===== Additional checks =====
 
===== Additional checks =====
Line 292: Line 298:  
Configuring the corresponding checks on the server can be quite long. You can have a look at the [http://sme.firewall-services.com/downloads/zabbix/zabbix_SME.zip templates] I use to monitor SME Servers. This archive contains some templates/items/graphs/triggers in XML format (exported from Zabbix). You can use the Import/Export functionality of Zabbix (Manual Chap. 8.XML IMPORT AND EXPORT page 154) to import it on your server.
 
Configuring the corresponding checks on the server can be quite long. You can have a look at the [http://sme.firewall-services.com/downloads/zabbix/zabbix_SME.zip templates] I use to monitor SME Servers. This archive contains some templates/items/graphs/triggers in XML format (exported from Zabbix). You can use the Import/Export functionality of Zabbix (Manual Chap. 8.XML IMPORT AND EXPORT page 154) to import it on your server.
   −
You can also have a look at the configuration file /etc/zabbix/zabbix_agentd.conf to see the commands used to return the corresponding values. You'll also find for each UserParameter informations on how to create the corresponding item on the server.
+
You can also have a look at the configuration file /etc/zabbix/zabbix_agentd.conf to see the commands used to return the corresponding values. You'll also find for each UserParameter information on how to create the corresponding item on the server.
   −
Please, read chapter 4.11.User Parameters page 119 of the manual to have more informations on how UserParameters works.
+
Please, read chapter 4.11.User Parameters page 119 of the manual to have more information on how UserParameters work.
    
*External IP:
 
*External IP:
Line 317: Line 323:  
**'''mail.in[total]''': number of emails received (accept + denied)
 
**'''mail.in[total]''': number of emails received (accept + denied)
   −
*Outgoing mails statistics
+
*Outgoing mails statistics:
 
**'''mail.out[total]''': sum of outgoing emails
 
**'''mail.out[total]''': sum of outgoing emails
 
**'''mail.out[success]''': number of successful transmitted emails
 
**'''mail.out[success]''': number of successful transmitted emails
Line 323: Line 329:  
**'''mail.out[failure]''': number of failures
 
**'''mail.out[failure]''': number of failures
   −
*Memory/Swap usage
+
*Memory/Swap usage:
 
**'''vm.memory.size.used''': Actually used memory in bytes
 
**'''vm.memory.size.used''': Actually used memory in bytes
 
**'''vm.memory.size.pused''': Actually used memory in %
 
**'''vm.memory.size.pused''': Actually used memory in %
 
**'''system.swap.size.used''': Actually used swap space in bytes
 
**'''system.swap.size.used''': Actually used swap space in bytes
   −
*MySQL Informations
+
*MySQL Information:
 
**'''mysql.uptime''': uptime of mysql server in seconds
 
**'''mysql.uptime''': uptime of mysql server in seconds
 
**'''mysql.threads''': number of threads
 
**'''mysql.threads''': number of threads
Line 344: Line 350:  
{{Note box|Since version 0.1-38 of smeserver-zabbix-agent, the keys to retrieve UPS informations has changed. You now have to select the name of your UPS on the server side. The default name for an UPS in SME is '''UPS'''}}
 
{{Note box|Since version 0.1-38 of smeserver-zabbix-agent, the keys to retrieve UPS informations has changed. You now have to select the name of your UPS on the server side. The default name for an UPS in SME is '''UPS'''}}
   −
*UPS status
+
*UPS status:
 
**'''ups.load[UPS]''': Current load (in %) of your UPS
 
**'''ups.load[UPS]''': Current load (in %) of your UPS
 
**'''ups.battery.charge[UPS]''': Current charge (in %) of the battery
 
**'''ups.battery.charge[UPS]''': Current charge (in %) of the battery
Line 350: Line 356:  
**'''ups.model[UPS]''': Model of the UPS
 
**'''ups.model[UPS]''': Model of the UPS
   −
*Raid Array Monitoring
+
*Raid Array Monitoring:
 
**'''raid.sw.status''': Current status of your software Raid (all array)
 
**'''raid.sw.status''': Current status of your software Raid (all array)
 
**'''raid.mega.status''': Current status of your mega raid based raid array (for example, the perc5/6(i) are megaraid based). Requires additional MegaCLI package available from here: [http://www.lsi.com/storage_home/products_home/internal_raid/megaraid_sas/]
 
**'''raid.mega.status''': Current status of your mega raid based raid array (for example, the perc5/6(i) are megaraid based). Requires additional MegaCLI package available from here: [http://www.lsi.com/storage_home/products_home/internal_raid/megaraid_sas/]
Line 356: Line 362:  
==== Proxy ====
 
==== Proxy ====
   −
Zabbix proxy is a lightweight daemon. It will act as a server for agents, will cache locally (in a mysql database) the informations, and send it to the server it belongs to. This is useful to monitor networks elements behind a firewall.
+
Zabbix proxy is a lightweight daemon. It will act as a server for agents, will cache locally (in a mysql database) the information, and send it to the server it belongs to. This is useful to monitor networks elements behind a firewall.
    
===== Installation SME9=====
 
===== Installation SME9=====
Line 430: Line 436:  
----
 
----
 
[[Category:Contrib]]
 
[[Category:Contrib]]
 +
[[Category:Administration:Monitoring]]
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,233

edits

Navigation menu