I'm sorry to open once again this topic. I have reinstall a new nagios on debian 9. Then if i run
Code: Select all
apt install nagios-nrpe-plugins
But I can't find any nrpe.cfg file on /etc/nagios/ do you know where is this file with this kind of installation ?
root@Nagios-VZ:~# cd /etc/nagios-plugins/
root@Nagios-VZ:/etc/nagios-plugins# ls
config
root@Nagios-VZ:/etc/nagios-plugins# cd config/
root@Nagios-VZ:/etc/nagios-plugins/config# ls
check_nrpe.cfg
root@Nagios-VZ:/etc/nagios-plugins/config# vi check_nrpe.cfg
Code: Select all
# this command runs a program $ARG1$ with no arguments and enables SSL support
define command {
command_name check_nrpe
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}
# this command runs a program $ARG1$ with no arguments and disables SSL support
define command {
command_name check_nrpe_nossl
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -n
}
Code: Select all
root@Nagios-VZ:/home/nagios# apt list --installed |grep nrpe
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
nagios-nrpe-plugin/stable,now 3.0.1-3+deb9u1 i386 [installé]
Code: Select all
root@Nagios-VZ:/etc/nagios-plugins/config# apt list --installed |grep libc6
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
libc6/stable,now 2.24-11+deb9u3 i386 [installé]
libc6-dev/stable,now 2.24-11+deb9u3 i386 [installé, automatique]
Code: Select all
root@Nagios-VZ:/etc/nagios-plugins/config# uname -a
Linux Nagios-VZ 4.9.0-6-686-pae #1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07) i686 GNU/Linux
Code: Select all
root@Nagios-VZ:/etc/nagios-plugins/config# cat /etc/*release*
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Code: Select all
root@Nagios-VZ:/etc/nagios-plugins/config# /usr/lib/nagios/plugins/check_nrpe -V
NRPE Plugin for Nagios
Copyright (c) 1999-2008 Ethan Galstad (nagios@nagios.org)
Version: 3.0.1
Last Modified: 09-08-2016
License: GPL v2 with exemptions (-l for more info)
SSL/TLS Available: OpenSSL 0.9.6 or higher required
Since I can't find the nrpe.cfg, I'm not able to modify allowed host by the IP of my server, so I've theses errors :
Code: Select all
root@Nagios-VZ:/etc/nagios-plugins/config# /usr/lib/nagios/plugins/check_nrpe -H 10.0.2.130
connect to address 10.0.2.130 port 5666: Connection refused
connect to host 10.0.2.130 port 5666: Connection refused
root@Nagios-VZ:/etc/nagios-plugins/config# /usr/lib/nagios/plugins/check_nrpe -H localhost
connect to address ::1 port 5666: Connection refused
connect to address 127.0.0.1 port 5666: Connection refused
connect to host localhost port 5666: Connection refused