Rozdíly
Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
Následující verze | Předchozí verze Následující verze Obě strany příští revize | ||
linux:centos:nagios [27.07.2016 15:58] vm vytvořeno |
linux:centos:nagios [02.08.2016 17:45] vm |
||
---|---|---|---|
Řádek 2: | Řádek 2: | ||
===== NRPE ===== | ===== NRPE ===== | ||
+ | ==== Installation ==== | ||
Add sources containing nagios packages: | Add sources containing nagios packages: | ||
Řádek 25: | Řádek 26: | ||
Nagios plugins are located at ''/usr/lib64/nagios/plugins/'' folder. | Nagios plugins are located at ''/usr/lib64/nagios/plugins/'' folder. | ||
- | ==== Source ==== | + | === Source === |
- [[https://kb.op5.com/pages/viewpage.action?pageId=17074187]] | - [[https://kb.op5.com/pages/viewpage.action?pageId=17074187]] | ||
+ | ==== Problems ==== | ||
+ | === CHECK_NRPE: Error - Could not complete SSL handshake. === | ||
+ | If you are recieving error like | ||
+ | CHECK_NRPE: Error - Could not complete SSL handshake. | ||
+ | there are multiple reasons that can cause this error as this message is kind of generic error. | ||
+ | |||
+ | Typical problems: | ||
+ | * Server from you are accessing NRPE is not listed in ''allowed_hosts'' directive on NRPE server. | ||
+ | |||
+ | One of the tricky reasons that can cause this error is ''/etc/hosts.allow'' file. Even if you add server's IP in allowed_hosts, server cannot connect because this IP also needs to be listed in ''/etc/hosts.allow'' file by adding line: | ||
+ | nrpe: 10.10.10.10 monitoring-server.my-company.com | ||
+ | There is no need to restart nrpe server. | ||
+ | This is required as NRPE server on centos is compiled using ''tcp_wrappers'' library which parses this file. | ||
+ | |||
+ | === Nagios check_disk failure in RHEL / CentOS 6.2 === | ||
+ | |||
+ | If NRPE is responding with | ||
+ | DISK UNKNOWN - free space:| | ||
+ | on CentOS 6 or with | ||
+ | DISK CRITICAL - /sys/kernel/config is not accessible: Permission denied | ||
+ | CentOS 7, there is issue with SElinux policy. | ||
+ | |||
+ | There are also related entries in ''/var/log/audit/audit.log''. | ||
+ | |||
+ | Since version 6.2, the Nagios ''check_disk'' plugin is not working with ''Permission denied'' errors. This problem is related to the SElinux policy. | ||
+ | |||
+ | Fortunately, there is a simple workaround while we wait for an updated selinux-policy package. As root, do the following: | ||
+ | chcon -t nagios_unconfined_plugin_exec_t /usr/lib64/nagios/plugins/check_disk | ||
+ | |||
+ | If you do not want change SElinux policy, another workaround is to exclude offending file systems using -X flags in check definition. | ||
+ | /usr/lib64/nagios/plugins/check_disk -w 10% -c 5% -X configfs -X cgroup -X tmpfs -X selinuxfs -X sysfs -X proc -X mqueue -X binfmt_misc -X devtmpfs | ||
+ | |||
+ | Source: | ||
+ | * [[https://bugzilla.redhat.com/show_bug.cgi?id=1255948]] | ||
+ | * [[http://edvoncken.net/2012/01/workaround-for-nagios-check_disk-failure-in-rhel-centos-6-2/]] |
linux/centos/nagios.txt · Poslední úprava: 15.09.2016 16:56 autor: vm