continue work on new sensor model
diff --git a/sensors/config.yaml b/sensors/config.yaml
index 61f622b..d9ce8bb 100644
--- a/sensors/config.yaml
+++ b/sensors/config.yaml
@@ -1,4 +1,4 @@
-127.0.0.1:
+192.168.0.104:
block-io:
allowed_prefixes: [sda1, rbd1]
net-io:
@@ -6,18 +6,18 @@
# 192.168.152.39:
# block-io:
-# allowed_prefixes: [sdb]
+# allowed_prefixes: [sdb, sdc]
# net-io:
# allowed_prefixes: [eth0]
# 192.168.152.40:
# block-io:
-# allowed_prefixes: [sdb]
+# allowed_prefixes: [sdb, sdc]
# net-io:
# allowed_prefixes: [eth0]
# 192.168.152.41:
# block-io:
-# allowed_prefixes: [sdb]
+# allowed_prefixes: [sdb, sdc]
# net-io:
# allowed_prefixes: [eth0]
diff --git a/sensors/deploy_sensors.py b/sensors/deploy_sensors.py
index b7e29b3..f3bb2ba 100644
--- a/sensors/deploy_sensors.py
+++ b/sensors/deploy_sensors.py
@@ -45,8 +45,7 @@
conn.exec_command(cmd)
sftp.close()
conn.close()
- except Exception as exc:
- print exc
+ except:
return False
return True
@@ -57,8 +56,9 @@
cmd_templ = "python {0} -d stop"
conn.exec_command(cmd_templ.format(main_remote_path))
+
+ # some magic
time.sleep(0.3)
- # print out.read(), err.read()
conn.exec_command("rm -rf {0}".format(remote_path))