TRoy
On the PI
root@raspberrypi:~# ps -ef | grep nrpe
nagios 501 1 0 Aug26 ? 00:00:00 /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -f
root 6662 915 0 21:22 pts/1 00:00:00 grep nrpe
root@raspberrypi:~#
Also on the pi
root@raspberrypi:~# lsof -i TCP| fgrep LISTEN
sshd 489 root 3u IPv4 8266 0t0 TCP *:ssh (LISTEN)
sshd 489 root 4u IPv6 8268 0t0 TCP *:ssh (LISTEN)
nrpe 501 nagios 4u IPv4 8322 0t0 TCP *:nrpe (LISTEN)
nrpe 501 nagios 5u IPv6 8323 0t0 TCP *:nrpe (LISTEN)
apache2 629 root 4u IPv6 9242 0t0 TCP *:http (LISTEN)
apache2 5202 www-data 4u IPv6 9242 0t0 TCP *:http (LISTEN)
apache2 5203 www-data 4u IPv6 9242 0t0 TCP *:http (LISTEN)
apache2 5204 www-data 4u IPv6 9242 0t0 TCP *:http (LISTEN)
apache2 5205 www-data 4u IPv6 9242 0t0 TCP *:http (LISTEN)
apache2 5206 www-data 4u IPv6 9242 0t0 TCP *:http (LISTEN)
root@raspberrypi:~#
On the Nagios Server
root@tgcs017:/usr/local/nagios/etc/objects# nmap -Pn -p T:5666 10.2.8.72
Starting Nmap 7.01 (
https://nmap.org ) at 2016-08-28 21:21 EDT
Nmap scan report for raspberrypi.our.network.tgcsnet.com (10.2.8.72)
Host is up (0.00062s latency).
PORT STATE SERVICE
5666/tcp open nrpe
Seems to be open ???
MAC Address: B8:27:EB:D9:3E:C0 (Raspberry Pi Foundation)
Nmap done: 1 IP address (1 host up) scanned in 1.78 seconds
root@tgcs017:/usr/local/nagios/etc/objects#