You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,14 @@ This will enable detailed logging to folder "logs" which is as sub folder of the
53
53
54
54
Changelog
55
55
=========
56
+
24-02-2015
57
+
----------
58
+
- Added support for multiprocessing, now sensors are spawned as subprocesses (merged branch experimental with master)
59
+
- fixed some indentation stuff (tabs instead of whitespaces)
60
+
- fixed function get_config_key in probe_installer.py as key was set to None type all the time, fixed some sensors to put return data in the queue rather than simply returning it.
61
+
- other minor fixes resp. code cleanup
62
+
- preparation for a workflow (no direct commits to master any more)
63
+
56
64
14-02-2015
57
65
----------
58
66
- Added full support for the DS18B20 and a lot of cleanup and fixes
sens="%s"%str(raw_input(bcolor.GREEN+"Please enter the id's of the temperature sensors you want to use from the list above, seperated with a , ["+sensors[1:].strip("\"") +"]: "+bcolor.END)).rstrip().lstrip()
183
184
ifnotsens=="":
184
-
tmpSens=""
185
-
foriinsens.split(","):
186
-
tmpSens=tmpSens+",\""+i+"\""
185
+
tmpSens=""
186
+
foriinsens.split(","):
187
+
tmpSens=tmpSens+",\""+i+"\""
187
188
returntmpSens[1:].strip()
188
189
else:
189
-
returnsensors[1:]
190
+
returnsensors[1:]
190
191
191
192
defget_config_user(default="root"):
192
193
tmpUser="%s"%str(raw_input(bcolor.GREEN+"Please provide the username the script should run under ["+default+"]: "+bcolor.END)).rstrip().lstrip()
193
194
ifnottmpUser=="":
194
195
returntmpUser
195
196
else:
196
-
returndefault
197
+
returndefault
197
198
198
199
defget_config_name(default):
199
200
tmpName="%s"%str(raw_input(bcolor.GREEN+"Please provide the desired name of your Mini Probe ["+default+"]: "+bcolor.END)).rstrip().lstrip()
printbcolor.YELLOW+"PRTG Server can not be reached. Please make sure the server is reachable."+bcolor.END
221
+
go_on="%s"%str(raw_input(bcolor.YELLOW+"Do you still want to continue using this server [y/N]: "+bcolor.END)).rstrip().lstrip()
221
222
ifnotgo_on.lower() =="y":
222
-
returnget_config_ip()
223
-
else:
224
-
printbcolor.GREEN+"PRTG Server can be reached. Continuing..."+bcolor.END
225
-
returntmpIP
223
+
returnget_config_ip()
224
+
else:
225
+
printbcolor.GREEN+"PRTG Server can be reached. Continuing..."+bcolor.END
226
+
returntmpIP
226
227
else:
227
-
printbcolor.YELLOW+"You have not provided an IP/DNS name of the PRTG Core Server."+bcolor.END
228
-
returnget_config_ip()
228
+
printbcolor.YELLOW+"You have not provided an IP/DNS name of the PRTG Core Server."+bcolor.END
229
+
returnget_config_ip()
229
230
230
231
defget_config_port(default):
231
232
tmpPort="%s"%str(raw_input(bcolor.GREEN+"Please provide the port the PRTG web server is listening to (IMPORTANT: Only SSL is supported)["+default+"]: "+bcolor.END)).rstrip().lstrip()
tmpAccessKey="%s"%str(raw_input(bcolor.GREEN+"Please provide the Probe Access Key as defined on the PRTG Core ["+default+"]: "+bcolor.END)).rstrip().lstrip()
246
-
ifnot (tmpAccessKey=="") ornot (default==""):
247
-
if (tmpAccessKey=="") andnot (default==""):
248
-
tmpAccessKey=default
249
-
returntmpAccessKey
247
+
if (tmpAccessKey=="") andnot (default==""):
248
+
tmpAccessKey=default
250
249
else:
251
-
printbcolor.YELLOW+"You have not provided the Probe Access Key as defined on the PRTG Core."+bcolor.END
252
-
returnget_config_access_key()
250
+
printbcolor.YELLOW+"You have not provided the Probe Access Key as defined on the PRTG Core."+bcolor.END
tmpDebug="%s"%str(raw_input(bcolor.GREEN+"Do you want to enable debug logging ("+bcolor.YELLOW+"can create massive logfiles!"+bcolor.GREEN+") [y/N]: "+bcolor.END)).rstrip().lstrip()
278
284
iftmpDebug.lower() =="y":
279
-
tmpDebug1="%s"%str(raw_input(bcolor.YELLOW+"Are you sure you want to enable debug logging? This will create massive logfiles [y/N]: "+bcolor.END)).rstrip().lstrip()
280
-
iftmpDebug1.lower() =="y":
285
+
tmpDebug1="%s"%str(raw_input(bcolor.YELLOW+"Are you sure you want to enable debug logging? This will create massive logfiles [y/N]: "+bcolor.END)).rstrip().lstrip()
probe_config_exists="%s"%str(raw_input(bcolor.YELLOW+"A config file was already found. Do you want to reconfigure [y/N]: "+bcolor.END)).rstrip().lstrip()
367
374
ifprobe_config_exists.lower() =="y":
368
375
config_old=read_config(path)
369
-
get_config(config_old)
370
-
else:
371
-
print""
376
+
get_config(config_old)
377
+
else:
378
+
print""
372
379
uninstall="%s"%str(raw_input(bcolor.YELLOW+"Do you want to Uninstall or Restart the service [u/R]: "+bcolor.END)).rstrip().lstrip()
0 commit comments