Giter Club home page Giter Club logo

xfce4-hardware-monitor-plugin's Introduction

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

xfce4-hardware-monitor-plugin's People

Contributors

milahu avatar omegaphil avatar

Watchers

 avatar  avatar  avatar

xfce4-hardware-monitor-plugin's Issues

disk statistics not working - regex match failure

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:

// Splitting out device stats into individual fields
if (!split_stats_regex->match(single_dev_stats, match_info))
{
// Unable to parse the device stats - warning user and moving on
std::cerr << Glib::ustring::compose("Unable to parse device stats line "
"from '%1' - regex match failure:\n"
"\n%2\n", "/proc/diskstats",
single_device_stats);
continue;
}

replace deprecated functions

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.