milahu / xfce4-hardware-monitor-plugin Goto Github PK
View Code? Open in Web Editor NEWimported from https://gitlab.xfce.org/panel-plugins/xfce4-hardware-monitor-plugin
License: GNU General Public License v3.0
imported from https://gitlab.xfce.org/panel-plugins/xfce4-hardware-monitor-plugin
License: GNU General Public License v3.0
26.11.14: Now accepted/moved into XFCE4 panel-plugins! http://git.xfce.org/panel-plugins/xfce4-hardware-monitor-plugin/ Hardware Monitor ---------------- Hardware Monitor is a monitor plugin for the XFCE4 panel (originally the GNOME panel). It supports a variety of monitoring capabilities (CPU usage, network throughput etc.) and different kinds of viewers (curves, bars, columns, text, flames). It is licensed under the GNU GPL v3 or later. Breaking changes ---------------- 1.4.6 upgrade: See NEWS/Changelog. Requirements ------------ You need a modern XFCE4 desktop (i.e. at least XFCE 4.4 I think) with the related libraries and the C++ wrappers for GTK+ and the Gnome canvas library - gtkmm, libglademm and libgnomecanvasmm. These can be fetched from http://www.gtkmm.org, or are alternatively probably available as packages from your distributor. Also, to compile the program you need the development files for the XFCE4 panel, the XFCE4 user interface library libgtop. The following are the correct packages on Debian Testing as of 7.11.13: libglademm-2.4-dev libgnomecanvasmm-2.6-dev libgtkmm-2.4-dev libgtop2-dev libxfce4ui-1-dev xfce4-panel-dev If you have libsensors from the lm-sensors package installed at compile time, the configure script will detect it and add support for monitoring temperatures and fan speeds (if the library is not found, the relevant UI is hidden). libgnomecanvas (which libgnomecanvasmm binds) has a stupid memory leak in its paint routine, which I have reported: My bug: OmegaPhil/hardware-monitor-applet#5 Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=753621 GNOME bug: https://bugzilla.gnome.org/show_bug.cgi?id=729717 In both cases the bug has been ignored. Running the plugin for days will gradually cause the RSS to increase without limit - for Debian users I have produced fixed i386 and amd64 Debian archives - https://github.com/OmegaPhil/libgnomecanvas/tree/pkg Compiling from source --------------------- Note that when you compile from source, the file hardware-monitor.desktop must end up a place where the panel can find it. Else you will not be able to find the plugin in the right-click panel menu. This place is usually /usr/share/xfce4/panel/plugins/. If you run configure with ./configure --prefix=/usr and install the plugin, it will work. To set up the build environment for the usual ./configure && make && make install, run the provided autogen.sh script first - autoconf, libtool and intltool need to be installed for this script to work. Debian archives --------------- See http://git.xfce.org/panel-plugins/xfce4-hardware-monitor-plugin/tree/?h=omegaphil/pkg Bugs and feature requests ------------------------- Please report at https://bugzilla.xfce.org/describecomponents.cgi?product=Xfce4-hardware-monitor-plugin
i want to monitor disk usage, similar to sudo iotop
config for xfce4-hardware-monitor-plugin:
device > storage > disk statistics
disk: sda
stat: number of bytes read per duration
problems:
in the config-dropdown 'disk' no disks are suggested
values are always zero, mouse-hover says: -nan B/s
console output:
Unable to parse device stats line from '/proc/diskstats' - regex match failure:
8 0 sda 32699 26992 2388388 52799 10467 63502 547260 105553 0 106377 160857 0 0 0 0 1293 2504
source:
xfce4-hardware-monitor-plugin/src/monitor-impls.cpp
Lines 1270 to 1279 in a7763c1
problem:
xfce4-hardware-monitor-plugin depends on old and buggy libraries, like libgnomecanvas
OmegaPhil/hardware-monitor-applet#5
solution:
moving on to
https://github.com/udda/multiload-ng
62 x warning: ‘template<class> class std::auto_ptr’ is deprecated
./src/curve-view.hpp:51: std::auto_ptr<Gnome::Canvas::Line> line;
./src/column-view.hpp:54: std::auto_ptr<Gnome::Canvas::Pixbuf> columns;
./src/flame-view.hpp:52: std::auto_ptr<Gnome::Canvas::Pixbuf> flame;
./src/canvas-view.hpp:87: std::auto_ptr<Gnome::Canvas::Canvas> canvas;
./src/plugin.hpp:153: std::auto_ptr<Gtk::AboutDialog> about;
./src/plugin.hpp:154: std::auto_ptr<View> view;
./src/plugin.hpp:155: std::auto_ptr<PreferencesWindow> preferences_window;
./src/text-view.cpp:46: std::auto_ptr<Gtk::Label> label;
also:
17 x warning: ‘GTimeVal’ is deprecated: Use 'GDateTime' instead
14 x warning: ‘GTypeDebugFlags’ is deprecated
via
/usr/include/xfce4/libxfce4panel-1.0/libxfce4panel/xfce-panel-plugin.h
/usr/include/gtkmm-2.4/gtkmm
/usr/include/libgnomecanvasmm-2.6/libgnomecanvasmm
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.