nagios-plugins 1.4.16 has problem with make

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.
Locked
User avatar
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

nagios-plugins 1.4.16 has problem with make

Post by jssingh »

I was trying to install nagios-plugins-1.4.16 on my machine and when I did a make it gave this error:
check_http.c: In function 'process_arguments':
check_http.c:312: error: 'ssl_version' undeclared (first use in this function)
check_http.c:312: error: (Each undeclared identifier is reported only once
check_http.c:312: error: for each function it appears in.)
make[2]: *** [check_http.o] Error 1
make[2]: Leaving directory `~/nagios-plugins-1.4.16/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `~/nagios-plugins-1.4.16'
make: *** [all] Error 2
I then tried installing version 1.4.15 and had no problems. I didn't get this error on the last machine I installed 1.4.16 on.

The one that got the error is:
Red Hat Enterprise Linux Workstation release 6.4 (Santiago)

and the machine didn't give an error is:
SUSE Linux Enterprise Server 11 (x86_64)

is there an issue with redhat? Should configure have caught the problem?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagios-plugins 1.4.16 has problem with make

Post by abrist »

Do you have openssl and openssl-devel?
Is openssl installed:

Code: Select all

which openssl
Do you have the headers (for Redhat/CentOS):

Code: Select all

yum list installed | grep openssl
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
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

Re: nagios-plugins 1.4.16 has problem with make

Post by jssingh »

ah, thanks. openssl is installed, but openssl-devel is not. I'm pretty sure that's the issue, since I was doing a configure for nrpe and got this error:
checking for SSL headers... configure: error: Cannot find ssl headers
Shouldn't configure for the nagios plugins have caught that error as well?
User avatar
ruffsense
Posts: 140
Joined: Thu Apr 11, 2013 12:40 am

Re: nagios-plugins 1.4.16 has problem with make

Post by ruffsense »

SUSE does not use yum :?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagios-plugins 1.4.16 has problem with make

Post by abrist »

ruffsense wrote:SUSE does not use yum :?
Missed that you were using SUSE. The package you are looking for is:

Code: Select all

libssl-dev
If you use zypper:

Code: Select all

zypper install libssl-dev
Or just grab it with yast. Once the package is installed, rebuild nrpe/nagios plugins.
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
jssingh
Posts: 110
Joined: Mon Apr 29, 2013 4:55 pm

Re: nagios-plugins 1.4.16 has problem with make

Post by jssingh »

no worries. It worked on SUSE, I was having the issues on Redhat. Once I installed openssl-devel everything worked!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagios-plugins 1.4.16 has problem with make

Post by abrist »

great! lockin' 'er up!
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.
Locked