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 [Implementation] |
tutorial:adm:server_monitoring [2019/03/25 11:29] fiserp [Implementation] |
||
---|---|---|---|
Line 10: | Line 10: | ||
* RHEL7-flavoured system. | * RHEL7-flavoured system. | ||
* About 80GB HDD. | * About 80GB HDD. | ||
- | * At least 6GB RAM. | + | * At least 8GB RAM. |
* At least 2x2GHz CPU. | * At least 2x2GHz CPU. | ||
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{ |