Operating System - HP-UX
1834687 Members
2150 Online
110069 Solutions
New Discussion

Unable to install Nagios Plug ins on HP UX 11.11

 
SOLVED
Go to solution
shankar!
Frequent Advisor

Unable to install Nagios Plug ins on HP UX 11.11

Hi,

We’re using HP-UX 11.11 on HP RP 3440 server. I am trying to install Nagoios Plug-ins software to monitor the local resources through Nagios Server (which is installed on Red Hat Linux). As per the instructions, I downloaded the Nagios Plugin source code and then execute the following command

./configure –prefix=/client/nagios, and then make install. But when I execute ./configure –prefix=/client/nagios; I received some errors.

. yes
checking for kvm_open in -lkvm... no
checking for getloadavg in -lutil... no
checking for getloadavg in -lgetloadavg... no
checking for getloadavg... no
checking sys/dg_sys_info.h usability... no
checking sys/dg_sys_info.h presence... no
checking for sys/dg_sys_info.h... no
checking nlist.h usability... yes
checking nlist.h presence... yes
checking for nlist.h... yes
checking for struct nlist.n_un.n_name... no
checking whether getloadavg requires setgid... no
checking for inet_ntop... yes
checking whether inet_ntop is declared... yes
checking whether the compiler generally respects inline... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for memchr... yes
checking for listmntent... no
checking for getmntinfo... no
checking for sys/ucred.h... no
checking for sys/mount.h... (cached) no
checking mntent.h usability... yes
checking mntent.h presence... yes
checking for mntent.h... yes
checking for sys/fs_types.h... (cached) no
checking for struct fsstat.f_fstypename... no
checking for library containing getmntent... none required
checking for getmntent... yes
checking for listmntent of Cray/Unicos-9... no
checking for mntctl function and struct vmount... no
checking for one-argument getmntent function... yes
checking sys/mntent.h usability... no
checking sys/mntent.h presence... no
checking for sys/mntent.h... no
checking for struct statfs.f_fstypename... no
checking for working re_compile_pattern... no
checking whether isblank is declared... yes
checking for stdint.h... (cached) no
checking for SIZE_MAX... (((1UL << 31) - 1) * 2 + 1)
checking for snprintf... yes
checking for socklen_t... no
checking for socklen_t equivalent... configure: error: Cannot find a type to use in place of socklen_t

HPtstbox:/client/nagios/nagios-plugins-1.4.11# tail -20 config.log
#define re_syntax_options rpl_re_syntax_options
#define re_set_syntax rpl_re_set_syntax
#define re_compile_pattern rpl_re_compile_pattern
#define re_compile_fastmap rpl_re_compile_fastmap
#define re_search rpl_re_search
#define re_search_2 rpl_re_search_2
#define re_match rpl_re_match
#define re_match_2 rpl_re_match_2
#define re_set_registers rpl_re_set_registers
#define re_comp rpl_re_comp
#define re_exec rpl_re_exec
#define regcomp rpl_regcomp
#define regexec rpl_regexec
#define regerror rpl_regerror
#define regfree rpl_regfree
#define HAVE_DECL_ISBLANK 1
#define SIZE_MAX (((1UL << 31) - 1) * 2 + 1)
#define HAVE_SNPRINTF 1

configure: exit 1

Can someone please suggest how to fix this?

Thanks
asam
9 REPLIES 9
weisstik
Advisor

Re: Unable to install Nagios Plug ins on HP UX 11.11

Hello,

i have the same problem as you. Have you already found a solution?

Thanks

Rgds
Ph. LAQUERRIERE
Occasional Advisor

Re: Unable to install Nagios Plug ins on HP UX 11.11

The "socklen_t" is part of netdb.h include file. Could you see if you have this include in your box. "/usr/include" dir.
regards.
weisstik
Advisor

Re: Unable to install Nagios Plug ins on HP UX 11.11

Hello,

yes, the file is in the include directory

-r--r--r-- 1 bin bin 22110 Sep 3 2003 /usr/include/netdb.h

Thank you!
shankar!
Frequent Advisor

Re: Unable to install Nagios Plug ins on HP UX 11.11

I still have the same problem. I was looking at nagios forum and found that some people says that I must need glibc library installed for supporting some of the c functions like SNPRINTF(). I have no idea how to install and where to find that.

yes, I have the following

bash-3.2# ls -l /usr/include/netdb.h
-r--r--r-- 1 bin bin 22110 Sep 3 2003 /usr/include/netdb.h


Please suggest..
Thanks
shankar!
Frequent Advisor

Re: Unable to install Nagios Plug ins on HP UX 11.11

FYI

here is the link given by nagios

http://www.nagios.org/faqs/viewfaq.php?faq_id=12

some one might look into it and provide the solution

Thanks
weisstik
Advisor

Re: Unable to install Nagios Plug ins on HP UX 11.11

Have you found a solution for this problem?!

Rgds
Ralph Grothe
Honored Contributor
Solution

Re: Unable to install Nagios Plug ins on HP UX 11.11

Hi Asam,

I have just compiled nagios-plugins-1.4.12 on B.11.11 PARISC with the HP ANSI C compiler
without any problems.
However, since I haven't got installed net-snmp, MySQL or PostgreSQL on my build box
I explicitly gave the configure appropriate --without-* options.
I linked plugins which are known to use SSL like check_http against the libs of my OpenSSL installation which I got from HP's InternetExpress suite (I would have to flag this as a prerequisite)
If you are interested I could bundle my build in a depot file that you could try to swinstall on your box.
Madness, thy name is system administration
weisstik
Advisor

Re: Unable to install Nagios Plug ins on HP UX 11.11

Hello,

i have successfully compiled the Nagios plugins withe the following settings:

LDFLAGS='-lcl -lpthread'

LD_LIBRARY_PATH=/usr/lib:/opt/langtools/lib:/ente01x_d1/home/nagios/src/nagios-plugins-1.4.12/gl

CCOPTS=+d
shankar!
Frequent Advisor

Re: Unable to install Nagios Plug ins on HP UX 11.11

Hi Ralph,

Thank you for your time to response to this thread. I've already installed nagios plugins on HP UX v1 just fine. But the problem is with nrpe add-ons. I could not install nrpe as this reports could not find ssl libraries. hence i installed nrpe without-ssl.

If you have already compiled nrpe with ssl support on HP ?UX v1, then kindly provide the compiled binaries to me so I can use them.

Thanks