<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi,<br>
I don't know if it's your case, but I had similar problem with
monitoring host and it was due to the fact that my system language
was different from english (in my case italian), and so the script
could not be able to understand the values returned by "virsh
nodeinfo" command called in the script.<br>
I've solved adding a declaration in the script to change the
environment variable LANG to the value C.<br>
<br>
Hope to be helpful,<br>
<pre class="moz-signature" cols="72">Filippo Dalla Gassa</pre>
<br>
Il 14/01/2011 17:08, CLABAUT, Emmanuel ha scritto:
<blockquote
cite="mid:AANLkTi=wo+rX1bcvnjZCdEiiVe9LYzvomnFOEVppiVz1@mail.gmail.com"
type="cite">Hello, <br>
<br>
I have installed opennebula and one of my host have a problem,
opennebula can't seen totalcpu, cpuspeed, totalmemory of this
host. And I don't understand why. I have installed Kvm,
Opennebula-node with ./node-install.sh.<br>
And cause of this problem, i can't launch VM, it remains in
pending state.<br>
<br>
Here is an output of onehost list : <br>
onehost list<br>
ID NAME CLUSTER RVM TCPU FCPU ACPU
TMEM FMEM STAT<br>
11 192.168.2.4 default 0 0 0 100 0K
139.1G on<br>
<br>
<br>
Here is an output of onehost show 11 : <br>
onehost show 11<br>
HOST 11 INFORMATION<br>
ID : 11<br>
NAME : 192.168.2.4<br>
CLUSTER : default<br>
STATE : MONITORED<br>
IM_MAD : im_kvm<br>
VM_MAD : vmm_kvm<br>
TM_MAD : tm_ssh<br>
<br>
HOST SHARES<br>
MAX MEM : 0<br>
USED MEM (REAL) : 3063644<br>
USED MEM (ALLOCATED) : 0<br>
MAX CPU : 0<br>
USED CPU (REAL) : 0<br>
USED CPU (ALLOCATED) : 0<br>
RUNNING VMS : 0<br>
<br>
MONITORING INFORMATION<br>
ARCH=x86_64<br>
CPUSPEED=0<br>
FREECPU=0.0<br>
FREEMEMORY=145890140<br>
HOSTNAME=SRV03-KVM<br>
HYPERVISOR=kvm<br>
MODELNAME=Intel(R) Xeon(R) CPU X5650 @ 2.67GHz<br>
NETRX=0<br>
NETTX=0<br>
TOTALCPU=0<br>
TOTALMEMORY=0<br>
USEDCPU=0.0<br>
USEDMEMORY=3063644<br>
<br>
<br>
Here is an output of ruby -wd kvm.rb (exécuté sur l'host) : <br>
ruby -wd kvm.rb<br>
kvm.rb:67: warning: global variable `$total_cpu' not initialized<br>
kvm.rb:68: warning: global variable `$total_cpu' not initialized<br>
HYPERVISOR=kvm<br>
kvm.rb:92: warning: global variable `$total_cpu' not initialized<br>
TOTALCPU=0<br>
kvm.rb:93: warning: global variable `$cpu_speed' not initialized<br>
CPUSPEED=0<br>
kvm.rb:95: warning: global variable `$total_memory' not
initialized<br>
TOTALMEMORY=0<br>
USEDMEMORY=3069604<br>
FREEMEMORY=145884212<br>
FREECPU=0.0<br>
USEDCPU=0.0<br>
NETRX=0<br>
NETTX=0<br>
<br>
Thanks for your help.<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
</pre>
</blockquote>
</body>
</html>