https://www.digitalocean.com/community/ ... untu-16-04
die Firewall erlaubt Verbindungen auf den Port 5666/tcp
ufw allow 5666/tcp
auf dem Client ist NRPE installiert und auf die Server IP eingerichtet allow_from xxx
ein
/usr/local/nagios/libexec/check_nrpe -H meine server IP
ergibt:
connect to host xx.xxx.xxx.xx port 5666: Connection refused
netstat -l -n | grep 5666 auf dem Server ergibt keine Rückmeldung
Client:
Code: Alles auswählen
netstat -l -n | grep 5666
tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN
tcp6 0 0 :::5666 :::* LISTEN
Code: Alles auswählen
systemctl status nrpe.service
● nrpe.service - Nagios Remote Plugin Executor
Loaded: loaded (/lib/systemd/system/nrpe.service; disabled; vendor preset: enabled)
Active: active (running) since Fri 2018-03-09 15:19:16 CET; 49s ago
Docs: http://www.nagios.org/documentation
Main PID: 2627 (nrpe)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/nrpe.service
└─2627 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -f
Mar 09 15:19:16 host1 systemd[1]: Started Nagios Remote Plugin Executor.
Mar 09 15:19:16 host1 nrpe[2627]: Starting up daemon
Mar 09 15:19:16 host1 nrpe[2627]: Server listening on 0.0.0.0 port 5666.
Mar 09 15:19:16 host1 nrpe[2627]: Server listening on :: port 5666.
Mar 09 15:19:16 host1 nrpe[2627]: Listening for connections on port 5666
Mar 09 15:19:16 host1 nrpe[2627]: Allowing connections from: 127.0.0.1,::1,xx.xxx.xxx.xx
Code: Alles auswählen
nmap localhost
21/tcp open ftp
25/tcp open smtp
53/tcp open domain
80/tcp open http
110/tcp open pop3
143/tcp open imap
443/tcp open https
465/tcp open smtps
587/tcp open submission
993/tcp open imaps
995/tcp open pop3s
3306/tcp open mysql
5666/tcp open nrpe
9876/tcp open sd
Code: Alles auswählen
nmap localhost
80/tcp open http
443/tcp open https
bin seit 3 Stunden auf der Fehlersuche, finde aber nichts ...
hat jemand eine Ahnung woran das liegen kann?