Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Useful eyecandy - gkrellmd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
aLEczapKA
Apprentice
Apprentice


Joined: 13 Jun 2003
Posts: 192

PostPosted: Sat Aug 16, 2003 9:04 pm    Post subject: Useful eyecandy - gkrellmd Reply with quote

I have a desktop machine (eternium) where I do some desktop stuff and a server (genesis) where I do my usual server stuff...

The server has 2x350Mhz processors and this is kinda slow.. most of the time I wait for compilcated, huge, bloated mysql queries to finish...
To solve it I have to come out with some faster/better alternatives of the queries/php code, so I need to know what is the resources usage on my server.
I used to ran top (to check the processor/system usage) in some terminal window connected to the server but this wouldn't be so cool like having such informations on fluxbox slit, right? :wink:

For this use gkrellm. gkrellmd is included with gkrell and it is a gnu krell monitor server.

As you might predict you run gkrellmd on the serve and gkrellm on the client machine like that:

Your server
Code:

gkrellmd


Your local machine
Code:

gkrellm2 -s your_server_here -p your_port_here


(You could add -w option to gkrellm2 to have it docked onto Fluxbox slit)

[img:988a4804d1]http://fluxbox.org/gf/gkrellmd-.jpg[/img:988a4804d1]

It looks nice and provides useful info.

Have phun!

UPDATE
Here is HOWTO on securely monitoring a server using gkrellmd over SSH

Code:
# Sample config file for the GKrellM server gkrellmd

# The server update frequency is independent of and should be less than
# the client update frequency.  Values may be from 1 to 10 and should be
# smaller values to reduce network traffic.
#
update-hz 3

# Limit number of simultaneous clients allowed to connect.
#
max-clients 2

# Specify the port to listen on for connections.
#
port 19150

# List of hosts allowed to connect.  If no hosts are specified, all hosts
# will be allowed.
#
allow-host  localhost
allow-host  127.0.0.1
allow-host  ::1

# Run in background and detach from the controlling terminal
detach

# Time interval between checks for various monitors.
#
#fs-interval 2
#nfs-interval 16

_________________
while true; do eject /dev/cdrom; eject -t /dev/cdrom; done


