Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo Duarte <gduarte@activitycentral.com>2013-01-16 16:30:09 (GMT)
committer Gustavo Duarte <gduarte@activitycentral.com>2013-01-16 16:30:09 (GMT)
commite1cbb65cc9e5de1c208d96b53281aec6519c75f1 (patch)
tree84626b8d10fb187de7b8323bd2fc26beb14b41a4
parente08c9ff4aac2c5ba669c1d588145455fa68d802f (diff)
Add test_rrds_contetn.py script to test only the content of rrd file
-rwxr-xr-xsrc/stats_consolidation/test_rrds_content.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/stats_consolidation/test_rrds_content.py b/src/stats_consolidation/test_rrds_content.py
new file mode 100755
index 0000000..959b618
--- /dev/null
+++ b/src/stats_consolidation/test_rrds_content.py
@@ -0,0 +1,33 @@
+#!/usr/bin/env python
+
+import argparse
+from db import *
+from rrd_files import *
+from db import *
+
+parser = argparse.ArgumentParser()
+parser.add_argument('--rrd_path',required=False)
+parser.add_argument('--rrd_name',required=True)
+
+args = parser.parse_args()
+
+print "============================== TEST RRD analyze content ========================================"
+
+if args.rrd_path == None:
+ def_path = "/home/gustavo/AC/consolidation/rrds"
+else:
+ def_path = args.rrd_path
+
+act_rrd = RRD (path=def_path, name=args.rrd_name)
+
+"""
+act_rrd.show_valid_ds("resumed")
+act_rrd.show_valid_ds("new")
+act_rrd.show_valid_ds("instances")
+act_rrd.show_valid_ds("buddies")
+"""
+act_rrd.show_valid_ds("uptime")
+act_rrd.show_valid_ds("active")
+
+act_rrd.get_uptime_by_interval()
+act_rrd.get_active_by_interval()