Page 1 of 1

Error with Solaris NRPE agent

Posted: Mon Jun 02, 2014 7:23 am
by sonuma
Hello,

I installed Solaris NRPE agent with following procedure
http://assets.nagios.com/downloads/nagi ... _Agent.pdf

Then, i follow this procedure
http://linuxdrops.com/how-to-monitor-re ... gios-nrpe/

-After, when i launch a check_nrpre from nagios to Solaris, i receive this error :

CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages

-When i check connection with "telnet SERVER 5666" from nagios, i receive this error :

ld.so.1: nrpe: fatal: libc.so.1: version `SUNW_1.22.7' not found (required by file /opt/nagios/bin/nrpe)

An solution for me ?

Re: Error with Solaris NRPE agent

Posted: Mon Jun 02, 2014 9:29 am
by abrist
You are missing a library which is most likely not available without an upgrade. What version of Solaris are you running?

Re: Error with Solaris NRPE agent

Posted: Tue Jun 03, 2014 2:21 am
by sonuma
Hello,

uname -a
SunOS archive1 5.10 Generic_144489-17 i86pc i386 i86pc

cat /etc/release
Oracle Solaris 10 9/10 s10x_u9wos_14a X86
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
Assembled 11 August 2010

An upgrade of Solaris is mandatory ?

Re: Error with Solaris NRPE agent

Posted: Tue Jun 03, 2014 12:18 pm
by abrist
Well, not mandatory, but necessary for the agent. But I cannot guarantee that an upgrade will get you that library. My suggestion would be to use check_by_ssh instead:
http://assets.nagios.com/downloads/nagi ... ng_SSH.pdf

Re: Error with Solaris NRPE agent

Posted: Wed Jun 04, 2014 3:13 am
by sonuma
Ok,

Where can I download the check_by_ssh plugin ? because it doesn't exist on my Nagios server and i cannot found on Exchange Nagios Download site

I receive error (Return code of 127 is out of bounds - plugin may be missing)

Re: Error with Solaris NRPE agent

Posted: Wed Jun 04, 2014 7:56 am
by sonuma
Hi,

I found nagios-plugins-1.3.0.tar.gz with check_by_ssh.c plugin inside

I upload to Nagios Server and launch a immediate check, now i receive "(null)" result error ?

Re: Error with Solaris NRPE agent

Posted: Wed Jun 04, 2014 9:52 am
by sonuma
News... i successfully install check_by_ssh Executable.

I try the command :

/usr/local/nagios/libexec/check_by_ssh -i /home/nagios/.ssh/id_rsa -H IPADRESS -C "/usr/local/nagios/libexec/check_disk -w 20% -c 10%"

I have same error of NRPE

Remote command execution failed: ld.so.1: check_disk: fatal: libc.so.1: version `SUNW_1.22.7' not found (required by file /opt/nagios/libexec/check_disk)

Re: Error with Solaris NRPE agent

Posted: Wed Jun 04, 2014 1:29 pm
by abrist
Looks like the plugins on the solaris box needs to be recompiled, or you need to hunt down a different package for nagios-plugins on the solaris box. Many people use the packages from:
http://www.opencsw.org/

Re: Error with Solaris NRPE agent

Posted: Thu Jun 05, 2014 3:23 am
by sonuma
Ok now,

-I copy check plugin on Solaris, recompiled from last Nagios Plugin TAR

-After, I use the command but I receive "host key failed verification"
Solution => add no-FQDN name to Solaris Server in Know host, with "ssh SERVERNAME" command.

Now, all it's ok

Thanks