NRPE Socket timeout

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRPE Socket timeout

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: NRPE Socket timeout

Post by fsodah »

scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRPE Socket timeout

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NRPE Socket timeout

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: NRPE Socket timeout

Post 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
 

scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRPE Socket timeout

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: NRPE Socket timeout

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRPE Socket timeout

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: NRPE Socket timeout

Post by fsodah »

OK i will and update you soon ... many thanks for your help and support... really appreciated
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRPE Socket timeout

Post by scottwilkerson »

fsodah wrote:OK i will and update you soon ... many thanks for your help and support... really appreciated
No problem, good luck!
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked