summaryrefslogtreecommitdiffstats
path: root/glances/core/glances_client.py
diff options
context:
space:
mode:
Diffstat (limited to 'glances/core/glances_client.py')
-rw-r--r--glances/core/glances_client.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/glances/core/glances_client.py b/glances/core/glances_client.py
index c09f0cb0..755b88c0 100644
--- a/glances/core/glances_client.py
+++ b/glances/core/glances_client.py
@@ -2,7 +2,7 @@
#
# This file is part of Glances.
#
-# Copyright (C) 2014 Nicolargo <nicolas@nicolargo.com>
+# Copyright (C) 2015 Nicolargo <nicolas@nicolargo.com>
#
# Glances is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
@@ -136,7 +136,7 @@ class GlancesClient(object):
if self.get_mode() == 'glances' and version.split('.')[0] == client_version.split('.')[0]:
# Init stats
- self.stats = GlancesStatsClient()
+ self.stats = GlancesStatsClient(config=self.config, args=self.args)
self.stats.set_plugins(json.loads(self.client.getAllPlugins()))
logger.debug(
"Client version: %s / Server version: %s" % (version, client_version))
@@ -153,7 +153,7 @@ class GlancesClient(object):
from glances.core.glances_stats import GlancesStatsClientSNMP
# Init stats
- self.stats = GlancesStatsClientSNMP(args=self.args)
+ self.stats = GlancesStatsClientSNMP(config=self.config, args=self.args)
if not self.stats.check_snmp():
self.log_and_exit("Connection to SNMP server failed")
@@ -234,6 +234,9 @@ class GlancesClient(object):
cs_status=cs_status,
return_to_browser=self.return_to_browser)
+ # Export stats using export modules
+ self.stats.export(self.stats)
+
return self.get_mode()
def end(self):