Too many NRPE Connection
Re: Too many NRPE Connection
Hi Slansing,
The check_interval is 5mins., so if the checks are being scheduled at the same., i should see mutilple connections made only every 5mins.
But here every minute the connections are made in high number.
The check_interval is 5mins., so if the checks are being scheduled at the same., i should see mutilple connections made only every 5mins.
But here every minute the connections are made in high number.
Re: Too many NRPE Connection
Are you using xinetd with nrpe? If so, you may need to increase the per source limit of xinetd.
From the NRPE troubleshooting doc:
http://assets.nagios.com/downloads/nagi ... utions.pdf
Add the following lines to the definition:
And then restart nrpe:
From the NRPE troubleshooting doc:
http://assets.nagios.com/downloads/nagi ... utions.pdf
This cause is rare, but worth mentioning. If you use your remote host's nrpe server as a nrpe node proxy (sending all checks for the
network segment to a single nrpe enabled server behind a firewall), or if you are doing a large number of nrpe checks in relatively short
time period on one remote host, you may hit the maximum connection limit of nrpe. This is technically an xinetd setting and can be
uncapped by editing the file:
Code: Select all
/etc/xinetd.d/nrpeCode: Select all
per_source = UNLIMITED
instances = UNLIMITEDCode: Select all
service xinetd restartFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Too many NRPE Connection
Hi Abrist,
NRPE is runs under inetd. It is an HP-UX server.
Below is inetd entry for NRPE.
nrpe stream tcp nowait nagios /opt/nrpe/bin/nrpe nrpe -i -c /opt/nrpe/etc/nrpe.cfg
NRPE is runs under inetd. It is an HP-UX server.
Below is inetd entry for NRPE.
nrpe stream tcp nowait nagios /opt/nrpe/bin/nrpe nrpe -i -c /opt/nrpe/etc/nrpe.cfg
Re: Too many NRPE Connection
Are the checks getting updated in the UI every minute? Or do they only update every 5minutes like configured? If they are indeed updating every minute on the details page, then there may be an issue with interval configuration or with inherited checks from a hostgroup/template/servicegroup/etc.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Too many NRPE Connection
Hi Abrist,
The checks are updating every 5min in UI as defined in the check_interval.
The checks are updating every 5min in UI as defined in the check_interval.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Too many NRPE Connection
Okay, so what that is basically saying is that either those connections are just 'ghost' connections of some sort, or that they are being held open on the remote host by something other than Nagios. We should see the checks being updated much more rapidly in the XI interface if they are actually running additional checks against that system and returning them. Are additional copies of the NRPE daemon actually running on the system?
Re: Too many NRPE Connection
Hi Slansing,
How can I check whether the additional copies of NRPE are running.
I see the NRPE is running under inetd. And 'ps -ef | grep nrpe' is also not showing any nrpe process.
How can I check whether the additional copies of NRPE are running.
I see the NRPE is running under inetd. And 'ps -ef | grep nrpe' is also not showing any nrpe process.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Too many NRPE Connection
If it is running under inetd running
should show all processes. If it show nothing it is likely not running
you could run
Code: Select all
ps -ef | grep nrpeyou could run
Code: Select all
netstat -pln|grep 5666Re: Too many NRPE Connection
If nrpe were running as a stand along daemon, you would see something like this:
BTW, have you tried restarting the inetd daemon?
Code: Select all
ps -ef | grep nrpe
nagios 1522 1 0 Feb24 ? 00:02:03 /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -dBe sure to check out our Knowledgebase for helpful articles and solutions!