Re: [Nagios-users] Nagios-plugins on Solaris 10 with Sun Studio 12
Hello, Why not using the GCC compiler located under /usr/sfw/bin. It works perfectly for Solaris 10 x86 and Sparc (setenv CC /usr/sfw//bin/gcc; setenv MAKE /usr/sfw/bin/gmake; setenv AR /usr/sfw/bbin/gar) Regards, Vincent Alloo TI France Design Systems Operations Manager Europe, Middle East and Africa IT Services Texas Instruments France E-Mail: v-al...@ti.commailto:v-al...@ti.com Phone: +33 4 93 22 26 97 Mobile: +33 6 82 13 00 80 From: Brandon Munger [mailto:bmun...@edison.edu] Sent: Wednesday, December 17, 2008 1:42 AM To: James Pratt Cc: Nagios Users Subject: Re: [Nagios-users] Nagios-plugins on Solaris 10 with Sun Studio 12 James Pratt wrote: -Original Message- From: Brandon Munger [mailto:bmun...@edison.edu] Sent: Tuesday, December 16, 2008 3:46 PM To: nagios-users@lists.sourceforge.netmailto:nagios-users@lists.sourceforge.net Subject: [Nagios-users] Nagios-plugins on Solaris 10 with Sun Studio 12 Hello Nagios Users, I have been attempting to compile Nagios plugins and NRPE with Sun Studio so I can deploy the binaries to a number of machines. I have read the documentation available but I cannot get a successful compile. This command I am using is: CC=cc CFLAGS='-DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4' ./configure --with-ps-command=/usr/bin/ps -eo 's uid pid ppid vsz rss pcpu etime comm args' --with-ps-format='%s %d %d %d %d %d %f %s %s %n' --with-ps-cols=10 --with-ps- varlist='procstat,;procuid,;procpid,;procppid,;procvsz,;procrss,;procpcpu,pr ocetime,procprog,pos' The make output I get is: Making all in plugins make[2]: Entering directory `/export/home/bmunger/downloads/nagios-plugins-1.4.13/plugins' source='check_apt.c' object='check_apt.o' libtool=no \ DEPDIR=.deps depmode=none /bin/bash ../build-aux/depcomp \ cc -DLOCALEDIR=\/usr/local/nagios/share/locale\ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/pgsql -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 -c check_apt.c check_apt.c, line 450: warning: dubious escape: \% /bin/bash ../libtool --tag=CC --mode=link cc -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 -L. -o check_apt check_apt.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a runcmd.o -lnsl -lsocket -ldl cc -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 -o check_apt check_apt.o utils.o runcmd.o -L/export/home/bmunger/downloads/nagios-plugins-1.4.13/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lsocket -ldl Undefined first referenced symbol in file alloca ../gl/libgnu.a(regex.o) ld: fatal: Symbol referencing errors. No output written to check_apt make[2]: *** [check_apt] Error 1 make[2]: Leaving directory `/export/home/bmunger/downloads/nagios-plugins-1.4.13/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/home/bmunger/downloads/nagios-plugins-1.4.13' make: *** [all] Error 2 Thank you for your help. Brandon Hi Brandon, If there is a configure switch to disable the check_apt plugin, you could try that. I always found it quite difficult to get Nagios running well on sun/sparc. Please let us know how it goes! :) jamie -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.netmailto:Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Hi Jamie, I couldn't find a way to disable the check_apt plugin. I tried a few flags with the same result. I have a feeling that the problem will be with all the plugins, and that apt is just the first one attempted. Thanks. Brandon CONFIDENTIALITY: This e-mail (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this e-mail in error, please notify the sender and delete this e-mail from your system. -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net
Re: [Nagios-users] Nagios-plugins on Solaris 10 with Sun Studio 12
Hi Richard, I have tried to compile with those options on plugins with this output: gcc -g -O2 -o check_http check_http.o sslutils.o netutils.o utils.o -L/export/home/bmunger/downloads/nagios-plugins-1.4.13/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lresolv /usr/local/lib/libintl.so -L/usr/local/lib -L/usr/local/ssl/lib -L/usr/openwin/lib -L/usr/lib -L/usr/local/BerkeleyDB.4.2/lib -L/usr/X11R6/lib /usr/local/lib/libiconv.so -lsec -lc -lnsl -lsocket -ldl -R/usr/local/lib -R/usr/local/lib Undefined first referenced symbol in file SSL_load_error_strings sslutils.o SSL_write sslutils.o OpenSSL_add_all_algorithms sslutils.o SSL_set_fd sslutils.o SSL_freesslutils.o SSL_readsslutils.o SSLv23_client_methodsslutils.o SSL_new sslutils.o SSL_CTX_new sslutils.o SSL_connect sslutils.o SSL_shutdownsslutils.o SSL_CTX_freesslutils.o SSL_library_initsslutils.o ld: fatal: Symbol referencing errors. No output written to check_http collect2: ld returned 1 exit status make[2]: *** [check_http] Error 1 Do I need any additional packages? Brandon Munger Unix Administrator Edison State College (239)985-8362 x1862 Richard Quintin wrote: For what it's worth here's what we do for our Solaris SPARC boxes: Plugins ./configure --prefix=/apps/username --without-apt --without-mysql --without-smbclient --without-world-permissions --with-perl=/usr/bin/perl NRPE ./configure --prefix=/apps/username --enable-command-args --disable-ssl --with-nrpe-user=someuser --with-nrpe-group=somegroup --with-nrpe-port=1 --with-nagios-user=someuser --with-nagios-group=somegroup For NRPE we also apply this patch src/nrpe.c --- src/nrpe.c.old Mon Mar 10 17:04:43 2008 +++ src/nrpe.c Thu Apr 17 10:20:27 2008 @@ -613,10 +613,12 @@ log_facility=LOG_UUCP; else if(!strcmp(varvalue,cron)) log_facility=LOG_CRON; +/* Commented out because Solaris doesn't have these log options else if(!strcmp(varvalue,authpriv)) log_facility=LOG_AUTHPRIV; else if(!strcmp(varvalue,ftp)) log_facility=LOG_FTP; +*/ else if(!strcmp(varvalue,local0)) log_facility=LOG_LOCAL0; else if(!strcmp(varvalue,local1)) On Tue, Dec 16, 2008 at 4:42 PM, James Pratt jpr...@norwich.edu wrote: -Original Message- From: Brandon Munger [mailto:bmun...@edison.edu] Sent: Tuesday, December 16, 2008 3:46 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Nagios-plugins on Solaris 10 with Sun Studio 12 Hello Nagios Users, I have been attempting to compile Nagios plugins and NRPE with Sun Studio so I can deploy the binaries to a number of machines. I have read the documentation available but I cannot get a successful compile. This command I am using is: CC=cc CFLAGS='-DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4' ./configure --with-ps-command=/usr/bin/ps -eo 's uid pid ppid vsz rss pcpu etime comm args' --with-ps-format='%s %d %d %d %d %d %f %s %s %n' --with-ps-cols=10 --with-ps- varlist='procstat,;procuid,;procpid,;procppid,;procvsz,;procrss,;procpcpu,pr ocetime,procprog,pos' The make output I get is: Making all in plugins make[2]: Entering directory `/export/home/bmunger/downloads/nagios-plugins-1.4.13/plugins' source='check_apt.c' object='check_apt.o' libtool=no \ DEPDIR=.deps depmode=none /bin/bash ../build-aux/depcomp \ cc -DLOCALEDIR=\/usr/local/nagios/share/locale\ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/pgsql -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 -c check_apt.c check_apt.c, line 450: warning: dubious escape: \% /bin/bash ../libtool --tag=CC --mode=link cc -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 -L. -o check_apt check_apt.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a runcmd.o -lnsl -lsocket -ldl cc -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 -o check_apt check_apt.o utils.o runcmd.o -L/export/home/bmunger/downloads/nagios-plugins-1.4.13/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lsocket -ldl Undefined first referenced symbol in file alloca ../gl/libgnu.a(regex.o) ld: fatal: Symbol referencing errors. No output written to check_apt make[2]: *** [check_apt] Error 1 make[2]: Leaving directory `/export/home/bmunger/downloads/nagios-plugins-1.4.13/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/home/bmunger/downloads/nagios-plugins-1.4.13' make: *** [all] Error 2 Thank you for your help. Brandon Hi Brandon, If there is a configure switch to disable the check_apt plugin, you could try that. I always found it quite
Re: [Nagios-users] Nagios-plugins on Solaris 10 with Sun Studio 12
Hi Vincent, Thanks for the suggestion. I had problems related to SSL using GCC. The reason I would like to use Sun Studio is so that the binaries can be copied to systems that are running different versions of gcc libraries for specific applications. Thanks for your help. Brandon Alloo, Vincent wrote: Hello, Why not using the GCC compiler located under /usr/sfw/bin. It works perfectly for Solaris 10 x86 and Sparc (setenv CC /usr/sfw//bin/gcc; setenv MAKE /usr/sfw/bin/gmake; setenv AR /usr/sfw/bbin/gar) Regards, *Vincent Alloo* TI France Design Systems Operations Manager Europe, Middle East and Africa IT Services Texas Instruments France E-Mail: v-al...@ti.com mailto:v-al...@ti.com Phone: +33 4 93 22 26 97 Mobile: +33 6 82 13 00 80 *From:* Brandon Munger [mailto:bmun...@edison.edu] *Sent:* Wednesday, December 17, 2008 1:42 AM *To:* James Pratt *Cc:* Nagios Users *Subject:* Re: [Nagios-users] Nagios-plugins on Solaris 10 with Sun Studio 12 James Pratt wrote: -Original Message- From: Brandon Munger [mailto:bmun...@edison.edu] Sent: Tuesday, December 16, 2008 3:46 PM To: nagios-users@lists.sourceforge.net mailto:nagios-users@lists.sourceforge.net Subject: [Nagios-users] Nagios-plugins on Solaris 10 with Sun Studio 12 Hello Nagios Users, I have been attempting to compile Nagios plugins and NRPE with Sun Studio so I can deploy the binaries to a number of machines. I have read the documentation available but I cannot get a successful compile. This command I am using is: CC=cc CFLAGS='-DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4' ./configure --with-ps-command=/usr/bin/ps -eo 's uid pid ppid vsz rss pcpu etime comm args' --with-ps-format='%s %d %d %d %d %d %f %s %s %n' --with-ps-cols=10 --with-ps- varlist='procstat,;procuid,;procpid,;procppid,;procvsz,;procrss,;procpcpu,pr ocetime,procprog,pos' The make output I get is: Making all in plugins make[2]: Entering directory `/export/home/bmunger/downloads/nagios-plugins-1.4.13/plugins' source='check_apt.c' object='check_apt.o' libtool=no \ DEPDIR=.deps depmode=none /bin/bash ../build-aux/depcomp \ cc -DLOCALEDIR=\/usr/local/nagios/share/locale\ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/pgsql -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 -c check_apt.c check_apt.c, line 450: warning: dubious escape: \% /bin/bash ../libtool --tag=CC --mode=link cc -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 -L. -o check_apt check_apt.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a runcmd.o -lnsl -lsocket -ldl cc -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 -o check_apt check_apt.o utils.o runcmd.o -L/export/home/bmunger/downloads/nagios-plugins-1.4.13/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lsocket -ldl Undefined first referenced symbol in file alloca ../gl/libgnu.a(regex.o) ld: fatal: Symbol referencing errors. No output written to check_apt make[2]: *** [check_apt] Error 1 make[2]: Leaving directory `/export/home/bmunger/downloads/nagios-plugins-1.4.13/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/home/bmunger/downloads/nagios-plugins-1.4.13' make: *** [all] Error 2 Thank you for your help. Brandon Hi Brandon, If there is a configure switch to disable the check_apt plugin, you could try that. I always found it quite difficult to get Nagios running well on sun/sparc. Please let us know how it goes! :) jamie -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net mailto:Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null Hi Jamie, I couldn't find a way to disable the check_apt plugin. I tried a few flags with the same result. I have a feeling that the problem will be with all the plugins, and that apt is just
Re: [Nagios-users] Nagios-plugins on Solaris 10 with Sun Studio 12
For what it's worth here's what we do for our Solaris SPARC boxes: Plugins ./configure --prefix=/apps/username --without-apt --without-mysql --without-smbclient --without-world-permissions --with-perl=/usr/bin/perl NRPE ./configure --prefix=/apps/username --enable-command-args --disable-ssl --with-nrpe-user=someuser --with-nrpe-group=somegroup --with-nrpe-port=1 --with-nagios-user=someuser --with-nagios-group=somegroup For NRPE we also apply this patch src/nrpe.c --- src/nrpe.c.old Mon Mar 10 17:04:43 2008 +++ src/nrpe.c Thu Apr 17 10:20:27 2008 @@ -613,10 +613,12 @@ log_facility=LOG_UUCP; else if(!strcmp(varvalue,cron)) log_facility=LOG_CRON; +/* Commented out because Solaris doesn't have these log options else if(!strcmp(varvalue,authpriv)) log_facility=LOG_AUTHPRIV; else if(!strcmp(varvalue,ftp)) log_facility=LOG_FTP; +*/ else if(!strcmp(varvalue,local0)) log_facility=LOG_LOCAL0; else if(!strcmp(varvalue,local1)) On Tue, Dec 16, 2008 at 4:42 PM, James Pratt jpr...@norwich.edu wrote: -Original Message- From: Brandon Munger [mailto:bmun...@edison.edu] Sent: Tuesday, December 16, 2008 3:46 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Nagios-plugins on Solaris 10 with Sun Studio 12 Hello Nagios Users, I have been attempting to compile Nagios plugins and NRPE with Sun Studio so I can deploy the binaries to a number of machines. I have read the documentation available but I cannot get a successful compile. This command I am using is: CC=cc CFLAGS='-DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4' ./configure --with-ps-command=/usr/bin/ps -eo 's uid pid ppid vsz rss pcpu etime comm args' --with-ps-format='%s %d %d %d %d %d %f %s %s %n' --with-ps-cols=10 --with-ps- varlist='procstat,;procuid,;procpid,;procppid,;procvsz,;procrss,;procpcpu,pr ocetime,procprog,pos' The make output I get is: Making all in plugins make[2]: Entering directory `/export/home/bmunger/downloads/nagios-plugins-1.4.13/plugins' source='check_apt.c' object='check_apt.o' libtool=no \ DEPDIR=.deps depmode=none /bin/bash ../build-aux/depcomp \ cc -DLOCALEDIR=\/usr/local/nagios/share/locale\ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/pgsql -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 -c check_apt.c check_apt.c, line 450: warning: dubious escape: \% /bin/bash ../libtool --tag=CC --mode=link cc -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 -L. -o check_apt check_apt.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a runcmd.o -lnsl -lsocket -ldl cc -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 -o check_apt check_apt.o utils.o runcmd.o -L/export/home/bmunger/downloads/nagios-plugins-1.4.13/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lsocket -ldl Undefined first referenced symbol in file alloca ../gl/libgnu.a(regex.o) ld: fatal: Symbol referencing errors. No output written to check_apt make[2]: *** [check_apt] Error 1 make[2]: Leaving directory `/export/home/bmunger/downloads/nagios-plugins-1.4.13/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/home/bmunger/downloads/nagios-plugins-1.4.13' make: *** [all] Error 2 Thank you for your help. Brandon Hi Brandon, If there is a configure switch to disable the check_apt plugin, you could try that. I always found it quite difficult to get Nagios running well on sun/sparc. Please let us know how it goes! :) jamie -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Richard Quintin, DBA Database Application Administration Virginia Tech -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include
[Nagios-users] Nagios-plugins on Solaris 10 with Sun Studio 12
Hello Nagios Users, I have been attempting to compile Nagios plugins and NRPE with Sun Studio so I can deploy the binaries to a number of machines. I have read the documentation available but I cannot get a successful compile. This command I am using is: CC=cc CFLAGS='-DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4' ./configure --with-ps-command=/usr/bin/ps -eo 's uid pid ppid vsz rss pcpu etime comm args' --with-ps-format='%s %d %d %d %d %d %f %s %s %n' --with-ps-cols=10 --with-ps-varlist='procstat,;procuid,;procpid,;procppid,;procvsz,;procrss,;procpcpu,procetime,procprog,pos' The make output I get is: Making all in plugins make[2]: Entering directory `/export/home/bmunger/downloads/nagios-plugins-1.4.13/plugins' source='check_apt.c' object='check_apt.o' libtool=no \ DEPDIR=.deps depmode=none /bin/bash ../build-aux/depcomp \ cc -DLOCALEDIR=\/usr/local/nagios/share/locale\ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/pgsql -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 -c check_apt.c check_apt.c, line 450: warning: dubious escape: \% /bin/bash ../libtool --tag=CC --mode=link cc -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 -L. -o check_apt check_apt.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a runcmd.o -lnsl -lsocket -ldl cc -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 -o check_apt check_apt.o utils.o runcmd.o -L/export/home/bmunger/downloads/nagios-plugins-1.4.13/plugins ../lib/libnagiosplug.a ../gl/libgnu.a -lnsl -lsocket -ldl Undefined first referenced symbol in file alloca ../gl/libgnu.a(regex.o) ld: fatal: Symbol referencing errors. No output written to check_apt make[2]: *** [check_apt] Error 1 make[2]: Leaving directory `/export/home/bmunger/downloads/nagios-plugins-1.4.13/plugins' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/export/home/bmunger/downloads/nagios-plugins-1.4.13' make: *** [all] Error 2 Thank you for your help. Brandon CONFIDENTIALITY: This e-mail (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this e-mail in error, please notify the sender and delete this e-mail from your system. -- SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null