<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Add the line ENV['LANG']='C' at the beginning of the script, just
after the initial comments, and then stop and restart one so that
changes apply.<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">Filippo Dalla Gassa</pre>
<br>
Il 14/01/2011 17:47, CLABAUT, Emmanuel ha scritto:
<blockquote
cite="mid:AANLkTinqAUfqexZYGB4x2s0L7RoEtPGdNHyC1bgfMEN5@mail.gmail.com"
type="cite">Thanks for your answer.<br>
I try to find the environnement variable LANG in script kvm.rb,
but there is not this kind of variable.<br>
Can you explain me how and where have you done this modificaiton,
because i don't really understand.<br>
when i make virsh nodeinfo i have a french result.<br>
And in kvm.rb it seems to be in english.<br>
<br>
Thanks for your help.<br>
<br>
Regards.<br>
<br>
<div class="gmail_quote">2011/1/14 Filippo Dalla Gassa <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:pippo.dallagassa@gmail.com">pippo.dallagassa@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div 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 cols="72">Filippo Dalla Gassa</pre>
<br>
Il 14/01/2011 17:08, CLABAUT, Emmanuel ha scritto:
<blockquote type="cite">
<div>
<div class="h5">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>
</div>
</div>
<pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>
<a moz-do-not-send="true" href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
</pre>
</blockquote>
</div>
</blockquote>
</div>
<br>
</blockquote>
</body>
</html>