Plugins error

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
pendrgn
Posts: 5
Joined: Sat Mar 31, 2012 12:24 pm

Plugins error

Post 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'
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Plugins error

Post by agriffin »

Did you have the OpenSSL development headers installed when you compiled the plugins? They should be in the package libssl-dev.
pendrgn
Posts: 5
Joined: Sat Mar 31, 2012 12:24 pm

Re: Plugins error

Post 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?
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Plugins error

Post 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.
pendrgn
Posts: 5
Joined: Sat Mar 31, 2012 12:24 pm

Re: Plugins error

Post by pendrgn »

Yep, there's a whole bunch of files with .h extension. Assuming the files are good, now what?
pendrgn
Posts: 5
Joined: Sat Mar 31, 2012 12:24 pm

Re: Plugins error

Post by pendrgn »

Solved the problem. Started from scratch using fresh download and plugins compiled without problems. Thanks again for your help. pendrgn
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Plugins error

Post by agriffin »

No problem, glad you got it working!
Locked