Hello Özhan,

        Have you checked JOB table at your database ?  Try to log in into usage 
database and 

        select * from usage_job;

        If you don't see anything probably you haven't installed java mysql 
connector 

Vadim.

-----Original Message-----
From: Özhan Rüzgar Karaman [mailto:[email protected]] 
Sent: Tuesday, July 28, 2015 11:55 AM
To: [email protected]
Subject: Enabling CloudStack Usage Server Problem

Hi;
I am using CloudStack 4.5.1 with KVM clients. I have problem with getting vm 
usage statistics, i could not able to start/operate CloudStack Usage Deamon. I 
could not see any values under Mysql cloud_usage database. My settings are 
below...

Thanks
Özhan

*Global Settings Parameters:*
usage.aggregation.timezone : GMT
usage.execution.timezone : GMT
enable.usage.server : true
publish.usage.events : true
usage.stats.job.exec.time: 13:35
usage.stats.job.aggregation.range :10

*root@cloudstack:~# dpkg -l|grep clouds*
ii  *clouds*tack-common                   4.5.1-shapeblue-00
all          A common package which contains files which are shared by
several CloudStack packages
ii  *clouds*tack-management               4.5.1-shapeblue-00
all          CloudStack server library
ii  *clouds*tack-usage                    4.5.1-shapeblue-00
all          CloudStack usage monitor

*root@cloudstack:/var/log/cloudstack/management# cat management-server.log|grep 
usage*
2015-07-28 11:29:32,784 INFO  [c.c.h.HighAvailabilityManagerImpl]
(HA-5:ctx-f8b40397) checking health of *usage* server
2015-07-28 11:29:32,786 DEBUG [c.c.h.HighAvailabilityManagerImpl]
(HA-5:ctx-f8b40397) *usage* server running? true, heartbeat: Tue Jul 28
11:29:15 EEST 2015
2015-07-28 11:39:32,784 INFO  [c.c.h.HighAvailabilityManagerImpl]
(HA-5:ctx-0383793a) checking health of *usage* server
2015-07-28 11:39:32,786 DEBUG [c.c.h.HighAvailabilityManagerImpl]
(HA-5:ctx-0383793a) *usage* server running? true, heartbeat: Tue Jul 28
11:39:15 EEST 2015

*root@cloudstack:/var/log/cloudstack/usage# tailf usage.log *
2015-07-27 13:22:00,152 INFO  [utils.component.ComponentContext]
(main:null) Starting
com.cloud.user.dao.UserAccountDaoImpl_EnhancerByCloudStack_3605546c
2015-07-27 13:22:00,152 INFO  [utils.component.ComponentContext]
(main:null) Starting
com.cloud.usage.dao.UsageNetworkDaoImpl_EnhancerByCloudStack_d8d23a61
2015-07-27 13:22:00,152 INFO  [utils.component.ComponentContext]
(main:null) Starting
com.cloud.alert.dao.AlertDaoImpl_EnhancerByCloudStack_b9e90fb5
2015-07-27 13:22:00,153 INFO  [utils.component.ComponentContext]
(main:null) Starting
com.cloud.user.dao.VmDiskStatisticsDaoImpl_EnhancerByCloudStack_f62ca44d
2015-07-27 13:22:00,153 INFO  [utils.component.ComponentContext]
(main:null) Starting
com.cloud.user.dao.UserDaoImpl_EnhancerByCloudStack_36959499
2015-07-27 13:22:00,153 INFO  [utils.component.ComponentContext]
(main:null) Starting
com.cloud.usage.dao.UsageVMSnapshotDaoImpl_EnhancerByCloudStack_66e10368
2015-07-27 13:22:00,153 INFO  [utils.component.ComponentContext]
(main:null) Starting
com.cloud.usage.UsageManagerImpl_EnhancerByCloudStack_38bd4b32
2015-07-27 13:22:00,154 INFO  [cloud.usage.UsageManagerImpl] (main:null) 
Starting Usage Manager
2015-07-27 13:22:00,262 INFO  [utils.component.ComponentContext]
(main:null) Starting
com.cloud.usage.UsageAlertManagerImpl_EnhancerByCloudStack_34791552
2015-07-27 13:22:00,262 INFO  [cloud.usage.UsageServer] (main:null) UsageServer 
ready...


*root@cloudstack:/var/log/cloudstack/usage# ls -l /etc/cloudstack/usage/*total
4
lrwxrwxrwx 1 root root   40 Jul 27 12:09 *db.properties* ->
/etc/cloudstack/management/db.properties
lrwxrwxrwx 1 root root   30 Jul 27 12:09 *key* ->
/etc/cloudstack/management/key
-rw-r--r-- 1 root root 2966 May  6 03:19 log4j-cloud.xml

Reply via email to