Re: Collecting gkrellm data

Bill Wilson <[email protected]>
Newsgroups gmane.comp.gnome.apps.gkrellm
Message-ID <[email protected]>
On Fri, 19 Oct 2007 16:11:21 -0300
"Gabriel Araujo" <[email protected]> wrote:

>  I have installed gkrellmd on some of the servers I administer and its
> working perfectly.
> 
>  There is just 1 thing I would like to do: be able to save data generated
> (CPU, mem, disk, etc) so I can get some weekly/monthly reports.
>  I know NET data is already saved on ~/gkrellm2 directory - is there any way
> to save CPU, mem, disk (i/o) ? Is there a plugin that does that ?

The net data is cumulative and that's how it is logged.  Disk data could be done
that way, but for CPU and mem I'm not sure what should go into a periodic report?

I have done some work on a plugin that can log any alert based events and maybe
that could be useful to you.  If you set a CPU or mem alert for usage above some
percentage you get a log entry when the alert is triggered and optionally more entries
for each second the alert stays triggered.  So for CPU, the log file can have lines like
(with for example the warning set at 12% and the alarm at 22%):

Oct 20 10:42:04 [Warn ] CPU1 usage: 29%
Oct 20 10:42:05 [Warn ] CPU0 usage: 30%
Oct 20 10:50:59 [Alarm] CPU0 usage: 47%
Oct 20 10:50:59 [Warn ] CPU1 usage: 26%
Oct 20 10:51:00 [Alarm - 1] CPU0 usage: 47%
Oct 20 10:51:01 [Alarm - 3] CPU0 usage: 54%
Oct 20 10:51:01 [Alarm] CPU1 usage: 26%

If you want to try it:
http://members.dslextreme.com/users/billw/test/log-plugin.tar.gz

Set the main plugin logfile in Plugins->log-plugin and optional individual
log files for each alert in each Alert config window.  Log message lines
can have any substitution variables valid for each monitor (see Info pages
in the config).

Some things aren't finished with the plugin or gkrellm.  For example the
above log lines used a "Log Message" of "$L usage: $T", but I neglected
to put a $L variable into the Disk monitor so you can't get disk logging
flagged per disk name yet.  But I will get that in for the next gkrellm release.

Otherwise, how would you like to see things like CPU and mem logged?

Bill
_______________________________________________
Gkrellm mailing list
[email protected]
http://lists.jutley.org/cgi-bin/mailman/listinfo/gkrellm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.