Commit Graph

1086 Commits

Author SHA1 Message Date
Nicolargo
a854f3d5d5 Update NEWS 2014-05-25 18:19:40 +02:00
Alessio Sergi
3d84f31876 Use with statement
Use with statement when working with files whenever possible.
Use os.makedirs() to create Glances target directory and all parent
ones as needed.
2014-05-24 15:36:01 +02:00
Nicolargo
c68fc5d5c1 Delete process number in the unitarytest 2014-05-24 15:11:53 +02:00
Nicolargo
2eefcdf613 Merge branch 'develop' of github.com:nicolargo/glances into develop 2014-05-24 14:54:50 +02:00
Nicolargo
887921b2e2 Correct issue on the Web server mode 2014-05-24 14:54:22 +02:00
Alessio Sergi
686ffb6085 Drop Python 3.2 support in favor of Python 3.3 and newer
Python 3.0, 3.1 and 3.2 do not support the u'' string literal syntax at all.
Unicode string literals were introduced in Python 3.3 again.

See http://legacy.python.org/dev/peps/pep-0414/ for more information.
2014-05-23 16:41:14 +02:00
Alessio Sergi
1194320d03 password: python3 fix
- encode password in UTF-8 before hash it
- raw_input() -> input()
2014-05-23 15:15:15 +02:00
Alessio Sergi
d8d7e93ad1 CSV: python3 fix
- CSV module is in python stdlib
- more cleaning
2014-05-23 13:05:23 +02:00
Alessio Sergi
d4ea4867d8 Cleaning up *.py files
- remove obsolete code
- glances_password: update comments and fix typos
- re-apply fix to avoid string format conflicts (screwed up after
  feature branch merges)
- strip trailing whitespaces
- flake8
2014-05-22 11:22:22 +02:00
Nicolargo
621cd74652 Merge branch 'feature/savepassword' into develop 2014-05-21 21:39:05 +02:00
Nicolargo
472b4c501b Use SHA256 instead of MD5 for the network transfert 2014-05-21 21:38:27 +02:00
Nicolargo
e0b87afaba Thk to PyLint some quality code improvements, pfff... 2014-05-21 19:24:47 +02:00
Nicolargo
6a4ca99ff4 Thk to PyLint some quality code improvements 2014-05-21 19:21:30 +02:00
Nicolargo
64a6108b37 Update documentation for the 2.0 2014-05-21 14:43:00 +02:00
Nicolargo
31e93e5c14 Add the unitest.py file 2014-05-21 13:48:07 +02:00
Nicolargo
922c4cb2d0 Refactor unitaries tests 2014-05-21 13:43:21 +02:00
Nicolargo
f7b94229b1 Refactor the password management 2014-05-20 20:18:44 +02:00
Nicolargo
59f82b788c Implement the CSV output 2014-05-17 21:18:29 +02:00
Nicolargo
b897168a9b Correct issue on the load display plugin 2014-05-15 22:37:31 +02:00
Nicolargo
f9533a66fd Merge branch 'feature/snmpclient' into develop
Conflicts:
	glances/plugins/glances_cpu.py
	glances/plugins/glances_load.py
