Re: Force start without connection to remote server
Bill Wilson <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.gkrellm |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 30 Sep 2008 20:23:36 +0200 Arnd Münzebrock <[email protected]> wrote: > This is my first post on this list, if my question is a frequently asked > one, I apologize. Anyway, i couldn't find anything in the archives nor > in the documentation. > > 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. > This works fine if the virtual machine is started first. If it is shut > down, the red pulsing alarm behind the hostname in gkrellm indicates > that the machine is down. I like to have this for a non reachable (non > running) machine at startup as well, instead of the message on stdout > that the server is not reachable. > > 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. This would be safer than allowing gkrellmd to receive requests to execute server commands. 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. Bill ______________________________________________ Gkrellm mailing list [email protected] Read archives-join-leave-set RSS feed: http://archive.lists.netservicesgroup.com