Re: combo client/server gkrellm

Bill Wilson <[email protected]>
Newsgroups gmane.comp.gnome.apps.gkrellm
Message-ID <[email protected]>
On Mon, 20 Aug 2007 16:04:22 -0500
"Glen W. Mabey" <[email protected]> wrote:

> I have the need to monitor the CPU load of many different computers
> simultaneously.  However, there are too many to realistically have a
> separate gkrellm running for each one.
> 
> So, I envisioned a plugin that would read stats from multiple gkrellmd
> instances, and just display the desired statistics.  It seems like most
> of the components to realize such a plugin are already existing: the
> client interface, the CPU chart, etc.
> 
> The idea is that if the user wants to see more detail on a specific
> node, he could just click on the CPU chart for it, and a full gkrellm
> instance would start up in --server mode.
> 
> But my first question is, Is this possible given the current
> client/server model?  (without having to write a custom client)

The client code is written assuming there will be a connection
to just one server, so, yes, I think it would take a custom client.

It might use more resources (?) and take a bit of setup work, but the simplest
way I see to do this would be to go ahead and run a gkrellm client for each
of your servers but configured so only the CPU monitor is enabled for each
one.  And then configure a launch command for each CPU panel to launch
another gkrellm for that server with all monitors enabled (using a different config).

So you would run gkrellms like so (-c cpuonly ones always running):

gkrellm -s server1 -c cpuonly      => via launch command:  gkrellm -s server1
gkrellm -s server2 -c cpuonly      => via launch command:  gkrellm -s server2
...

After you've configured the first cpuonly client to show only the CPU monitor,  you
can save setup time by copying the ~/.gkrellm2/user-config for the rest:

cp user-config_S-server1-cpuonly  user-config_S-server2-cpuonly
...

This has the advantage that you can leave one or two other monitors
enabled (hostname?) for particular servers in cpuonly mode.

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.