Howto monitor remote server with GKrellM
If you have any kind of server
and don't feel like going on it every
once in a while , this howto is right for you. This howto will apply to
anyone who has two machines and one keyboard, mouse and monitor and
don't feel like spending money on KVM. In our example we are going to
monitor our remote server from our workstation using GKrellM.
Ok let's get started:
Installation
For server side you will need only GKrellMD (the daemon)
Ubuntu/Debian : apt-get install <package>
For Ubuntu 9.10 the it is available through the graphical
installer.
Gentoo : USE="-X" emerge <package>
For Gentoo (server side) if you do not have X enviroument change
the use flag "-X"
(that applies for sabayon if you use portage).
Sabayon : equo install <package>
For Sabayon (server side) We suggest you to use portage because
equo doesn't support
flags, but be very careful with Portage and Equo!
ArchLinux : pacman -S <package>
and so on ... it depends on the distribution
If you go to the Home
Page you will find packages specially coded for almost every
distro.
Debian, Mandrake 10.1 RPMS (and unmaintained 10.0, 9.2 and 9.1
RPMs),
Mandrake 9.0 RPMs (Should work for Mandrake 8.2),
PLD Linux RPMs for multiple architectures: Alpha amd64 Athlon i386 i586
i686 PPC Sparc
RedHat Linux (i386) and Yellow Dog Linux (ppc) RPMs, Slackware 10.0,
SuSE 8.2 - 9.1 RPMs!
But still if you want to compile it from source, Let's do it:
1. Download
~ $ wget
http://members.dslextreme.com/users/billw/gkrellm/gkrellm-2.3.2.tar.gz
At this time this is the latest version but just to make sure
check the Home
Page. After you download it, extract the tarball:
2. Exctract the tarball
~ $ tar -xvjf
gkrellm-2.3.2.tar.bz2
3.Enter (use "cd") the directory. If you are going to compile the
daemon only enter the "server" subdirectory!
~ $ cd gkrellm-2.3.2
4. Compile
gkrellm ~ $ make && sudo
make install
We used "sudo" because of permissions problem :)
NOTE:
You need to have it installed on both Server (grkellmd - the daemon)
and Client Side
After you install it on both (server and client) you will have to
edit the main configuration file on server side :
kickar@testserver ~ $ sudo nano /etc/gkrellmd.conf
We used sudo due to permissions problem:
In there edit these lines :
address 192.168.0.1
(192.168.0.1 is the internal address of the server)
port 19150 (This is the
default port. If you change it on the server side, you will have to
configure gkrellm to connect on whatever port you put here from client
side)
allow-host 192.168.0.2
(192.168.0.2 is the address of the client machine)
By default the user is gkrellm, but in order to connect from other
machine you will need to change it root :
user root
group gkrellmd
Save and Exit.
Now start GKrellM on server side and add it to autorun on boot:
If you have no errors during start up you edit the file correct!
Ubuntu/Debian :
~ $ sudo /etc/init.d/gkrellmd
start
~ $ sudo update-rc.d gkrellm
defaults
Gentoo/Sabayon:
~ $ sudo /etc/init.d/gkrellmd
start
~ $ sudo rc-update add gkrellmd
default
ArchLinux :
R5 Users :
~ $ sudo /etc/init.d/gkrellmd
start
~ $ update-rc.d gkrellmd defaults
R6 Users :
~ $ sudo sv start gkrellmd
~ $ sudo add_service.sh gkrellmd
Ok, Now that we have it all set up on server side, Let's set it up
on client side. If you want some eye candy you can download and install
themes and plugins :
Usually gkrellm-themes package is in the official three but
if not go to the Official
Website
Now start GKrellM on Client Side Like :
~ $ gkrellm -s 192.168.0.1
where 192.168.0.1 is your internal server IP.
Here is the result:
For additional questions please refer to our FORUM
de.li.cio.us