Quick question... I hope!

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Thunderbyrd
Posts: 6
Joined: Thu Feb 14, 2013 2:34 pm

Quick question... I hope!

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Quick question... I hope!

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Quick question... I hope!

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Thunderbyrd
Posts: 6
Joined: Thu Feb 14, 2013 2:34 pm

Re: Quick question... I hope!

Post 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!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Quick question... I hope!

Post by lmiltchev »

Sure, let us know how it went.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Thunderbyrd
Posts: 6
Joined: Thu Feb 14, 2013 2:34 pm

Re: Quick question... I hope!

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Quick question... I hope!

Post by abrist »

Great, keep us informed.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Thunderbyrd
Posts: 6
Joined: Thu Feb 14, 2013 2:34 pm

Re: Quick question... I hope!

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Quick question... I hope!

Post by slansing »

Thunderbyrd
Posts: 6
Joined: Thu Feb 14, 2013 2:34 pm

Re: Quick question... I hope!

Post 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!
Locked