I wanted to check some basic things in a ubuntu server, Like, disk space, PING,etc. I installed NRPE from the below source
https://support.nagios.com/kb/article.php?id=515#Ubuntu
But NRPE is not running when I check the status.
Also if I try
,NRPE is running otherwise it is not/etc/init.d/nagios-nrpe-server restart
I'm getting this error
On Nagios Server
On ClientCHECK_NRPE: Error - Could not connect to client IP address: Connection reset by peer
#service nrpe status
● nrpe.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
Aug 14 08:26:24 Prodcampaigndaemon-1 systemd[1]: Stopped Nagios Remote Plugin Executor.
Aug 14 08:26:24 Client systemd[1]: Started Nagios Remote Plugin Executor.
Aug 14 08:26:24 Client nrpe[27076]: Starting up daemon
Aug 14 08:26:24 Client nrpe[27076]: Server listening on 0.0.0.0 port 5666.
Aug 14 08:26:24 Client nrpe[27076]: Server listening on :: port 5666.
Aug 14 08:26:24 Client nrpe[27076]: Warning: Daemon is configured to accept command arguments from clients!
Aug 14 08:26:24 Client nrpe[27076]: Listening for connections on port 5666
Aug 14 08:26:24 Client nrpe[27076]: Allowing connections from: 127.0.0.1,::1,10.30.30.10
Aug 14 09:05:17 Client systemd[1]: Stopping Nagios Remote Plugin Executor...
Aug 14 09:05:17 Client systemd[1]: Stopped Nagios Remote Plugin Executor.
I'm getting Socket timed out error# /etc/init.d/nagios-nrpe-server start
[ ok ] Starting nagios-nrpe-server (via systemctl): nagios-nrpe-server.service.
root@Client:/home/rootusr# /etc/init.d/nagios-nrpe-server restart
[ ok ] Restarting nagios-nrpe-server (via systemctl): nagios-nrpe-server.service.
root@Client:/home/rootusr# /etc/init.d/nagios-nrpe-server status
● nagios-nrpe-server.service - LSB: Start/Stop the Nagios remote plugin execution daemon
Loaded: loaded (/etc/init.d/nagios-nrpe-server; bad; vendor preset: enabled)
Active: active (running) since Tue 2018-08-14 09:33:46 UTC; 12s ago
Docs: man:systemd-sysv-generator(8)
Process: 42314 ExecStop=/etc/init.d/nagios-nrpe-server stop (code=exited, status=0/SUCCESS)
Process: 42321 ExecStart=/etc/init.d/nagios-nrpe-server start (code=exited, status=0/SUCCESS)
Tasks: 1
Memory: 1.3M
CPU: 11ms
CGroup: /system.slice/nagios-nrpe-server.service
└─42334 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
Aug 14 09:33:46 Client systemd[1]: Starting LSB: Start/Stop the Nagios remote plugin execution daemon...
Aug 14 09:33:46 Client nagios-nrpe-server[42321]: * Starting nagios-nrpe nagios-nrpe
Aug 14 09:33:46 Client nagios-nrpe-server[42321]: ...done.
Aug 14 09:33:46 Client systemd[1]: Started LSB: Start/Stop the Nagios remote plugin execution daemon.
Aug 14 09:33:46 Client nrpe[42334]: Starting up daemon
Aug 14 09:33:46 Client nrpe[42334]: Server listening on 0.0.0.0 port 5666.
Aug 14 09:33:46 Client nrpe[42334]: Server listening on :: port 5666.
Aug 14 09:33:46 Client nrpe[42334]: Listening for connections on port 0
Aug 14 09:33:46 Client nrpe[42334]: Allowing connections from: 127.0.0.1 <nagios Private IP address>
Please let me know how to resolve this issue
Regards,
Siddarth Hegde