Hi, I've been using Conky for some time, a nifty utility to monitor just about anything on the PC. Vital things like CPU, RAM, swap, disks, current song playing in MPD :o) Here's what it looks like : http://www.microlinux.fr/images/bureau_conky.png And with more detail : http://www.microlinux.fr/images/conky_zoom.png Now I wonder... I'd really like to use that to monitor my remote server. I know this feature isn't officially supported by Conky, but I'm right now thinking about a workaround. Something like: OK, my server is 'headless' (e. g.: no graphical server, nothing), but why not install just xorg-x11-server-Xorg, then use Conky and forward it to my local display with SSH -X ? I'm pondering this question, thinking about the possible issues... ... so maybe one of you guys here has come up with some solution ? Cheers, Niki
Lucian @ lastdot.org
2009-Oct-19 07:22 UTC
[CentOS] Monitoring a remote server with Conky ?
On Mon, Oct 19, 2009 at 7:59 AM, Niki Kovacs <contact at kikinovak.net> wrote:> Hi, > > I've been using Conky for some time, a nifty utility to monitor just > about anything on the PC. Vital things like CPU, RAM, swap, disks, > current song playing in MPD :o) > > Here's what it looks like : > > http://www.microlinux.fr/images/bureau_conky.png > > And with more detail : > > http://www.microlinux.fr/images/conky_zoom.png > > Now I wonder... I'd really like to use that to monitor my remote server. > I know this feature isn't officially supported by Conky, but I'm right > now thinking about a workaround. Something like: OK, my server is > 'headless' (e. g.: no graphical server, nothing), but why not install > just xorg-x11-server-Xorg, then use Conky and forward it to my local > display with SSH -X ? I'm pondering this question, thinking about the > possible issues... > > ... so maybe one of you guys here has come up with some solution ? > > Cheers, > > Niki > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos >Don't know about conky, but I think gkrellm can work in a server-client scheme. Maybe that works for you.
Niki Kovacs wrote:> Hi, > > I've been using Conky for some time, a nifty utility to monitor just > about anything on the PC. Vital things like CPU, RAM, swap, disks, > current song playing in MPD :o) > > Here's what it looks like : > > http://www.microlinux.fr/images/bureau_conky.png > > And with more detail : > > http://www.microlinux.fr/images/conky_zoom.png > > Now I wonder... I'd really like to use that to monitor my remote server. > I know this feature isn't officially supported by Conky, but I'm right > now thinking about a workaround. Something like: OK, my server is > 'headless' (e. g.: no graphical server, nothing), but why not install > just xorg-x11-server-Xorg, then use Conky and forward it to my local > display with SSH -X ? I'm pondering this question, thinking about the > possible issues... > > ... so maybe one of you guys here has come up with some solution ?If you use X remotely much, just take the whole desktop with freenx on the server and the NX client that you can download from http://www.nomachine.com. It is very efficient and lets you disconnect/reconnect with everything still running, even from a different client - or even platform. = Les Mikesell lesmikesell at gmail.com
On Mon, Oct 19, 2009 at 2:59 AM, Niki Kovacs <contact at kikinovak.net> wrote:> Hi, > > I've been using Conky for some time, a nifty utility to monitor just > about anything on the PC. Vital things like CPU, RAM, swap, disks, > current song playing in MPD :o) > > Here's what it looks like : > > http://www.microlinux.fr/images/bureau_conky.png > > And with more detail : > > http://www.microlinux.fr/images/conky_zoom.png > > Now I wonder... I'd really like to use that to monitor my remote server. > I know this feature isn't officially supported by Conky, but I'm right > now thinking about a workaround. Something like: OK, my server is > 'headless' (e. g.: no graphical server, nothing), but why not install > just xorg-x11-server-Xorg, then use Conky and forward it to my local > display with SSH -X ? I'm pondering this question, thinking about the > possible issues... > > ... so maybe one of you guys here has come up with some solution ? > > Cheers, > > NikiYou typically do not monitor servers with these kinds of tools. They are made for workstations that have real people sitting at them. What you want for servers is software that saves to a log file, and then you view the log files as you desire. One of the most common tools for this is 'sar', which is part of the systat package. There is an interesting GUI tool for it called kSar that can use the logs from sar and generate graphs. For "realtime" monitoring, one would typically look at snmp and cacti to generate graphs, send alerts, etc...
On Mon, 2009-10-19 at 08:59 +0200, Niki Kovacs wrote:> Hi, > > I've been using Conky for some time, a nifty utility to monitor just > about anything on the PC. Vital things like CPU, RAM, swap, disks, > current song playing in MPD :o) > > Here's what it looks like : > > http://www.microlinux.fr/images/bureau_conky.png > > And with more detail : > > http://www.microlinux.fr/images/conky_zoom.png > > Now I wonder... I'd really like to use that to monitor my remote server. > I know this feature isn't officially supported by Conky, but I'm right > now thinking about a workaround. Something like: OK, my server is > 'headless' (e. g.: no graphical server, nothing), but why not install > just xorg-x11-server-Xorg, then use Conky and forward it to my local > display with SSH -X ? I'm pondering this question, thinking about the > possible issues... > > ... so maybe one of you guys here has come up with some solution ? > > Cheers, > > NikiHi Niki, You could try a local script that gets values from a server that you would like to monitor... I might suggest looking into setting up snmpd on the server and using snmp walk to probe specific values (that relate to processes/free memory). What exactly would you be looking to monitor on the remote server? Tait -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20091019/0ab3c19d/attachment-0002.sig>
Tait Clarridge a ?crit :> > You could try a local script that gets values from a server that you > would like to monitor... I might suggest looking into setting up snmpd > on the server and using snmp walk to probe specific values (that relate > to processes/free memory). > >Thanks for all the numerous! I'll take a peek at all of them as soon as I have a spare moment and then report back. Cheers, Niki
Niki Kovacs wrote:> Hi, > > I've been using Conky for some time, a nifty utility to monitor just > about anything on the PC. Vital things like CPU, RAM, swap, disks, > current song playing in MPD :o) > > Here's what it looks like : > > http://www.microlinux.fr/images/bureau_conky.png > > And with more detail : > > http://www.microlinux.fr/images/conky_zoom.png > > Now I wonder... I'd really like to use that to monitor my remote server. > I know this feature isn't officially supported by Conky, but I'm right > now thinking about a workaround. Something like: OK, my server is > 'headless' (e. g.: no graphical server, nothing), but why not install > just xorg-x11-server-Xorg, then use Conky and forward it to my local > display with SSH -X ? I'm pondering this question, thinking about the > possible issues... > > ... so maybe one of you guys here has come up with some solution ? > > Cheers, > > Niki > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centosHi, The suggestions offered by other posters to install/use a monitoring/polling/graphing system is a fine idea. Using something like Cacti is great for collecting and viewing historical data. However for looking at what a server is doing _right now_, that kind of system falls short. I think your original idea is spot on! I do exactly what you suggest. I keep a minimal X install on most of my headless machines -- I still boot run level 3. This lets me "ssh -X" to a machine and execute graphical commands, and up the come on my local Linux workstation. Occasionally, this is very useful for me. For instance: I have some of these headless boxen scattered throughout the network. With this, I can launch firefox on a remote machine. This lets me test viewing resources from various points of the network; great for security policy testing. What you're talking about works great too. I have gkrellm installed on these machines too, as well as the servers. Cacti is great for looking at trending or historical data. But to see what a server is up to _right now_ I fire up gkrellm this way (along with things like "tail 'cat /var/log/_something_'" and htop) to see what the machine is up to right then and there. gkrellm is available from the wonderful rpmforge repo, but I'm sure Conky would work too. Andy Hull