Page 1 of 2

Quick question... I hope!

Posted: Thu Feb 14, 2013 2:48 pm
by Thunderbyrd
Hello everyone, new to the forums and Nagios in general.

I've been working on migrating a Nagios core 3.1.0 installation from an old linux box to a new one.
With a few minor speed bumps I've gotten everything looking good with a few small exceptions.

The biggest issue that remains is this:
I have two nrpe checks that are returning with a 127 error.

From my commands.cfg (these are the commands I'm using to check event logs on a windows server.)
# 'check_event_log' command definition
define command {
command_name check_event_log
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c CheckEventLog -a filter=new file=system file=application MaxWarn=40 MaxCrit=50 filter-generated=\>12h filter+eventType==error truncate=1023 unique descriptions "syntax=%severity%: %source%: %message% (%count%)"
}

and
# 'check_event_log_diskerror' command definition
define command {
command_name check_event_log_diskerror
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c CheckEventLog -a filter=new file=system MaxWarn=1 MaxCrit=2 filter-generated=\>12h filter+eventSource==disk truncate=1023 unique descriptions "syntax=%severity%: %source%: %message% (%count%)"
}

Check_nrpe is in my /usr/local/nagios/libexec folder and I'm using NSClient++ on the windows computers.

Re: Quick question... I hope!

Posted: Thu Feb 14, 2013 3:57 pm
by abrist
Did you preserve the same ip from the old box to the new one? If not, you will have to edit your nsclient configs on the remote widows hosts. Do you have any other nrpe-based checks that are working on those same hosts that are failing?

Re: Quick question... I hope!

Posted: Thu Feb 14, 2013 4:15 pm
by lmiltchev
I am not sure about this one, but it may be a length issue. You can try adding "truncate=800" to your command definitions, and try running these checks again.

Re: Quick question... I hope!

Posted: Thu Feb 14, 2013 4:44 pm
by Thunderbyrd
Thank you both for your replys!

To abrist - Yes were using the same IP. We have about 35 servers are being monitored so far so I tried to reduce the time needed for changes to config files or nsclient on the client side.

To lmitchev- I shall give that a try and let you know how what happens!

Re: Quick question... I hope!

Posted: Thu Feb 14, 2013 5:03 pm
by lmiltchev
Sure, let us know how it went.

Re: Quick question... I hope!

Posted: Fri Feb 15, 2013 2:40 pm
by Thunderbyrd
To lmitchev- I added "truncate=800" and I'm still getting the same error reporting on the nagios webclient.

I've yet to test this via the command line, I shall be trying that next to see if it can give me anymore info to help fix the error.

Re: Quick question... I hope!

Posted: Fri Feb 15, 2013 2:47 pm
by abrist
Great, keep us informed.

Re: Quick question... I hope!

Posted: Fri Feb 15, 2013 3:11 pm
by Thunderbyrd
Ok so I just ran:
/usr/local/nagios/libexec/check_nrpe -H localhost
This is what i get:
/usr/local/nagios/libexec/check_nrpe: error while loading shared libraries: libssl.so.0.9.8: cannot open shared object file: No such file or directory

When I look in the folder libssl.so.0.9.8 is missing...

I installed the plugins by downloading the nagios-plugins-1.4.16.tar.gz file.
./configure
make
make install

Did this not install check_nrpe correctly?

Re: Quick question... I hope!

Posted: Fri Feb 15, 2013 3:15 pm
by slansing

Re: Quick question... I hope!

Posted: Fri Feb 15, 2013 3:31 pm
by Thunderbyrd
slansing wrote:Lets grab this one:

http://sourceforge.net/projects/nagios/ ... irror=iweb

And follow this guide to install it properly:

http://nagios.sourceforge.net/docs/nrpe/NRPE.pdf

I've downloaded the nrpe tar:
"./configure" runs with one error - cannot find ssl headers

when I try to "make all" I get -
root@****:/home/nagios/Desktop/Nagios/nrpe-2.13# make all
make: *** No rule to make target `all'. Stop.

At the very least you've pointed me in the right direction! So for that I thank you greatly!