[Nagiosplug-devel] [ nagiosplug-Bugs-1495828 ] pst3 failure on solaris 10 x86

SourceForge.net noreply at sourceforge.net
Thu Nov 2 16:44:17 CET 2006


Bugs item #1495828, was opened at 2006-05-27 02:40
Message generated for change (Comment added) made by aderixon
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1495828&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General plugin execution
Group: CVS
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: edward dertouzas (ophten)
Assigned to: Nobody/Anonymous (nobody)
Summary: pst3 failure on solaris 10 x86

Initial Comment:
https://sourceforge.net/tracker/index.php?func=detail&aid=1476451&group_id=29880&atid=397597

check_procs fails on Solaris 10 x86:

root at infdb4.prodqa.coremetrics.com # ./check_procs -vvv
CMD: /usr/local/nagios_new/libexec/pst3
CRITICAL - Plugin timed out after 10 seconds

truss shows this just spinning through a read, finding
nothing, then eventually trapping a SIGALRM.

Onward!

root at infdb4.prodqa.coremetrics.com #
/usr/local/nagios_new/libexec/pst3
/usr/local/nagios_new/libexec/pst3: /dev/ksyms is not a
32-bit kernel namelist
pst3: Failed to open kernel memory: Error 0

It appears we're using a 32-bit version of libkvm. I
assume the generic /usr/lib/libkvm.so is a 32-bit
version while /usr/lib/amd64/libkvm.so is 64-bit. At
least the ELF class for libkvm.so is 64-bit.

I can't seem to find the write linking magic to make
this work.


----------------------------------------------------------------------

Comment By: Ade Rixon (aderixon)
Date: 2006-11-02 15:44

Message:
Logged In: YES 
user_id=145082

pst3 needs to be compiled to match the Solaris kernel in
use, either 32 bit or 64 bit (usually the latter on recent
SPARC hardware). For the Sun Studio compiler, add -xarch=v9a
to the CFLAGS. For GCC, add -m64. However, this may not be
correct for other plugins since it depends what bit size the
supporting libraries were compiled for (e.g. compiling in 64
bit mode against a 32 bit OpenSSL library won't work). I'd
suggest adding the extra parameters only to CFLAGS in
plugin-root/Makefile.

This looks like something that needs detecting at configure
time.

----------------------------------------------------------------------

Comment By: Duncan Ferguson (duncan_ferguson)
Date: 2006-10-09 11:27

Message:
Logged In: YES 
user_id=865292

This problem also occurs on Solaris 10 (06/06) sparc

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1495828&group_id=29880




More information about the Devel mailing list