Linux NRPE: unable to read output

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Linux NRPE: unable to read output

Post by lmiltchev »

I am not able to reproduce the issue. I installed the linux agent (NRPE + nagios plugins) on RHEL 6 and everything is working as expected.

Code: Select all

[root@rhel61x64 linux-nrpe-agent]# uname -a
Linux rhel61x64 2.6.32-504.8.1.el6.x86_64 #1 SMP Fri Dec 19 12:09:25 EST 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@rhel61x64 linux-nrpe-agent]# cat /etc/*release
Red Hat Enterprise Linux Server release 6.7 (Santiago)
example01.PNG
What document did you follow when installing the Linux agent? Was it this one?

https://assets.nagios.com/downloads/nag ... _Agent.pdf

Can you post the entire "/tmp/linux-nrpe-agent/install.log"?

Run the following commands on the remote box (client) and show us the output:

Code: Select all

/usr/local/nagios/libexec/check_cpu_stats.sh -w 85 -c 95
/usr/local/nagios/libexec/custom_check_mem -n -w 20 -c 10
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Linux NRPE: unable to read output

Post by dlukinski »

lmiltchev wrote:I am not able to reproduce the issue. I installed the linux agent (NRPE + nagios plugins) on RHEL 6 and everything is working as expected.

Code: Select all

[root@rhel61x64 linux-nrpe-agent]# uname -a
Linux rhel61x64 2.6.32-504.8.1.el6.x86_64 #1 SMP Fri Dec 19 12:09:25 EST 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@rhel61x64 linux-nrpe-agent]# cat /etc/*release
Red Hat Enterprise Linux Server release 6.7 (Santiago)
example01.PNG
What document did you follow when installing the Linux agent? Was it this one?

https://assets.nagios.com/downloads/nag ... _Agent.pdf

Can you post the entire "/tmp/linux-nrpe-agent/install.log"?

Run the following commands on the remote box (client) and show us the output:

Code: Select all

/usr/local/nagios/libexec/check_cpu_stats.sh -w 85 -c 95
/usr/local/nagios/libexec/custom_check_mem -n -w 20 -c 10
Posting one of two install logs. (not yet check command results, no access at a moment)
You do not have the required permissions to view the files attached to this post.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Linux NRPE: unable to read output

Post by hsmith »

Please let us know what the commands look like when you have access to check.

Thanks.
Former Nagios Employee.
me.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Linux NRPE: unable to read output

Post by dlukinski »

hsmith wrote:Please let us know what the commands look like when you have access to check.

Thanks.

Here you. Check_CPU outputs and second log file
You do not have the required permissions to view the files attached to this post.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Linux NRPE: unable to read output

Post by hsmith »

Can you post the contents of /etc/xinetd.d/nrpe from the machine here?

Also, can you please answer Ludmil's question he asked a couple posts ago:
lmiltchev wrote: What document did you follow when installing the Linux agent? Was it this one?
Former Nagios Employee.
me.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Linux NRPE: unable to read output

Post by dlukinski »

hsmith wrote:Can you post the contents of /etc/xinetd.d/nrpe from the machine here?

Also, can you please answer Ludmil's question he asked a couple posts ago:
lmiltchev wrote: What document did you follow when installing the Linux agent? Was it this one?
We followed your PDF (Believe it was you who provided one) for installing Linux Agent (closed support case under my name)
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Linux NRPE: unable to read output

Post by hsmith »

Thank you for the clarification. Please let me know when you have the xinetd nrpe file for us to take a look at.
Former Nagios Employee.
me.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Linux NRPE: unable to read output

Post by dlukinski »

hsmith wrote:Thank you for the clarification. Please let me know when you have the xinetd nrpe file for us to take a look at.
Please check the screenshots for /etc/xinetd.d/nrpe content (attached)
You do not have the required permissions to view the files attached to this post.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Linux NRPE: unable to read output

Post by hsmith »

You said this is happening for scripts other than the CPU one? I believe the reason the CPU one is freaking out is because of the integer thing that it is yelling about, and that's too much data for NRPE to handle.. Can you try some other things like check_yum? I know you said they're failing, but I would like to see it.
Former Nagios Employee.
me.
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Linux NRPE: unable to read output

Post by dlukinski »

hsmith wrote:You said this is happening for scripts other than the CPU one? I believe the reason the CPU one is freaking out is because of the integer thing that it is yelling about, and that's too much data for NRPE to handle.. Can you try some other things like check_yum? I know you said they're failing, but I would like to see it.
\

Attached screenshot of what is failing (same for both RHEL EL 6.4 64-bit we tried the latest client with)
You do not have the required permissions to view the files attached to this post.
Locked