Isn't this in the FAQ by now?  Guess not.

kvm_open() typically fails for one of two reasons:

1.  You're running gmond as a regular user (this won't work).
2. You linked in a 32-bit version of libkvm which is trying to open the symbol table of a 64-bit kernel. 3. Something horribly, horribly wrong has happened. Grab a crowbar and prepare to fend off head crabs.

From your debug output, it looks like #2. Set yourself up with a compiler capable of generating 64-bit sparcv9* binaries and everything should work.

Unless, like the situation for the other person who just posted, it doesn't...

BTW, I was under the impression that we brought back a couple of command line options as of a VERY recent 2.5.x version. All my monitoring cores are behaving properly so I haven't had reason to investigate this for quite a while, though...

David Bickle wrote:

Here's a segment gmond output. In more recent versions of gmond the '-d 99' option is not supported. To generate this output I had to change the defaults in the gmond.conf file.

listening thread(s) have been started
listening thread(s) have been started
cleanup thread has been started
multicasting on channel 239.2.11.71 8649
gmond: /dev/ksyms is not a 32-bit kernel namelist
kvm_open: No such file or directory
*** WARNING!!!!  kvm_open() failed.  prepare for a segfault ... ***
*** kvm_open() failed, are you running gmond as root?
kvm_nlist: Bad address
Lookup up kstat: km (unix?)='unix', ks (system_misc?)='system_misc',kn (resulti
ng metric?)='ncpus'
ncpus: kc is 38718
ncpus: Just did kstat_lookup().
ncpus: Looked up.
ncpus: Kstat data type:  2, Value returned: 20, 20 20 20
ncpus: Kernel close.  Val returned: 20
metric_init: Assigning cpu_num value (20) to ncpus.
Segmentation Fault

Yes I am running as root. Why is it complaining about /dev/ksyms not being 32-bit? Am I missing a configure option?

Thanks Again,

On Wed, 7 May 2003, steven wagner wrote:

Ken MacInnis wrote:

On Wed, 7 May 2003, David Bickle wrote:



Still having problems I've compiled gcc 3.2.2 from source with the
CPU=sparc64. I'm running Solaris 8. I have also compiled ganglia with
--enable-sparc64. gmond
still won't launch for some reason. Check this:

bash-2.03$ file /usr/local/sbin/gmond
/usr/local/sbin/gmond:  ELF 64-bit MSB executable SPARCV9 Version 1,
dynamically linked, not stripped

Any suggestions?
What does 'gmond -d 99' say?  Is it coredumping or quitting?



Also, make sure you're running it as root.

But yeah, without the debug output we're all just randomly picking from the Grab Bag o' Fixes, which makes our advice only slightly more likely to help you than any random thing a first-tier dialup tech support rep could offer...





Reply via email to