Linux NRPE: unable to read output

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Linux NRPE: unable to read output

Post by rkennedy »

Can you post the service definition for one of those services that isn't working?

Also, verify the permissions -

Code: Select all

ls -l /usr/local/nagios/libexec/
Former Nagios Employee
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Linux NRPE: unable to read output

Post by dlukinski »

rkennedy wrote:Can you post the service definition for one of those services that isn't working?

Also, verify the permissions -

Code: Select all

ls -l /usr/local/nagios/libexec/
define service {
host_name fihp-jbosdev01.konecranes.com
service_description CPU Stats
use xiwizard_nrpe_service
check_command check_nrpe!check_cpu_stats!-a '-w 85 -c
95'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
first_notification_delay 15
notification_period xi_timeperiod_24x7
contact_groups GCM
_xiwizard linux-server
register 1
}


- (works against an empty CentOS 6.x with ./fullinstall done)

Question, could you please provide instructions for compiling on RHEL 5.x / 6.x and SLES 10.x / 11.x (as well as for CentOS 6.x / 7.x and OpenSUSE 13.x / 14.x)?
- maybe ./fullinstall is not a good option to begin with?

Thanks,
Dimitri
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 »

We have a document for that: https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Why don't you try these steps and post back?
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:We have a document for that: https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Why don't you try these steps and post back?
Just one more question: I see no SuSe in the document (half of our servers would be SLES, so this is important)?
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 »

I've worked a lot with a company that is using it across multiple SLES servers. Perhaps take a look at this document: http://www.octopuscs.com/blogs/Linux/Ho ... n-openSuse

It is not our document, so I cannot verify the integrity of the source, but steps are accurate. I would use a newer NRPE in place of the version they are linking in that post, though.
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:I've worked a lot with a company that is using it across multiple SLES servers. Perhaps take a look at this document: http://www.octopuscs.com/blogs/Linux/Ho ... n-openSuse

It is not our document, so I cannot verify the integrity of the source, but steps are accurate. I would use a newer NRPE in place of the version they are linking in that post, though.
This manual no longer applies to the latest Nagios Linux agent (?)

In manual # 4
# tar zxvf nrpe-2.13.tar.gz
# cd nrpe-2.13.tar.gz
# ./configure --disable-ssl
# make all


- neither of the latest Linux NRPE agent downloads contain (./configure) to use with the manual
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 »

From my history file:

Code: Select all

 428  wget http://sourceforge.net/projects/nagios/files/nrpe-2.x/nrpe-2.14/nrpe-2.14.tar.gz
  429  tar xzf nrpe-2.14.tar.gz
  430  ls
  431  cd nrpe-2.14
  432  ls
Output of ls command from above:

Code: Select all

[root@XI5 nrpe-2.14]# ls
Changelog     docs                   Makefile.in     sample-config
common        include                nrpe.spec       SECURITY
config.guess  init-script.debian.in  nrpe.spec.in    src
config.sub    init-script.in         package         subst.in
configure     init-script.suse.in    README          update-version
configure.in  install-sh             README.Solaris
contrib       LEGAL                  README.SSL
configure is there.

Which agents are you attempting to download?
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:From my history file:

Code: Select all

 428  wget http://sourceforge.net/projects/nagios/files/nrpe-2.x/nrpe-2.14/nrpe-2.14.tar.gz
  429  tar xzf nrpe-2.14.tar.gz
  430  ls
  431  cd nrpe-2.14
  432  ls
Output of ls command from above:

Code: Select all

[root@XI5 nrpe-2.14]# ls
Changelog     docs                   Makefile.in     sample-config
common        include                nrpe.spec       SECURITY
config.guess  init-script.debian.in  nrpe.spec.in    src
config.sub    init-script.in         package         subst.in
configure     init-script.suse.in    README          update-version
configure.in  install-sh             README.Solaris
contrib       LEGAL                  README.SSL
configure is there.

Which agents are you attempting to download?
attempted linux-nrpe-agent.tar.gz and linux-nrpe-agent-offline.tar.gz (Nagios Assets)

./configure is present and works from your download, however make all fails (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 »

Do you have openssl-devel installed? If not, can you please get that installed and try once more?
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:Do you have openssl-devel installed? If not, can you please get that installed and try once more?
Same thing so far.
Why to advertise OpenSuse (or Suse or even RedHat for that matter) in Linux Server agent monitoring if none works after installing stock Nagios Linux agent?
Locked