Commit graph

9 commits

Author SHA1 Message Date
jellium
53e19fa32d [fix] Replace deprecated psutil.BOOT_TIME attribute
The `psutil.BOOT_TIME` attribute appears to be deprecated, and returns an `AttributeError` when called.
Even though the psutil documentation states that old attributes should be callable, one should use `psutil.boot_time()` function instead.
In some version of psutil (e.g. 2.1.1), both appear callable. In old versions (e.g. 1.2.1), `psutil.BOOT_TIME` is but `psutil.boot_time()` is not. In the newest version (4.3.0), only the latter can be called.

This bug would introduce an Internal Server Error (Error 500) when accessing the Monitor tool in the YunoHost admin panel.
2016-07-13 21:05:10 +02:00
Jérôme Lebleu
0d210e2e54 [ref] Invert no-stats option to with-stats in monitor_enable
Since monitoring statistics was not finished - and by the way not usable,
it inverts the behavior of monitor_enable to disable it by default.
See #395 for more details.
2016-06-04 22:28:17 +02:00
opi
4cabb2f7f9 [enh] Use named arguments with m18n. 2016-03-27 15:56:41 +02:00
Jérôme Lebleu
8aa64a0641 [enh] Use a common method to retrieve public IP address 2016-03-08 11:10:28 +01:00
Jérôme Lebleu
5f08eb06ae [enh] Use https to retrieve public IP address 2016-03-08 11:10:28 +01:00
Jérôme Lebleu
32e8285125 [fix] Be less restricitve on network interfaces name in monitoring 2016-03-01 21:40:08 +01:00
Jérôme Lebleu
5451f09b69 [fix] Keep 'avail' key - removed from glances - in disk fs monitoring 2016-03-01 21:25:52 +01:00
Jérôme Lebleu
173d32134e [enh] Replace msignals.display by logging in monitor.py 2016-03-01 21:01:32 +01:00
Jérôme Lebleu
908d77f234 [ref] Rename lib folder to src 2015-10-08 15:47:24 +02:00
Renamed from lib/yunohost/monitor.py (Browse further)