The prob was solved, while typing this mail (as often ;) ):
Meanwhile, I managed it to link the ssl-libs statically (I have no root-access
to our machines, so I can´t simply install libs)
Perhaps my config will help to solve the prob:
NRPE-Version used: 2.0
Solaris-Compile-System:
SunOS ### 5.9 Generic_118558-11 sun4u sparc SUNW,Ultra-4
Exec-Sys/inetd:
SunOS ### 5.8 Generic_117350-08 sun4u sparc SUNW,Ultra-4
For compilation I changed src/Makefile:
...
LDFLAGS= -L/opt/prod/nagios/lib/ssl/lib /opt/prod/nagios/lib/ssl/lib/libssl.a
/opt/prod/nagios/lib/ssl/lib/libcrypto.a
...
Inetd.conf:
...
nrpe stream tcp nowait nagios /opt/prod/nagios/bin/nrpe -c
/opt/prod/nagios/cfg/nrpe.cfg -i
...
Also tried (as described on http://nagios.org/faqs/viewfaq.php?faq_id=152):
nrpe stream tcp nowait nagios /opt/prod/nagios/bin/nrpe
/opt/prod/nagios/bin/nrpe -c /opt/prod/nagios/cfg/nrpe.cfg -i
Services:
nrpe 5666/tcp nagios # nagios
Ldd shows:
[###]/opt/prod/nagios $ ldd bin/nrpe
libnsl.so.1 => /usr/lib/libnsl.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libmp.so.2 => /usr/lib/libmp.so.2
/usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1
=> Everything ok.
Started as Deamon:
=> Everything ok. May reqest NRPE from other machines
Started under inetd:
[###]/opt/prod/nagios $ ps -ef|grep inetd
nagios 3491 1 0 10:58:38 ? 0:00 inetd -s /etc/inetd.conf
[EMAIL PROTECTED] /opt/prod/nagios/install_dir/clients/nrpe-2.0 >
src/check_nrpe -H ### -c check_load
OK - load average: 0.01, 0.01, 0.01
=> Everything ok.
Now inetd started under root:
[###]/root # ps -ef|grep inet
root 3499 1 0 11:00:24 ? 0:00 inetd -s /etc/inetd.conf
[EMAIL PROTECTED] /opt/prod/nagios/install_dir/clients/nrpe-2.0 >
src/check_nrpe -H ### -c check_load
OK - load average: 0.00, 0.00, 0.01
=> Ups, everything ok, too. Must have been missed something yesterday...
Thanks a lot :), have a nice day!
Greetings,
Thomas Zimmer
Produktservice & Betrieb
Betrieb & Support
Sal. Oppenheim jr. & Cie., Frankfurt a. Main
Telefon: +49 69 7134 5192
Internet: http://www.oppenheim.de
E-Mail: [EMAIL PROTECTED]
-----Ursprüngliche Nachricht-----
Von: Andreas Ericsson [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 17. Januar 2007 10:21
An: Zimmer, Thomas (BB) Frankfurt/M.
Cc: [email protected]
Betreff: Re: [Nagios-users] NRPE: static linked libraries?
[EMAIL PROTECTED] wrote:
> Hi list,
>
> Is there any possiblity to compile NRPE with static linked libs?
>
Yes. The man-page for your linker (or possibly your compiler) will tell
you how to do this.
> I´ve the problem, that NRPE ist missing (ssl-)libs when running it
> under inetd/user root, the environment of my nagios user is not set.
>
This sounds strange. Where are the ssl-libs located? Is that directory
one where the dynamic link loader looks for libraries (mentioned in
/etc/ld.so.conf or LD_RUN_PATH (for ELF systems) or LD_LIBRARY_PATH (for
ancient unix type systems)? Have you run ldconfig (or your system's
equivalence) since you installed the libraries?
> Is there any simple solution?
>
Check the above and do the appropriate fix, or link nrpe statically.
--
Andreas Ericsson [EMAIL PROTECTED]
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
Diese E-Mail und eventuell beigefügte Anhänge enthalten vertrauliche
Informationen, die rechtlich besonders geschützt sein können, z.B. durch das
Bankgeheimnis. Diese Informationen sind ausschließlich für die als Adressaten
genannten Personen bestimmt. Wenn Sie nicht der angeschriebene Empfänger sind
oder diese E-Mail durch einen Übertragungsfehler erhalten haben, informieren
Sie uns bitte sofort per E-Mail, Telefon oder Fax und löschen danach
vorliegende E-Mail. Das unbefugte Kopieren dieser E-Mail, ihrer eventuell
beigefügten Anhänge sowie die unbefugte Weitergabe der enthaltenen
Informationen an Dritte sind nicht gestattet. Wir danken für Ihre Hilfe.
This e-mail message together with its attachments, if any, is confidential and
may contain information subject to legal privilege, i.e. banking secrecy. The
information contained in this e-mail or its attachments is intended solely for
the persons named as addressees. If you are not the intended recipient or have
received this e-mail in error, please advise us immediately by e-mail,
telephone or fax and delete this message. Any unauthorised copying of this
message or unauthorised distribution of the information contained herein is
prohibited. Thank you for your co-operation.
BEGIN:VCARD
VERSION:2.1
N:Zimmer;Thomas
FN:Zimmer, Thomas (Produktservices und Betrieb)
ORG:;Produktservices und Betrieb
ADR;WORK:;;;FFM (Frankfurt)
LABEL;WORK:FFM (Frankfurt)
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050930T105258Z
END:VCARD
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
[email protected]
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