Last edited by aLEczapKA on Sat Aug 16, 2003 11:57 pm; edited 2 times in total
Back to top
View user's profile Send private message
La`res
Arch/Herd Tester
Arch/Herd Tester


Joined: 11 Aug 2003
Posts: 79
Location: ::0

PostPosted: Sat Aug 16, 2003 9:32 pm    Post subject: Reply with quote

I have been wondering how to do this for a while.
Thanxz
_________________
Lares Moreau <lares.moreau@gmail.com>
LRU: 400755 http://counter.li.org
lares/irc.freenode.net
Back to top
View user's profile Send private message
searcher
Apprentice
Apprentice


Joined: 13 Mar 2003
Posts: 175
Location: NL

PostPosted: Sat Aug 16, 2003 10:56 pm    Post subject: Reply with quote

Hmm do i need a seperate instance of gkrellm for every pc i want shown in the slit? Or can i put different systems such as a server and a workstation in one instance? Maybe you could include this in the howto, which is excellent by the way.

~searcher
_________________
You are unique ... just like everyone else.
Back to top
View user's profile Send private message
aLEczapKA
Apprentice
Apprentice


Joined: 13 Jun 2003
Posts: 192

PostPosted: Sat Aug 16, 2003 11:39 pm    Post subject: Reply with quote

searcher wrote:
Hmm do i need a seperate instance of gkrellm for every pc i want shown in the slit? Or can i put different systems such as a server and a workstation in one instance? Maybe you could include this in the howto, which is excellent by the way.

~searcher


I think you need one instance per machine. I didn't find anything on how to solve this.
_________________
while true; do eject /dev/cdrom; eject -t /dev/cdrom; done
Back to top
View user's profile Send private message
viperlin
Veteran
Veteran


Joined: 15 Apr 2003
Posts: 1317
Location: UK

PostPosted: Wed Aug 20, 2003 4:45 am    Post subject: Reply with quote

hey i've been wanting this on my home made router (running IPCop Linux) is there any way to get a tarball of gkrellmd that contains all libraries that gkrellmd needs because when i copied the binary over it complained about libraries and there is no easy way to install them.
so i was thinking there may be a tarball that extacts to one directory and runs from there. that way i can monitor my router better.
just hoping :-)

i am just about to try the gkrellm-server rpm (converted to tarball with rpm2tgz) hopefully it works
Back to top
View user's profile Send private message
viperlin
Veteran
Veteran


Joined: 15 Apr 2003
Posts: 1317
Location: UK

PostPosted: Wed Aug 20, 2003 5:15 am    Post subject: Reply with quote

ok the gkrellm-server rpm worked :-D now i'll find out exactly how much traffic my LAN uses a month (if it reaches 30-31GB per month then we get billed extra, (they average it out at the end of the month, if it is 1GB per day average we get billed more for extensive use of the network.))
Back to top
View user's profile Send private message
agmoe
n00b
n00b


Joined: 01 Apr 2003
Posts: 8
Location: Sweden

PostPosted: Wed Aug 20, 2003 6:35 pm    Post subject: Reply with quote

Nice, but another thing I am curious about is what kind of terminals you have got on your desktop, and how you made the "edges" disappear. I think it looked really nice.
Back to top
View user's profile Send private message
viperlin
Veteran
Veteran


Joined: 15 Apr 2003
Posts: 1317
Location: UK

PostPosted: Wed Aug 20, 2003 7:32 pm    Post subject: Reply with quote

oh you mean like mine and the screenshot above?
the latest screenshot on my website(the last one with the gnu wei wei wallpaper) uses these
the top is a syslog output (fancy Eterm command that runs "tail -f /var/log/syslog" through grc)
the command needs co-ordinates changed to move it around the desktop, just fidle about with them and u'll get it.
top command i use is:
Quote:
Eterm -Ox --shade 0 -g=235x15+240+40 --no-cursor -n syslog -T syslog --scrollbar off -f yellow --buttonbar 0 -e grc tail -f /var/log/syslog

(i put the co-ordinates in bold so you can tell where they are a bit easyer.)
and the bottom one is the putput os the apache access_log file so i can see when people go on my site and it's easy to notice attempted IIS exploits (in which i block the originating IP through IPtables)
here's the command:
Quote:
Eterm -Ox --shade 0 -g=230x15+0+800 --no-cursor -n access_log -T access_log --scrollbar off -f yellow --buttonbar 0 -e grc tail -f /var/log/apache/access_log
[/url]
Back to top
View user's profile Send private message
rojaro
l33t
l33t


Joined: 06 May 2002
Posts: 732

PostPosted: Wed Aug 20, 2003 7:42 pm    Post subject: Reply with quote

if you just want the syslog (or more logfiles) on your desktop background try root-tail instead. uses less resources, supports all kind of fonts + shadows ... using eterm for this is shooting fleas with cannons
_________________
A mathematician is a machine for turning coffee into theorems. ~ Alfred Renyi (*1921 - †1970)
Back to top
View user's profile Send private message
viperlin
Veteran
Veteran


Joined: 15 Apr 2003
Posts: 1317
Location: UK

PostPosted: Wed Aug 20, 2003 7:49 pm    Post subject: Reply with quote

ooh thanks, didn't know that :roll: looking at it now, thanks/
Back to top
View user's profile Send private message
agmoe
n00b
n00b


Joined: 01 Apr 2003
Posts: 8
Location: Sweden

PostPosted: Wed Aug 20, 2003 7:54 pm    Post subject: Reply with quote

Thanks, but for some reason the transparency doesnt work. It works in aterm and xchat though. I'll have a alook at it now. Thanks
_________________
God apa gavs galna anlag svag apa dog
Back to top
View user's profile Send private message
viperlin
Veteran
Veteran


Joined: 15 Apr 2003
Posts: 1317
Location: UK

PostPosted: Wed Aug 20, 2003 8:14 pm    Post subject: Reply with quote

erm, root-tail does not work in gnome due to the nautilus desktop, so i'll keep Eterm until i end up using fluxbox again (i like Gnome too much) :roll:
Back to top
View user's profile Send private message
Vergo
n00b
n00b


Joined: 19 Apr 2003
Posts: 42
Location: Oulu, Finland

PostPosted: Thu Aug 21, 2003 12:14 am    Post subject: Reply with quote

viperlin wrote:
now i'll find out exactly how much traffic my LAN uses a month (if it reaches 30-31GB per month then we get billed extra, (they average it out at the end of the month, if it is 1GB per day average we get billed more for extensive use of the network.))

You could also try vnStat for that traffic logging/monitoring. Not really an eyecandy since it's console based but works well for that kind of simple task.
Back to top
View user's profile Send private message
timfreeman
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2003
Posts: 142
Location: Chicago

PostPosted: Tue Oct 28, 2003 8:14 pm    Post subject: Reply with quote

script to serve the daemon over ssh automatically.. check it:

https://forums.gentoo.org/viewtopic.php?t=100709
Back to top
View user's profile Send private message
bravo911
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2004
Posts: 108

PostPosted: Tue Sep 14, 2004 11:41 pm    Post subject: Reply with quote

viperlin wrote:
ok the gkrellm-server rpm worked :-D now i'll find out exactly how much traffic my LAN uses a month (if it reaches 30-31GB per month then we get billed extra, (they average it out at the end of the month, if it is 1GB per day average we get billed more for extensive use of the network.))


I'm interested in getting the gkrellmd running on my IPcop 1.3.0 (Fixes 1-9) box. Care to give me any ideas as to how you pulled this one off? dont make me grovel!
Back to top
View user's profile Send private message
viperlin
Veteran
Veteran


Joined: 15 Apr 2003
Posts: 1317
Location: UK

PostPosted: Wed Sep 15, 2004 3:31 pm    Post subject: Reply with quote

really, i used a gkrellmd 2.1.14 server only rpm, then used rpm2tgz to make the tar.gz and extracted at / (placng the files in /usr/bin and stuff), than it, it worked.
Back to top
View user's profile Send private message
bravo911
Tux's lil' helper
Tux's lil' helper


Joined: 16 Apr 2004
Posts: 108

PostPosted: Mon Sep 20, 2004 6:19 am    Post subject: That version worked! Latest ver. gkrellmd too new! Reply with quote

I was using the latest version and it seems to require a newer version of the glib libraries, thus would not work! That version works perfectly with IPCop 1.3.0

Thanks again!
Back to top
View user's profile Send private message
Insanity5902
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1228
Location: Fort Worth, Texas

PostPosted: Mon Sep 20, 2004 12:48 pm    Post subject: Reply with quote

If you are unlukcy like me, and you have to administor windows server. I worked on running the gkrellm server on windows and connect to it via linux

Upon completion I wrote this.
Works great, if the server is running Windows 2003 The System name dispaly causes gkrellm to crash, other then that it works great. I can monitor uptim, disk usage, net usage, ram cpu everything that I need to.
_________________
GibbonsR.net | OpenLaptops.org

Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
mattmm
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2004
Posts: 79

PostPosted: Sun Oct 03, 2004 4:55 pm    Post subject: Reply with quote

When I run:
Code:

gkrellm2 -s [server address] -p 19510


I get:

Code:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


(gkrellm2:31343): Gtk-WARNING **: cannot open display: 


Is that trying to open up an X window on the server? The server is FC2 btw. I set it to allow all hosts just to test if it were a host problem, and still received the same error.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum