Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tutorial:adm:server_monitoring [2019/03/25 10:21] fiserp [Monitoring of server with CzechIdM] |
tutorial:adm:server_monitoring [2019/03/25 10:28] fiserp [Implementation] |
||
---|---|---|---|
Line 2: | Line 2: | ||
Automatic monitoring of production system is crucial for bussiness continuity. Monitoring is recommended also for the testing environment, | Automatic monitoring of production system is crucial for bussiness continuity. Monitoring is recommended also for the testing environment, | ||
This page will show you how to set up basic monitoring of server with CzechIdM using Nagios NRPE. It is very useful to store monitored values for trend overview (e.g. with Munin). Some monitoring systems (like Zabbix) can store trends and monitor services at once. It is also practical to install '' | This page will show you how to set up basic monitoring of server with CzechIdM using Nagios NRPE. It is very useful to store monitored values for trend overview (e.g. with Munin). Some monitoring systems (like Zabbix) can store trends and monitor services at once. It is also practical to install '' | ||
+ | |||
+ | < | ||
**Typical CzechIdM server** | **Typical CzechIdM server** | ||
Line 17: | Line 19: | ||
^Service/ | ^Service/ | ||
|HOST UP| N/A | this is not implemented on the target machine | N/A or ping RTT threshold | high ping RTT or host is not pingable at all | every 5 minutes | every 6 hours | | |HOST UP| N/A | this is not implemented on the target machine | N/A or ping RTT threshold | high ping RTT or host is not pingable at all | every 5 minutes | every 6 hours | | ||
- | |swap used space | check_swap | + | |swap used space | check\_swap |
- | |disk free space | check_disk | + | |disk free space | check\_disk |
- | |system load | check_load | + | |system load | check\_load |
- | |used memory | check_mem | + | |used memory | check\_mem |
- | |process count | check_procs | + | |process count | check\_procs |
- | |zombie process count | check_procs | + | |zombie process count | check\_procs |
- | |system time | check_ntp_time | + | |system time | check\_ntp\_time |
- | |CzechIdM is running | check_http | + | |CzechIdM is running | check\_http |
- | |HTTPD is running | check_http | + | |HTTPD is running | check\_http |
- | |HTTPS certificate expiration | check_http | + | |HTTPS certificate expiration | check\_http |
- | |PostgresSQL is running | check_pgsql | + | |PostgresSQL is running | check\_pgsql |
===== Implementation ===== | ===== Implementation ===== | ||
We will use nrpe and probes from the standard system packages. We have epel repository enabled. | We will use nrpe and probes from the standard system packages. We have epel repository enabled. | ||
- | * NRPE daemon will listen on 5666\tcp (its default port). Open the port in your iptables by adding the rule: //-A INPUT -m state --state ESTABLISHED, | + | * NRPE daemon will listen on 5666\tcp (its default port). Open the port in your iptables by adding the rule: '' |
- | * All probes are located in their default installation location | + | * All probes are located in their default installation location |
- | * We use one external probe check_mem | + | * We use one external probe check\_mem |
<code bash> | <code bash> | ||
#!/bin/bash | #!/bin/bash | ||
- | # Modified for CentOS7 - Petr Fiser, BCV solutions s.r.o. | + | # Original version https:// |
+ | # Modified for CentOS7/ | ||
if [ " | if [ " | ||