Hello All,
I am installing a nagios system in a remote network and all is well with it. I am trying to compile the plugins on a remote server for NRPE, however, and I've run into an issue:
check_http.c:312: error: ssl_version undeclared
Normally, I would just load openssl-devel, and it would compile. I've had to do this every time I have installed or configured for nagios. Only this time, after loading openssl_devel, it didn't work!
Any ideas?
This is RHEL 6.4, Nagios 3.5, Nagios tools 1.4.16.
I'm perplexed.
nagios-plugins won't compile (ssl_version undeclared)
Re: nagios-plugins won't compile (ssl_version undeclared)
Here are the open ssl packages installed:
[root@xyz123 nagios-plugins-1.4.16]# rpm -qa |grep ssl
openssl-devel-0.9.8e-26.el5_9.1
openssl-0.9.8e-26.el5_9.1
[root@xyz123 nagios-plugins-1.4.16]# rpm -qa |grep ssl
openssl-devel-0.9.8e-26.el5_9.1
openssl-0.9.8e-26.el5_9.1
Re: nagios-plugins won't compile (ssl_version undeclared)
Try installing libssl-dev and reconfiguring.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: nagios-plugins won't compile (ssl_version undeclared)
I believe openssl-devel is the RH equivalent of libssl-dev.
And a minor correction: this box is running RHEL 5.9. THe main Nagios server is on RHEL 6.4.
And a minor correction: this box is running RHEL 5.9. THe main Nagios server is on RHEL 6.4.
Re: nagios-plugins won't compile (ssl_version undeclared)
This could be a known bug (that apparently?) never got fixed. See: http://sourceforge.net/mailarchive/mess ... d=29560342
You could try to update openssl and openssl-devel beforehand, and then try to build the package. If it does not work, then you could move to the "fix" above.After looking at the file, I noticed that 'ssl_version' variable was declared within an '#ifdef HAVE_SSL'. After moving the 'ssl_version' declaration outside of the '#ifdef', it compiled fine. I couldn't find anything about this on Google, so I'm sending you this email to make sure you are aware of the issue.
Code: Select all
yum update openssl openssl-devel
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.
"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.