2014-05-15 22:28:19 +02:00
Nicolas Hennion
4881fb6c52 version 1.7.7 2014-05-14 11:30:47 +02:00
Nicolargo
0a0be7bbd7 SNMP client: replace input args by set and get method 2014-05-12 22:16:31 +02:00
Nicolargo
28c7f7f311 SNMP client: SNMP grab for file system is optimized with a SNMP bulk command 2014-05-11 22:27:13 +02:00
Nicolargo
05e31d19ea SNMP client: SNMP grab for network interface is optimized with a SNMP bulk command :) 2014-05-11 22:14:25 +02:00
Alessio Sergi
8d895f1845 Add Python 3.4 support
Add Python 3.4 to .travis.yml.
2014-05-11 20:00:00 +02:00
Alessio Sergi
e0d9302fe7 Update README.rst 2014-05-11 19:55:55 +02:00
Alessio Sergi
b6339ed76d Small fixes and improvements
README.rst: Add Slackware http://slackbuilds.org/repository/14.1/system/glances/
2014-05-11 17:11:17 +02:00
Alessio Sergi
535793da05 psutil 2.1.1 2014-05-11 16:55:50 +02:00
Alessio Sergi
f97f10058a Python 3.4
Python 3.4 is now supported.
Add Python 3.4 to .travis.yml.
2014-05-11 16:50:11 +02:00
Alessio Sergi
2d0d5d6086 Fix CVS export [issue #348]
While I was there:
- complete overhaul of the CVS class
- fix open file issue w/ python3
- has_key() option was removed in python3
- usage simplified: there is no need to define the CVS filename, only the
  output folder, as for the HTML export
- update help, doc and man accordingly
- fix typos
2014-05-11 16:19:16 +02:00
Nicolargo
58e95d6ed3 Check if mem stat is available before converted it to KB 2014-05-10 17:05:17 +02:00
Nicolargo
7be75ff24f Allow SNMP v3: To be verified/check 2014-05-10 17:00:06 +02:00
Nicolargo
6b143368fd Allow SNMP v3: To be verified/check 2014-05-10 16:59:09 +02:00
Nicolargo
35ad7eb3fb Add configuratino varfor SNMP community and port number 2014-05-10 16:36:01 +02:00
Nicolargo
dbb2476339 SNMP client: compute ifNumber if it is not available 2014-05-10 16:22:00 +02:00
Nicolargo
88a48444eb Manage SNMP if there is no standard stats 2014-05-10 13:20:18 +02:00
Nicolargo
cbf9bdcf54 Add note for future optimisation 2014-05-09 20:28:37 +02:00
Alessio Sergi
df0477ffa6 Fix string format conflicts 2014-05-08 15:28:27 +02:00
Alessio Sergi
6c3ea7f293 Fix wrong display in memory and swap 2014-05-07 17:27:00 +02:00
Alessio Sergi
3687321b30 Miscellaneous fixes and improvements
Rules of thumb:
- setup.py only <=, >=
- requirements.txt only ==
2014-05-07 16:59:59 +02:00
Nicolargo
c3ba3f64e6 Add args visibility to the plugins to handle with the SNMP server properties (address, community...) 2014-05-07 11:06:53 +02:00
Nicolargo
2fec33adf3 Change connection message. Add SNMP client 2014-05-07 09:53:57 +02:00
Nicolargo
6a3701f388 Correct encoding/deconfing problem with special caracter 2014-05-07 09:39:06 +02:00
Nicolargo
2222cf0fbc SNMP client: all plugin OK except processing list. To hight CPU consump with the standard loop 2014-05-06 23:20:27 +02:00
Nicolargo
ff5bbefa1b Difficult to get CPU core number via SNMP. Bypass 2014-05-06 22:32:49 +02:00
Alessio Sergi
6fa10b5a2b Process list: Highlight process niceness
Highlight the nice value of a process when is different from 0.
Add 'NICE' decoration for managing color.
2014-05-06 16:36:36 +02:00
Alessio Sergi
29fdeec161 Add 'PROCESS' and 'STATUS' decorations
It's now possible to define specific colors for both process name and
process status.
2014-05-06 16:06:49 +02:00
Nicolargo
7d4024a9f0 SNMP grab OK for file system 2014-05-06 15:37:43 +02:00
Alessio Sergi
15ea33461f Process list: Highlight process basename
Neither regex, nor str.find() were used. Yeah!
2014-05-06 13:07:05 +02:00
Alessio Sergi
d452b5b76f Revert "Process list: Highlight process basename"
The regex makes Glances crash when the system is under heavy load,
e.g., during compilation of packages.

This reverts commit 565ec32ffe.
2014-05-05 15:00:00 +02:00