Giter Club home page Giter Club logo

gkrellm-fmonitor's Introduction

------------------------------------------------------------------------------
 File Monitor plugin for GKrellM
 Copyright (C) 2001 Anatoly Asviyan
 [email protected]

 This program is free software which I release under the GNU General Public
 License. You may redistribute and/or modify this program under the terms
 of that license as published by the Free Software Foundation; either
 version 2 of the License, or (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 To get a copy of the GNU General Puplic License,  write to the
 Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
------------------------------------------------------------------------------

This plugin monitors a file and displays its contens in gkrellm. File can have
multiple rows of the form 'name : value : [flag]'. If flag non-empty then
for WARNING value - the orange led will light up and for ALERT value - red.
For example
  CPU:50.8:ALERT
  SBr:33.4:WARNING
  Fan1:4560:
or
  Temp:31 C:
  Hum:49 %:

Plugin can monitor multiple files and for each file, you can specify
the following:
Label           - label of gkrellm panel
File to monitor - as is :) - file to monitor. It would be checked every 5 sec
Update program  - the program to update a monitored file.
Warning command - any shell command to run whenever warning flag is set.
Alert command   - any shell command to run whenever alert flag is set.

I'm using it to monitor my HW state from via686a sensor chip. For this purpose
I wrote sensors.tcl script that periodicaly run 'sensors' utility, processes
its output and writes results to ~/.sensors in the above format. 
sensors.tcl has its own documentation at the beginning of file.
Here is sensor's configuration
label <Sensors>
file <~/.sensors>
Update command <sensors.tcl>
Warning command  <mpg123 ~/mp3/cpu2hot.mp3>
Alert command  <sudo shutdown -h now>


INSTALL 
tar zxvf fmonitor-xxx.tar.gz
cd fmonitor-xxx
# to install fmonitor.so 
make
make install
# to install sensors.tcl 
0. read documentation
1. edit it!  
2. put it somewhere in your bin path
3. edit preferences of fmonitor in gkrellm configuration menu


CREDITS
Plugin is based on Bill Willson ([email protected]) demo programs
and on fileread plugin by Henry Palonen ([email protected])
Modified for GKrellM 2 by Jindrich Makovicka ([email protected]).
Some bugfixes by Geoff Kuenning ([email protected])

gkrellm-fmonitor's People

Contributors

jmakovicka avatar

Watchers

 avatar

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.