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:24] fiserp [Monitored parameters] |
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 31: | Line 33: | ||
===== 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 [ " | ||