Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289739 - net-analyzer/nrpe Option debug=1 makes nrpe to refused connect when can't read hosts.allow
Summary: net-analyzer/nrpe Option debug=1 makes nrpe to refused connect when can't rea...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Sysadmin Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-19 14:51 UTC by Marcin Mirosław
Modified: 2019-03-15 10:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?