Page 1 of 1

Plugins error

Posted: Sun Jun 17, 2012 10:23 am
by pendrgn
Hi all, I'm having a problem installing Plugins on Ubuntu 11.10. I installed Nagios with out problem and it seems to be running fine. After installing Plugins I noticed the Check_SNMP plugin was missing, apparently it doesn't compile unless Net-SNMP is installed. So after installing Net-SNMP I tried to install Plugins again but now I'm getting the below errors. I'm new to both Linux and Nagios and would appreciate any suggestions that would help resolve this issue. Thanks, pendrgn


check_http.o: In function `check_http':
/home/sysadm/Downloads/nagios-plugins-1.4.15/plugins/check_http.c:883: undefined reference to `np_net_ssl_read'
/home/sysadm/Downloads/nagios-plugins-1.4.15/plugins/check_http.c:924: undefined reference to `np_net_ssl_cleanup'
/home/sysadm/Downloads/nagios-plugins-1.4.15/plugins/check_http.c:879: undefined reference to `np_net_ssl_write'
/home/sysadm/Downloads/nagios-plugins-1.4.15/plugins/check_http.c:810: undefined reference to `np_net_ssl_init_with_hostname'
/home/sysadm/Downloads/nagios-plugins-1.4.15/plugins/check_http.c:812: undefined reference to `np_net_ssl_check_cert'
/home/sysadm/Downloads/nagios-plugins-1.4.15/plugins/check_http.c:813: undefined reference to `np_net_ssl_cleanup'

Re: Plugins error

Posted: Mon Jun 18, 2012 9:15 am
by agriffin
Did you have the OpenSSL development headers installed when you compiled the plugins? They should be in the package libssl-dev.

Re: Plugins error

Posted: Mon Jun 18, 2012 10:15 pm
by pendrgn
Thanks for the reply. I believe openssl was loaded before compiling but not openssl-dev. How can i check for the headers you mentioned?

Re: Plugins error

Posted: Tue Jun 19, 2012 10:53 am
by agriffin
You should have a bunch of files with a .h file extension in the folder /usr/include/openssl. If you see 'em, you're good.

Re: Plugins error

Posted: Tue Jun 19, 2012 8:23 pm
by pendrgn
Yep, there's a whole bunch of files with .h extension. Assuming the files are good, now what?

Re: Plugins error

Posted: Tue Jun 19, 2012 9:06 pm
by pendrgn
Solved the problem. Started from scratch using fresh download and plugins compiled without problems. Thanks again for your help. pendrgn

Re: Plugins error

Posted: Wed Jun 20, 2012 9:04 am
by agriffin
No problem, glad you got it working!