kvm_open() is returning a permission denied error. Make sure you're
running gmond as root. You should get a slightly different set of errors
if you are struck by the mighty mismatched-compiler problem. Just in case,
check your gmond ...
file /path/to/your/gmond
The output should look like this:
/usr/sbin/gmond: ELF 64-bit MSB executable SPARCV9 Version 1,
dynamically linked, not stripped
Unfortunately there are some stats which I was only able to get effectively
via kvm_* calls (which means Solaris gmond won't run if you run it as Joe
User), which require that you use the libkvm (and thus everything else in
linking the monitoring core) that matches the running kernel. libkstat is
agnostic, and works on any Solaris it's implemented on (which may only be
2.6.x and above). It's been a while so I don't remember if the data was
*in* the kstat interface but there were problems getting it out with the
proper frequency, or if the data just plain wasn't there.
kstat is obviously the way to go, as it's newer and has a nicer, fuzzier
set of function calls ... but there's nothing quite like getting the data
from the horse's mouth (er, kernel's symbol table) ...
[EMAIL PROTECTED] wrote:
Hi everybody,
I have two questions :
- I encounter the already known problem (segmentation fault) on a Solaris
2.8
with gmond. I have compiled this executable on this machine, so I don't
think this a problem of 32-bits/64-bits kernel compatibility.
Here is the log :
/etc/gmond.conf configuration
pthread_attr_init
creating cluster hash for 1024 nodes
hash_create size = 1024
hash->size is 1031
gmond initialized cluster hash
Using interface ce0
mcast listening on 239.2.11.71 8649
XML listening on port 8649
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: cannot open /dev/kmem
kvm_open: Permission denied
*** WARNING!!!! kvm_open() failed. prepare for a segfault ... ***
kvm_nlist: Bad address
Lookup up kstat: km (unix?)='unix', ks (system_misc?)='system_misc',kn
(resulting metric?)='ncpus'
ncpus: kc is 37f10
ncpus: Just did kstat_lookup().
ncpus: Looked up.
ncpus: Kstat data type: 2, Value returned: 4, 4 4 4
ncpus: Kernel close. Val returned: 4
metric_init: Assigning cpu_num value (4) to ncpus
2) Concerning the Web Front-end, it is written in the manual that
it uses TemplatePower. I have retrieved the class.TemplatePower.inc.php
but when I browse some php-page I get messages like
Cannot instantiate non-existent class: templatepower in
/usr/local/apache-ssl/htdocs/gmetad-webfrontend/meta_view.php on line 3
In fact there is no include directive linked to the
class.TemplatePower.inc.php.
Do I have to mofify these files by hand ?
Thank you in advance of any hint on these topics.
-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T
handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general