Page 2 of 3
Re: Problems: CHECK_NRPE: Socket timeout after 10 seconds.
Posted: Tue Feb 19, 2013 3:18 pm
by slansing
We need to see the actual command as it is ran from the Nagios command line, example:
Code: Select all
/../../check_nrpe -H remote.host.ip. -c check -a arguments
etc..
Re: Problems: CHECK_NRPE: Socket timeout after 10 seconds.
Posted: Tue Feb 19, 2013 3:42 pm
by psyllex
It's ok. I just purge everything. It looks like I had a previous installation that I think the current installation was fighting against. Not entirely sure. Going to reinstall everything and see how it goes. I didn't have this the first time I installed it on our system; but for some reason we decided to purge that server and as such we attempted to remove nagios but I don't believe it was actually truly removed. As well the last installation was done with the package manager but this installation was done from source.
Re: Problems: CHECK_NRPE: Socket timeout after 10 seconds.
Posted: Tue Feb 19, 2013 3:53 pm
by sreinhardt
Oh yes packages vs source and having multiple versions installed certainly can cause issues. Let us know how it goes!
Re: Problems: CHECK_NRPE: Socket timeout after 10 seconds.
Posted: Tue Feb 19, 2013 3:54 pm
by lmiltchev
Can you show the command definition of "check_procs" in the nrpe.cfg file on the client, and the exact command that you are running from the command line, along with the output of it?
Re: Problems: CHECK_NRPE: Socket timeout after 10 seconds.
Posted: Tue Feb 19, 2013 3:57 pm
by psyllex
sreinhardt wrote:Oh yes packages vs source and having multiple versions installed certainly can cause issues. Let us know how it goes!
Yes I just hope I got it all this time.
Re: Problems: CHECK_NRPE: Socket timeout after 10 seconds.
Posted: Tue Feb 19, 2013 4:27 pm
by lmiltchev
We will keep the topic open, so keep us updated.
Re: Problems: CHECK_NRPE: Socket timeout after 10 seconds.
Posted: Tue Feb 19, 2013 9:04 pm
by psyllex
Ok. I got it all ironed out (well mostly). It looks like I didn't sudo or wasn't root in a couple of spots when I installed the nagios plugins and nrpe. I just kinda zipped through it without paying attention and that is where a lot of the problems were coming from.
Somehow we need to tell everyone doing instructions (for Debian or Ubuntu) that it's not openssl-dev it's libssl-dev, which is the package you want. If I were a noob (and I am barely more than a noob) I would never think to try libssl-dev when most places say to use apt-get install openssl-dev. I don't know if anyone else has experienced this.
The only I was having after that is with Total Processes. In the remote nrpe.cfg it's defined as:
Code: Select all
command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s
command[check_local_procs]=/usr/local/nagios/libexec/check_procs -w 150 -200
I'm not sure if you are supposed to pick one (that's what I ended up doing just using the local and I commented the other one out) or if they are aggregate at the end or what. I changed it to:
Code: Select all
### command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s
command[check_procs]=/usr/local/nagios/libexec/check_procs -w 150 -200
and now it's running fine. I really don't need zombie processes. But I'm going to try and figure that out just because....it'll bug me if I don't.
I know there are 100 different directions out there but I wrote up some for Ubuntu 12.04 precisesly how I did it, which I use and it seems to install perfectly everytime. It doesn't vary too much from what the team puts out....anyway my point is that I was going to write it all out Nagios->Nagios-Plugins->NRPE instructions for Ubuntu 12.04....and I can test it on one of my servers at home. Then maybe some of you fine people can mull over it than I'll throw it up on Ubuntu Forums and possibly help guide someone else. If that's cool with everyone here.
Re: Problems: CHECK_NRPE: Socket timeout after 10 seconds.
Posted: Wed Feb 20, 2013 9:39 am
by yancy
psyllex,
What is the check_procs definition in etc/nrpe.cfg (on the client machine)
-Yancy
Re: Problems: CHECK_NRPE: Socket timeout after 10 seconds.
Posted: Wed Feb 20, 2013 12:37 pm
by psyllex
yancy wrote:psyllex,
What is the check_procs definition in etc/nrpe.cfg (on the client machine)
-Yancy
The definition on the client (remote host) is the one I posted above. Which is the:
Code: Select all
command[check_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
That is the one I changed a little to match the definition on the server which actually had two definitions for check_procs
Re: Problems: CHECK_NRPE: Socket timeout after 10 seconds.
Posted: Wed Feb 20, 2013 12:59 pm
by abrist
You should be able to use both of the remote commands. You just need to remember to change the command that the service definition (on the nagios server) uses if you change the command name in the remote nrpe.cfg file. I assume the service definition command on the nagios server was "check_procs" not "check_local_procs" which is why changing the nrpe command name to "check_procs" resolved the issue.