Re: Force start without connection to remote server

Arnd Münzebrock <[email protected]>
Newsgroups gmane.comp.gnome.apps.gkrellm
Message-ID <[email protected]>
Bill Wilson schrieb:
> On Tue, 30 Sep 2008 20:23:36 +0200
> Arnd Münzebrock <[email protected]> wrote:

>> I would like to force gkrellm to start, even if the remote server it
>> connects to is not reachable. The reason for this is that I would like
>> to use gkrellm to monitor virtual machines on my PC.
> 
> I once thought about doing this but the complication is that gkrellm wants
> to know which monitors to build at startup and the server needs to be running
> to send that information.  But I'll revisit this and maybe I can come up with
> something.

Just a few quick ideas I had for this: There is already a demo modus.
Perhaps you can recycle this and let gkrellm poll the designated server
from time to time. If it answers, restart gkrellm using the input from
the server. Or gkrellm may always save the current configuration (i.e.
the running monitors) at shutdown and these are restored at startup
until the server can be connected.

These are just some thoughts without having looked into your code, so if
this is dumb just ignore it.

>> A bonus would be if a click on the uptime triggers a command on the
>> local machine, if the server is down, and a command on the remote
>> (virtual) machine, if it is running (currently used to trigger a
>> shutdown of the virtual machine).
> 
> That would be useful but it needs some code changes to be possible.
> Probably the way to make it work would be to have a gkrellm launched
> command do variable substitution and have a server status variable.
> For example, you could set up a command like "myscript $S" for one of
> the gkrellm panels and then gkrellm would substitute for $S either "connected"
> or "disconnected".  Your myscript would then look at its arg and then do the
> work of running a local command or a server command using ssh.

That's a good idea. There's even no need for a variable subsitution. The
script itself can check if the server is running (ping it, search for
the corresponding pid of kvm or something similar) and take the
appropriate action.

> This would be safer than allowing gkrellmd to receive requests to execute
> server commands.

That's true.

> I'm looking at releasing 2.3.2 possibly tomorrow but I'm expecting that then it
> won't be long before there will be a 2.3.3 release and I'll try to get something
> in for you for that.

That would be great, thanks.

> Bill

Arnd

-- 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Arnd Münzebrock                                    [email protected]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Seit ich das Alphabet kenne, versuche ich es zu benutzen...

______________________________________________
Gkrellm mailing list
[email protected]
Read archives-join-leave-set RSS feed:
http://archive.lists.netservicesgroup.com
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.