Page 6 of 6

Re: New NRPE error - error receiving data from daemon

Posted: Tue Mar 05, 2013 5:25 pm
by psyllex
psyllex wrote:
abrist wrote:Eureka, looks like it is working. Change your check in XI to match the check from the cli that worked. Report back.
Yeah it looks like that might have done it. I'm waiting till all my services run through their checks to make sure. Awesome thanks people.
I don't know...this me your talking to...I seem to have about 5x the problems of the average users. But I'll let you know.

Re: New NRPE error - error receiving data from daemon

Posted: Tue Mar 05, 2013 5:36 pm
by slansing
Yes he was referring to changing your configurations in Xi to match the form which you ran through the command line that worked. In other words alter them and remove the -n flags.

Re: New NRPE error - error receiving data from daemon

Posted: Tue Mar 05, 2013 5:38 pm
by abrist
XI has a lot of moving parts. In can take some time, thought, and trial and error before all pieces come together in your mind. It is a blessing and a curse of software so extensible. You can do just about anything with nagios and XI, you just have to know what you want to do and how all the pieces work together. As you and most others have undoubtedly run into previously, the single most important component in learning a complex piece of software is time. You are doing fine.

Re: New NRPE error - error receiving data from daemon

Posted: Tue Mar 05, 2013 5:42 pm
by psyllex
Alright...one last problem on my other server. It's saying that NRPE: Command 'check_somecommand' not defined.

I looked in /usr/lib/nagios/plugins and I see all of the plugins there. I checked the nrpe.cfg on both servers and their identical. Any thoughts.

Re: New NRPE error - error receiving data from daemon

Posted: Tue Mar 05, 2013 5:48 pm
by abrist
psyllex wrote:Alright...one last problem on my other server. It's saying that NRPE: Command 'check_somecommand' not defined.
This error usually is caused by a slight misspelling between the command directive in the nrpe.cfg on the remote host and the command specified in the field $ARG1$ in XI.

EDIT: If you just added the command to nrpe.cfg, make sure that you restart the nrpe daemon on the remote host for the changes to take effect.

Re: New NRPE error - error receiving data from daemon

Posted: Tue Mar 05, 2013 7:32 pm
by psyllex
abrist wrote:
psyllex wrote:Alright...one last problem on my other server. It's saying that NRPE: Command 'check_somecommand' not defined.
This error usually is caused by a slight misspelling between the command directive in the nrpe.cfg on the remote host and the command specified in the field $ARG1$ in XI.

EDIT: If you just added the command to nrpe.cfg, make sure that you restart the nrpe daemon on the remote host for the changes to take effect.
Again I didn't actually put anything in the nrpe.cfg. That's what's confusing about XI. If I've never actually touched the nrpe.cfg file.....how can it possibly be screwed up? Just curious. My nrpe.cfg file for my server B is exactly like the one for Server A which is running just fine.

Re: New NRPE error - error receiving data from daemon

Posted: Tue Mar 05, 2013 7:51 pm
by psyllex
I just did the following on my server B

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 10.10.0.102
/usr/local/nagios/libexec/check_nrpe -H 10.10.0.102 -t 30 -c check_users -a '-w 5 -c 10'
I got : NRPE v2.12 for the first one.
I got : USERS OK-1 users currently logged in !users=1;5;10;0

which is the same response I got for Server A....but I still see critical for Server B on everything except Load and Ping.

Re: New NRPE error - error receiving data from daemon

Posted: Tue Mar 05, 2013 9:26 pm
by psyllex
Alright re-installed the nagios-nrpe-server agent. Did a few other housecleaning type things and I'm golden now.

I'm not really sure why my Server B wasn't acting the same as Server B as they had essentially the same files. It must have been some of that house cleaning I did. I had Nagios Core ontop of Nagios Core on top of XI twice.

So this thread is over!!! Woo hoo! Now I can go to the project lead and beg for money to buy 100 nodes!

Re: New NRPE error - error receiving data from daemon

Posted: Wed Mar 06, 2013 10:41 am
by sreinhardt
Thanks for the update and glad to hear its working! Closing