Rozdíly
Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
Obě strany předchozí revize Předchozí verze Následující verze | Předchozí verze Následující verze Obě strany příští revize | ||
linux:centos:nagios [02.08.2016 17:38] vm |
linux:centos:nagios [02.08.2016 17:45] vm |
||
---|---|---|---|
Řádek 30: | Řádek 30: | ||
==== Problems ==== | ==== 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 === | === Nagios check_disk failure in RHEL / CentOS 6.2 === | ||
Řádek 46: | Řádek 59: | ||
If you do not want change SElinux policy, another workaround is to exclude offending file systems using -X flags in check definition. | If you do not want change SElinux policy, another workaround is to exclude offending file systems using -X flags in check definition. | ||
- | -X configfs -X cgroup -X tmpfs -X selinuxfs -X sysfs -X proc -X mqueue -X binfmt_misc -X devtmpfs | + | /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: | Source: | ||
* [[https://bugzilla.redhat.com/show_bug.cgi?id=1255948]] | * [[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/]] | * [[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