[one-users] [Monitor Error] Error executing xen.rb. Please help!!!!

Hector Sanjuan hsanjuan at opennebula.org
Tue Mar 6 11:37:24 PST 2012


Hello,

> And, I tried run the command on client1, it can monitor my client1  
> self.....
> But, I must input my password...
> Is this reason that my ONE server can't monitor the client1???

yes, it seems that is the problem. Please try adding a NOPASSWD to sudoers  
as proposed here:

http://lists.opennebula.org/pipermail/users-opennebula.org/2010-October/003123.html

Hector



En Tue, 06 Mar 2012 20:29:35 +0100, 張德勤 <cinmex91047 at gmail.com>  
escribió:

> Dear all:
>
> I am new in OpenNEbula.
>
> I have two machines, one is server, and the other one is client1.
> 1. server :CentOS 6 + Opennebula 3.0.0
> 2. client1:CentOS 6 + XEN-kernel(2.6.32.56-1.el6xen.x86_64) +XEN
>
> I have a problem about running onehost list but something wrong.
>
> [oneadmin at server ~]$ onehost list
>   ID NAME               RVM   TCPU   FCPU   ACPU   TMEM   FMEM   AMEM    
> STAT
>    4 client1              0      0      0    100     0K     0K     0K     
> err
>
> [oneadmin at server ~]$ onehost show 4
> HOST 4 INFORMATION
> ID                    : 4
> NAME                  : client1
> STATE                 : ERROR
> IM_MAD                : im_xen
> VM_MAD                : vmm_xen
> TM_MAD                : tm_shared
>
> HOST SHARES
> MAX MEM               : 0
> USED MEM (REAL)       : 0
> USED MEM (ALLOCATED)  : 0
> MAX CPU               : 0
> USED CPU (REAL)       : 0
> USED CPU (ALLOCATED)  : 0
> RUNNING VMS           : 0
>
> MONITORING INFORMATION
> ERROR=[
>   MESSAGE="Error monitoring host 4 : MONITOR FAILURE 4 Error executing
> xen.rb
> ",
>   TIMESTAMP="Wed Mar  7 03:14:59 2012" ]
>
>
> one part of my oned.log is following....
>
> Wed Mar  7 03:24:55 2012 [ReM][D]: VirtualMachinePoolInfo method invoked
> Wed Mar  7 03:24:55 2012 [InM][I]: Command execution fail: 'if [ -x
> "/var/tmp/one/im/run_probes" ]; then /var/tmp/one/im/run_probes xen 4
> client1; else                              exit 42; fi'
> Wed Mar  7 03:24:55 2012 [InM][I]: sudo: no tty present and no askpass
> program specified
> Wed Mar  7 03:24:55 2012 [InM][E]: Error executing xen.rb
> Wed Mar  7 03:24:55 2012 [InM][I]: ExitCode: 255
> Wed Mar  7 03:24:55 2012 [InM][E]: Error monitoring host 4 : MONITOR
> FAILURE 4 Error executing xen.rb
>
>
> And, I tried run the command on client1, it can monitor my client1  
> self.....
> But, I must input my password...
> Is this reason that my ONE server can't monitor the client1???
>
> [oneadmin at client1 xen.d]$ pwd
> /var/tmp/one/im/xen.d
> [oneadmin at client1 xen.d]$ ./xen.rb
> [sudo] password for oneadmin:
> HYPERVISOR=xen
> TOTALCPU=400
> CPUSPEED=2826
> TOTALMEMORY=4023296
> FREEMEMORY=2914304
> USEDMEMORY=1108992
> USEDCPU=1
> FREECPU=400
> NETTX=0
> NETRX=0
> [oneadmin at client1 im]$ pwd
> /var/tmp/one/im
> [oneadmin at client1 im]$ ./run_probes xen
> ARCH=x86_64 MODELNAME="Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz"
> HOSTNAME=client1 HYPERVISOR=xen TOTALCPU=400 CPUSPEED=2826
> TOTALMEMORY=4023296 FREEMEMORY=2914304 USEDMEMORY=1108992 USEDCPU=1
> FREECPU=399 NETTX=0 NETRX=0 [oneadmin at client1 im]
>
>
>
> Someone can help me???
> Thank you!!!
>
>


-- 
Hector Sanjuan
OpenNebula Developer



More information about the Users mailing list