cancel
Showing results for 
Search instead for 
Did you mean: 

nrpe on HP-UX problem

SOLVED
Go to solution
Vladislav Rames
Occasional Visitor

nrpe on HP-UX problem

Hi,

I would like to check my Itanium HP-UX11.23 server using nagios, so I decided to download ixNagios_A.16.00-3.2.3.001_HP-UX_B.11.23_IA_PA.depot, which contain nrpe client. Then I tried to run some tests (from localhost's commandline), for example:

#/opt/iexpress/nagios/libexec/check_procs
#/opt/iexpress/nagios/libexec/check_load

Output is the same:

/usr/lib/hpux32/dld.so: Unable to find library 'libintl.so.8'.
Killed

Is it error on feature, please? On LINUX machines it is possible to run it directly.

When I tried to test it using nrpe_check, I got following output:

#/opt/iexpress/nagios/libexec/check_nrpe -H localhost -c check_total_procs
NRPE: Unable to read output

#/opt/iexpress/nagios/libexec/check_nrpe -H localhost -c check_load
NRPE: Unable to read output

localhost is default allowed host in nrpe.cfg, I tried my tests from root account from localhost.

I tried to check installation, output from swverify is attached. I also tried to install gettext-0.18.1.1-ia64-11.23.depot, libiconv-1.13.1-ia64-11.23.depot and zlib-1.2.5-ia64-11.23.depot to complette missing libraries, but it didn't help.

Can anybody tell me any tip or advice, please?
Has someone some xperience with running nrpe depot on HP-UX?

Best regards

Vladislav Rames
7 REPLIES
Wim Rombauts
Honored Contributor

Re: nrpe on HP-UX problem

Odd ... I have the same error on my HP-UX 11i v3 system when I try the same command, but our systems are currently monitored by nagios ...
Dennis Handly
Acclaimed Contributor
Solution

Re: nrpe on HP-UX problem

>Is there any installation documentation that tells you which other depots you must install?

Have you looked at the files in gettext-0.18.1.1-ia64-11.23.depot? Do you need to set LD_LIBRARY_PATH to point there?

Vladislav Rames
Occasional Visitor

Re: nrpe on HP-UX problem

Hello Denis,

thanks you for your answer. I cannot find any relevant documentation - on HP website (https://h20392.www2.hp.com/portal/swdepot/displayInstallInfo.do?productNumber=HPUXIEXP1123) is only common instruction such as how to use swinstall and swverify. In readme.txt is the same, in readme.hp is only written how this depot was built.

I tried swlist -l file | grep libintl.so, it returns:

# swlist -l file | grep -i libintl.so
GNUbase.GNUBASE-IPF-RUN: /usr/local/lib/hpux32/libintl.so
Gtk.GTK-IPF32: /opt/gtk2.6/lib/libintl.so
gettext.gettext-RUN: /usr/local/lib/hpux32/libintl.so

But when I tried to set LD_LIBRARY_PATH (previously it wasn't used), it didn't help (I hope that I'm not wrong with it):

# export LD_LIBRARY_PATH="/usr/local/lib/hpux32/"
# /opt/iexpress/nagios/libexec/check_procs
/usr/lib/hpux32/dld.so: Unable to find library 'libintl.so.8'.
Killed

Best regards

Vladislav Rames
Dennis Handly
Acclaimed Contributor

Re: nrpe on HP-UX problem

>gettext-RUN: /usr/local/lib/hpux32/libintl.so

I don't see libintl.so.8.
I suppose you could try creating a symlink from libintl.so.8 to libintl.so but you may run into version problems.
Vladislav Rames
Occasional Visitor

Re: nrpe on HP-UX problem

Hello Denis,

thank you very much for your answer, symlink seems to work properly:

hpux1:/usr/local/lib/hpux32# ln -s libintl.so libintl.so.8
# export LD_LIBRARY_PATH="/usr/local/lib/hpux32/"
# /opt/iexpress/nagios/libexec/check_procs
PROCS OK: 452 processes

I will test co complette settings and let know, but it seems hopefully.

Many thanks.

King regards

Vladislav Rames
Vladislav Rames
Occasional Visitor

Re: nrpe on HP-UX problem

Hello Denis,

sorry for my delay, my colleague upgrading nagios server so I can try it just now.

I can confirm- every works properly, I add "export LD_LIBRARY_PATH" to nrpe startup script, everything works :-).

Thank you very much again, your advice is very valuable for me.

Have a nice day

Vladislav Rames
Vladislav Rames
Occasional Visitor

Re: nrpe on HP-UX problem

Solved.

Thank you very much for succesfull solving my problem. Solving is according to answers above.

Best regards

Vladislav Rames