/var/www/vmktree-data/vm/* folders not being created on new install, talking to esxi 4.1 host

143 views
Skip to first unread message

Paul Dickson

unread,
Oct 30, 2010, 8:28:57 PM10/30/10
to vmktree
I've tried using three different fresh centos lamp vm's as linked from
your how to page. The first two being x64, the last being x86. The
tree is not populated. I ran the cron command manually and found
this:
--------------------------
[root@vmktree vmktree-0.3.0]# /usr/bin/vmktree-esx3-collector ts-host
root
ERROR: creating '/var/www/vmktree-data/sys/ts-host/vmkernelmem.rrd':
No such file or directory
ERROR: creating '/var/www/vmktree-data/sys/ts-host/vmnic1.rrd': No
such file or directory
ERROR: creating '/var/www/vmktree-data/sys/ts-host/vmnic0.rrd': No
such file or directory
ERROR: creating '/var/www/vmktree-data/sys/ts-host/vmnic1.rrd': No
such file or directory
ERROR: creating '/var/www/vmktree-data/sys/ts-host/300gbNAS.rrd': No
such file or directory
ERROR: creating '/var/www/vmktree-data/sys/ts-host/Local.rrd': No such
file or directory
ERROR: creating '/var/www/vmktree-data/vm/
564ded9e005797bf-510674e07821a4f8/memory.rrd': No such file or
directory
ERROR: creating '/var/www/vmktree-data/vm/
564ded9e005797bf-510674e07821a4f8/swap.rrd': No such file or directory
can't open state file: No such file or directory at /usr/bin/vmktree-
esx3-collector line 775.
[root@vmktree vmktree-0.3.0]#
-----------------------------

I've tried creating the noted ts-host folder to see if anything would
be created in it after running the above command again. No luck.
Despite being root, I tried one last thing as a "hail mary", which was
to chmod 777 the entire structure referenced above. Still no love.

Any ideas? Below is the result of the command to register the esxi
host with vmktree. seemed to have gone ok. I CAN ssh into the esxi
host.


Thanks,
Paul

---------------------------
[root@vmktree vmktree-0.3.0]# vmktree-addesx ts-host root
root's password:
Warning: root ssh login is disabled by default. Details here ->
http://kb.vmware.com/selfservice/viewContent.do?language=en_US&externalId=8375637
A normal user is normally prefered over root for this task.

Please wait. This will probably take 15-20 seconds....

You have activated Tech Support Mode.
The time and date of this activation have been sent to the system
logs.

VMware offers supported, powerful system administration tools. Please
see www.vmware.com/go/sysadmintools for details.

Tech Support Mode may be disabled by an administrative user.
Please consult the ESXi Configuration Guide for additional
important information.

~ # exit
Connection to ts-host closed.


Successfully added the needed trust relation ship to the esx server.

cron entry already exists.
ash: chage: not found
ESX account info for root:

Successfully added statistic collection from ts-host.


You should start seeing stats from ts-host in a few minutes.
[root@vmktree vmktree-0.3.0]#

-------------------------------------------------

Lars Troen

unread,
Oct 31, 2010, 2:11:48 PM10/31/10
to vmk...@googlegroups.com
Paul,
Did you try the steps outlined here?
http://www.marcosorfila.com/site/vmktree-disable-root-ssh-password-logins-in-vmware-esxi-4-1/

Lars

> --
> You received this message because you are subscribed to the Google Groups "vmktree" group.
> To post to this group, send email to vmk...@googlegroups.com.
> To unsubscribe from this group, send email to vmktree+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/vmktree?hl=en.
>

--

Paul Dickson

unread,
Oct 31, 2010, 5:51:44 PM10/31/10
to vmktree
I'm don't see the relevance to making vmktree work. If root logins
via ssh to the host work currently, locking it down is superfluous and
can be done after the fact. No?

On Oct 31, 2:11 pm, Lars Troen <lar...@colargol.tihlde.org> wrote:
> Paul,
> Did you try the steps outlined here?http://www.marcosorfila.com/site/vmktree-disable-root-ssh-password-lo...
> >http://kb.vmware.com/selfservice/viewContent.do?language=en_US&extern...
> > A normal user is normally prefered over root for this task.
>
> > Please wait. This will probably take 15-20 seconds....
>
> > You have activated Tech Support Mode.
> > The time and date of this activation have been sent to the system
> > logs.
>
> > VMware offers supported, powerful system administration tools.  Please
> > seewww.vmware.com/go/sysadmintoolsfor details.

Paul Dickson

unread,
Oct 31, 2010, 7:01:49 PM10/31/10
to vmktree

I did just find a file called 'ts-host.txt" with the help info of the
ssh command indicating improper syntax. The output of this command is
from the ssh command on the centos machine as the output of the ssh
shortcut to the ssh client on the esxi host puts out a completely
different help output.

[root@vmktree ~]# cat /var/www/vmktree-data/sys/ts-host.txt
usage: ssh [-1246AaCfgkMNnqsTtVvXxY] [-b bind_address] [-c
cipher_spec]

[-D [bind_address:]port] [-e escape_char] [-F configfile]

[-i identity_file] [-L [bind_address:]port:host:hostport]

[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p
port]

[-R [bind_address:]port:host:hostport] [-S ctl_path]

[-w tunnel:tunnel] [user@]hostname [command]


If VMKTree isn't using the correct ssh syntax, I don't think having
the key pre-shared is going yield any different results.

Paul Dickson

unread,
Oct 31, 2010, 11:08:15 PM10/31/10
to vmktree
UPDATE:.
I created the needed folder every time the manual running of the
scheduled cron command said the folder didn't exist. ->
------------------

[root@vmktreee ~]# /usr/bin/vmktree-esx3-collector ts-host root
vmktree-esxtop-collector already running. PID=4412
/usr/bin/perl/usr/bin/vmktree-esxtop-collectorts-hostroot
ERROR: creating '/var/www/vmktree-data/vm/564d0ce17048446b-
b24dd5ab9f7e136a/memory.rrd': No such file or directory
ERROR: creating '/var/www/vmktree-data/vm/564d0ce17048446b-
b24dd5ab9f7e136a/swap.rrd': No such file or directory
can't open state file: No such file or directory at /usr/bin/vmktree-
esx3-collector line 775.
[root@vmktreee ~]# mkdir /var/www/vmktree-data/vm/564d0ce17048446b-
b24dd5ab9f7e136a
--------------------

The result is below. The vmk cron job also seemed to have eventually
made the vm-list.ts-host file, which didn't exist until i created all
of those:
--------------------
[root@vmktreee ~]# ls -al /var/www/vmktree-data/vm/
564d0ce17048446b-b24dd5ab9f7e136a/ 564dec714e9b0ac4-83eb992364e0cc33/
564d33fdee328cd0-135a930d5997e001/ 564ded9e005797bf-510674e07821a4f8/
564d480f0f82dc7d-cf37ae5fe4bc54b6/ vm-list.ts-host
564d94e0c7893edc-147b1f4ed44b8b59/
---------------------

The data is now showing in the web interface, except no CPU
utilization(or cpu graph/field) for guests. Also, new VM's have to
have their stat folder manually created.:
---------------------
[root@vmktreee ~]# /usr/bin/vmktree-esx3-collector ts-host root
ERROR: creating '/var/www/vmktree-data/vm/
564ddcd7de7cb4eb-633396a9d301fb24/memory.rrd': No such file or
directory
ERROR: creating '/var/www/vmktree-data/vm/
564ddcd7de7cb4eb-633396a9d301fb24/swap.rrd': No such file or directory
can't open state file: No such file or directory at /usr/bin/vmktree-
esx3-collector line 775.
[root@vmktreee ~]#
---------------------




Lars Troen

unread,
Nov 3, 2010, 9:24:19 AM11/3/10
to vmk...@googlegroups.com

Paul,
I've found out the cause of this problem and I'm working on a solution. The problem is not your OS, but that the format when retrieving data from 4.1 has changed and we need to make vmktree understand this better.

Will hopefully have a solution within a few days or so.

Lars

Paul Dickson

unread,
Nov 3, 2010, 4:41:13 PM11/3/10
to vmktree
Great, thanks Lars!

dmatrix7

unread,
Nov 8, 2010, 1:51:52 PM11/8/10
to vmktree
I am also having a similar problem with ESXi 4.1. When I try and run
the esxcfg-info command I see these errors are outputted. This only
happens once VMs are added to the host. After this CPU reporting seems
to be broken.

[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping CPU times for :
Vcpu Id 776460 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping VCPU stats
for : Vcpu Id 776460 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping CPU times for :
Vcpu Id 776462 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping VCPU stats
for : Vcpu Id 776462 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping CPU times for :
Vcpu Id 776463 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping VCPU stats
for : Vcpu Id 776463 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping CPU times for :
Vcpu Id 776464 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping VCPU stats
for : Vcpu Id 776464 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping CPU times for :
Vcpu Id 888024 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping VCPU stats
for : Vcpu Id 888024 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping CPU times for :
Vcpu Id 883930 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping VCPU stats
for : Vcpu Id 883930 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping CPU times for :
Vcpu Id 888027 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping VCPU stats
for : Vcpu Id 888027 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping CPU times for :
Vcpu Id 888028 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping VCPU stats
for : Vcpu Id 888028 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping CPU times for :
Vcpu Id 2360306 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping VCPU stats
for : Vcpu Id 2360306 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping CPU times for :
Vcpu Id 2360308 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping VCPU stats
for : Vcpu Id 2360308 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping CPU times for :
Vcpu Id 2360309 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping VCPU stats
for : Vcpu Id 2360309 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping CPU times for :
Vcpu Id 2360310 Times due to error
[2010-11-08 18:50:49 'ResourceGroup' warning] Skipping VCPU stats
for : Vcpu Id 2360310 Times due to error

Lars Troen

unread,
Nov 8, 2010, 5:28:15 PM11/8/10
to vmk...@googlegroups.com
I'm also seeing these exact same error messages when running esxcfg-info with the -a or -r option..

Suspect it's a bug in esxcfg-info....

Lars

> > On Nov 3, 9:24?am, Lars Troen <lar...@colargol.tihlde.org> wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Paul,
> > > I've found out the cause of this problem and I'm working on a solution. The problem is not your OS, but that the format when retrieving data from 4.1 has changed and we need to make vmktree understand this better.
> >
> > > Will hopefully have a solution within a few days or so.
> >
> > > Lars
> >
> > > On Sun, Oct 31, 2010 at 08:08:15PM -0700, Paul Dickson wrote:
> >
> > > > UPDATE:.
> > > > I created the needed folder every time the manual running of the
> > > > scheduled cron command said the folder didn't exist. ->
> > > > ------------------
> >
> > > > [root@vmktreee ~]# /usr/bin/vmktree-esx3-collector ts-host root
> > > > vmktree-esxtop-collector already running. PID=4412

> > > > ?/usr/bin/perl/usr/bin/vmktree-esxtop-collectorts-hostroot


> > > > ERROR: creating '/var/www/vmktree-data/vm/564d0ce17048446b-
> > > > b24dd5ab9f7e136a/memory.rrd': No such file or directory
> > > > ERROR: creating '/var/www/vmktree-data/vm/564d0ce17048446b-
> > > > b24dd5ab9f7e136a/swap.rrd': No such file or directory
> > > > can't open state file: No such file or directory at /usr/bin/vmktree-
> > > > esx3-collector line 775.
> > > > [root@vmktreee ~]# mkdir /var/www/vmktree-data/vm/564d0ce17048446b-
> > > > b24dd5ab9f7e136a
> > > > --------------------
> >

> > > > The result is below. ?The vmk cron job also seemed to have eventually


> > > > made the vm-list.ts-host file, which didn't exist until i created all
> > > > of those:
> > > > --------------------
> > > > [root@vmktreee ~]# ls -al /var/www/vmktree-data/vm/
> > > > 564d0ce17048446b-b24dd5ab9f7e136a/ 564dec714e9b0ac4-83eb992364e0cc33/
> > > > 564d33fdee328cd0-135a930d5997e001/ 564ded9e005797bf-510674e07821a4f8/
> > > > 564d480f0f82dc7d-cf37ae5fe4bc54b6/ vm-list.ts-host
> > > > 564d94e0c7893edc-147b1f4ed44b8b59/
> > > > ---------------------
> >
> > > > The data is now showing in the web interface, except no CPU

> > > > utilization(or cpu graph/field) for guests. ?Also, new VM's have to

tomb1015

unread,
Nov 10, 2010, 2:43:22 PM11/10/10
to vmktree
Hello,

Has there been any update to Paul's issue with not seeing any cpu
stats? I have created the missing folders and they have populated with
all the information except no CPU utilization.

Thanks,
Reply all
Reply to author
Forward
0 new messages