Page 3 of 4

Re: NRPE Socket timeout

Posted: Fri Oct 11, 2019 2:44 pm
by scottwilkerson
looks like that may just be a meta package

try

Code: Select all

yum install nagios-plugins-all
I still would highly recommend the method above

Re: NRPE Socket timeout

Posted: Fri Oct 11, 2019 2:49 pm
by fsodah

Re: NRPE Socket timeout

Posted: Fri Oct 11, 2019 2:58 pm
by scottwilkerson
For future agent installations I would recommend the official installation for XI as we cannot modify/change these 3rd party guides
https://support.nagios.com/kb/article.php?id=8

Re: NRPE Socket timeout

Posted: Fri Oct 11, 2019 2:59 pm
by tgriep
On your Redhat server, please run the following commands as root and post the output so we can search the drive for the plugins and see how NRPE runs, etc.

Code: Select all

netstat -anp |grep 5666
ps -ef |grep nrpe
find / -name check_disk
Thanks.

Re: NRPE Socket timeout

Posted: Fri Oct 11, 2019 3:04 pm
by fsodah

Code: Select all


# netstat -anp | grep 5666
tcp        0      0 0.0.0.0:5666            0.0.0.0:*               LISTEN      6948/nrpe           
tcp6       0      0 :::5666   

Code: Select all

ps -ef |grep nrpe
nrpe      6948     1  0 21:21 ?        00:00:00 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -f
root     13857  2821  0 23:00 pts/0    00:00:00 grep --color=auto nrpe

Code: Select all

[root@cccccccc ~]# find / -name check_disk
[root@ccccccccc ~]# 

Code: Select all

# systemctl status nrpe.service
â—ڈ nrpe.service - Nagios Remote Program Executor
   Loaded: loaded (/usr/lib/systemd/system/nrpe.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2019-10-11 21:21:25 EEST; 1h 40min ago
     Docs: http://www.nagios.org/documentation
  Process: 6946 ExecStopPost=/bin/rm -f /var/run/nrpe/nrpe.pid (code=exited, status=0/SUCCESS)
 Main PID: 6948 (nrpe)
    Tasks: 1
   CGroup: /system.slice/nrpe.service
           └─6948 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -f

Oct 11 21:21:25 ccccccccc systemd[1]: Started Nagios Remote Program Executor.
Oct 11 21:21:25 cccccccc nrpe[6948]: Starting up daemon
Oct 11 21:21:25 ccccccccccc nrpe[6948]: Server listening on 0.0.0.0 port 5666.
Oct 11 21:21:25 ccccccccccc nrpe[6948]: Server listening on :: port 5666.
Oct 11 21:21:25 ccccccccccc nrpe[6948]: Listening for connections on port 5666
Oct 11 21:21:25 ccccccccccc nrpe[6948]: Allowing connections from: 127.0.0.1, 10.1.23.222
[root@ccccccccc ~]# systemctl restart nrpe.service
 


Re: NRPE Socket timeout

Posted: Fri Oct 11, 2019 3:09 pm
by scottwilkerson
scottwilkerson wrote:looks like that may just be a meta package

try

Code: Select all

yum install nagios-plugins-all
I still would highly recommend the method above

Re: NRPE Socket timeout

Posted: Fri Oct 11, 2019 3:12 pm
by fsodah

Code: Select all

 yum install nagios-plugins-all
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
This system is registered with an entitlement server, but is not receiving updates. You can use subscription-manager to assign subscriptions.
hpe                                                                                                                                                                          | 2.9 kB  00:00:00     
No package nagios-plugins-all available.
Error: Nothing to do

Re: NRPE Socket timeout

Posted: Fri Oct 11, 2019 3:16 pm
by scottwilkerson
I am out of any other options as we do not control these packages.

I would actually recommend removing the nrpe package installed via yum

Code: Select all

yum remove nrpe
And install using the following method
https://support.nagios.com/kb/article.php?id=8

This will setup everything you need and will also have all the plugins expected when using the Linux Wizard in Nagios XI

Re: NRPE Socket timeout

Posted: Fri Oct 11, 2019 3:19 pm
by fsodah
OK i will and update you soon ... many thanks for your help and support... really appreciated

Re: NRPE Socket timeout

Posted: Fri Oct 11, 2019 3:33 pm
by scottwilkerson
fsodah wrote:OK i will and update you soon ... many thanks for your help and support... really appreciated
No problem, good luck!