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

SourceForge.net noreply at sourceforge.net
Wed Mar 21 03:20:11 CET 2007


Bugs item #1495828, was opened at 2006-05-26 18:40
Message generated for change (Comment added) made by sf-robot
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: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: edward dertouzas (ophten)
Assigned to: Ton Voon (tonvoon)
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: SourceForge Robot (sf-robot)
Date: 2007-03-20 19:20

Message:
Logged In: YES 
user_id=1312539
Originator: NO

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).

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

Comment By: Ton Voon (tonvoon)
Date: 2007-03-06 09:35

Message:
Logged In: YES 
user_id=664364
Originator: NO

Hi!

Can you please try the snapshot at http://nagiosplug.sf.net/snapshot. The
ps command has changed from pst3 to /usr/ucb/ps for Solaris.

I've marked this call in pending. Please update if there is still a
problem.

Ton

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

Comment By: Ade Rixon (aderixon)
Date: 2006-11-02 12:55

Message:
Logged In: YES 
user_id=145082

Update to my previous comment: you must compile all the
plugins in their entirety as 32 bit or 64 bit, and the
supporting libraries must match, due to the
interdependencies between object files. For Solaris, this
effectively means 64 bit throughout only. The alternative is
to bodge config.h to use the builtin ps command instead.

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

Comment By: Ade Rixon (aderixon)
Date: 2006-11-02 07: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 03: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