Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 289739

Summary: net-analyzer/nrpe Option debug=1 makes nrpe to refused connect when can't read hosts.allow
Product: Gentoo Linux Reporter: Marcin Mirosław <bug>
Component: Current packagesAssignee: Sysadmin Bugs <sysadmin>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marcin Mirosław 2009-10-19 14:51:48 UTC
Changing options debug=0 to debug=1 in /etc/nagios/nrpe.conf makes nrpe daemon to change behavior. It's start to refuse connection when /etc/hosts.allow is not readble by nagios user.

Reproducible: Always

Steps to Reproduce:
1.# /usr/lib/nagios/plugins/check_nrpe -H 127.00.0.1 -c check_hda1
DISK CRITICAL - /dev/hda1 is not accessible: Nie ma takiego pliku ani katalogu

Syslog:
localhost nrpe[16077]: warning: cannot open /etc/hosts.allow: Permission denied

2. edit nrpe.conf and set debug=1
3. /etc/init.d/nrpe restart
4. # /usr/lib/nagios/plugins/check_nrpe -H 127.00.0.1 -c check_hda1
CHECK_NRPE: Error - Could not complete SSL handshake.

Syslog:
localhost nrpe[19945]: Connection from 127.0.0.1 port 21170
localhost nrpe[19945]: Host address is in allowed_hosts
localhost nrpe[19945]: warning: cannot open /etc/hosts.allow: Permission denied
localhost nrpe[19945]: error: bad option name: "Y"
localhost nrpe[19945]: Connection refused by TCP wrapper
localhost nrpe[19945]: refused connect from localhost (127.0.0.1)
Comment 1 Pacho Ramos gentoo-dev 2019-03-15 10:17:45 UTC
how is the situation with nrpe-3.2.1-r1?
Comment 2 Jaco Kroon 2021-03-10 15:07:02 UTC
Closing.  Old bug, unable to reproduce with nrpe-4.0.x