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 11:27] fiserp [Monitoring of server with CzechIdM] |
tutorial:adm:server_monitoring [2019/03/25 15:02] fiserp [Monitoring of server with CzechIdM] |
||
---|---|---|---|
Line 3: | Line 3: | ||
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 39: | Line 39: | ||
#!/bin/bash | #!/bin/bash | ||
- | # Original version https:// | + | # Original |
# Modified for CentOS7/ | # Modified for CentOS7/ | ||
if [ " | if [ " | ||
Line 87: | Line 87: | ||
yum install nrpe nagios-plugins-nrpe nagios-plugins-swap nagios-plugins-disk nagios-plugins-load nagios-plugins-procs nagios-plugins-ntp nagios-plugins-http nagios-plugins-pgsql | yum install nrpe nagios-plugins-nrpe nagios-plugins-swap nagios-plugins-disk nagios-plugins-load nagios-plugins-procs nagios-plugins-ntp nagios-plugins-http nagios-plugins-pgsql | ||
</ | </ | ||
- | If you use SELinux, we need to permit the check_disk | + | If you use SELinux, we need to permit the check\_disk |
< | < | ||
yum install policycoreutils-python | yum install policycoreutils-python | ||
Line 96: | Line 96: | ||
allowed_hosts=127.0.0.1, | allowed_hosts=127.0.0.1, | ||
</ | </ | ||
- | Create a configuration of system checks in the file ''/ | + | Create a configuration of system checks in the file ''/ |
<file txt checks.cfg> | <file txt checks.cfg> | ||
command[check_swap]=/ | command[check_swap]=/ | ||
Line 110: | Line 110: | ||
command[check_postgres]=/ | command[check_postgres]=/ | ||
</ | </ | ||
- | Add the '' | + | Add the '' |
< | < | ||
cp check_mem / | cp check_mem / | ||
chmod 755 / | chmod 755 / | ||
</ | </ | ||
- | Create the '' | + | Create the '' |
< | < | ||
create user monitoring password ' | create user monitoring password ' | ||
Line 124: | Line 124: | ||
systemctl enable nrpe | systemctl enable nrpe | ||
</ | </ | ||
- | To test the probes, you can use '' | + | To test the probes, you can use '' |
< | < | ||
/ | / | ||
Line 133: | Line 133: | ||
This is a sample configuration for the Nagios server. It is meant more as an inspiration, | This is a sample configuration for the Nagios server. It is meant more as an inspiration, | ||
- | Configure the '' | + | Configure the '' |
< | < | ||
define command{ | define command{ |