Web Hosting Talk







View Full Version : Real-time Monitoring of a Raq Server?


vernonbailey
03-23-2001, 08:04 PM
Can anyone suggest a software package that can be installed on a RaQ4 so that you can actually monitor your server. In the cobalt admin section you can look at basic info such as CPU usage over the last 15min and Memory usage but is there a better way to monitor things in real-time?

I would like to see more detail and info on things such as the amount of CGI processes and how long they are running.

Any help would be greatly apprecaited.

DHWWnet
03-23-2001, 08:21 PM
Hi :)

a simple way to acheive this is to telnet/ssh in your server and type top or ps aux

:)

HPV
09-29-2002, 10:51 AM
look into MRTG... it runs right off the cron...

blacknight
09-29-2002, 11:14 AM
MRTG is excellent, but not that simple to install unless you are an experienced sysadmin

Another option would be to install webmin, which includes a number of modules that allow for this form of monitoring, although the output isn't as attractive.
The other advantage of webmin is that it you can set it up to send you an email if any of the services go down.

HPV
09-29-2002, 06:47 PM
But you know mrtg is pretty smooth:D

cyrusTvirus
09-30-2002, 03:16 AM
Originally posted by blacknight

The other advantage of webmin is that it you can set it up to send you an email if any of the services go down.

Be carefull with editing things in webmin which are also covered by the Cobalt GUI. I might be possible that you loose functionality in there.

Free tip: think before you before you act!

blacknight
09-30-2002, 01:30 PM
Yeah.. I forgot to give the disclaimer:
"Webmin is very powerful, but use it at your own risk" ....
In other words.... until you know what you are playing with don't try using it for things that the Cobalt GUI handles. Use it for the things the Cobalt GUI CANNOT handle.. eg. monitoring and cronjobs

mhosang
10-01-2002, 02:24 PM
MRTG is reaaaally great!


I actually use it to monitor my cpu loads, memory usage, network usage and cpu temperature...

the disk usage won't work properly... i'm working on that...


You can see my mrtg-results on
mrtg.energyweb.ch (http://mrtg.energyweb.ch)

qhasxeem
10-02-2002, 08:23 AM
Can you send me your MRTG config file?

Anyone else got other MRTG config examples?

cyrusTvirus
10-02-2002, 08:51 AM
If you search the web for example: google.com search for mrtgscripts you will find a LOT !!!!

mhosang
10-02-2002, 11:53 AM
ok...

here is my mrtg.cfg:

WorkDir: /home/sites/yoursite.com/web
Forks: 4
Language: german
#RunAsDaemon: Yes

# Network traffic - total
Target[mrtg]: `/usr/local/mrtg-2/bin/getnet.sh`
MaxBytes[mrtg]: 32000
Title[mrtg]: yoursite.ch ::: netzerk-auslastung
PageTop[mrtg]: <h1>Netzwerk-Auslastung von yoursite.com</h1>
Unscaled[mrtg]: ymwd
ShortLegend[mrtg]: B
YLegend[mrtg]: Bytes
Legend1[mrtg]: Netzwerk-Auslastung Empfangen
Legend2[mrtg]: Netzwerk-Auslastung Senden
Legend3[mrtg]: Maximale Netzwerk-Auslastung Empfangen
Legend4[mrtg]: Maximale Netzwerk-Auslastung Senden
LegendI[mrtg]: &nbsp;empfangen:
LegendO[mrtg]: &nbsp;senden:
Options[mrtg]: growright, bits

# CPU Usage
Target[cpu]: `/usr/local/mrtg-2/bin/getcpu.sh`
Title[cpu]: yoursite ::: prozessor-auslastung
Pagetop[cpu]: <h1>Prozessor-Auslasatung von yoursite</h1>
MaxBytes[cpu]: 100
Unscaled[cpu]: ymwd
YLegend[cpu]: Prozent
ShortLegend[cpu]: %
Legend1[cpu]: Auslastung von Benutzern
Legend2[cpu]: Auslastung aller Prozesse
Legend3[cpu]: Maximale Benutzer-Auslastung
Legend4[cpu]: Maximale Auslastung aller Prozesse
LegendI[cpu]: &nbsp;benutzer:
LegendO[cpu]: &nbsp;total:
Options[cpu]: growright,nopercent

# CPU Temperature
Target[cput]: `/usr/local/mrtg-2/bin/getcputemp.sh`
Title[cput]: yoursite ::: prozessor-temperatur
Pagetop[cput]: <h1>Prozessor-Temperatur von yoursite</h1>
MaxBytes[cput]: 100
Unscaled[cput]: ymwd
YLegend[cput]: Grad
ShortLegend[cput]: °C
Legend1[cput]: Prozessor-Temperatur
Legend2[cput]: Prozessor-Temperatur
Legend3[cput]: Maximale Prozessor-Temperatur
Legend4[cput]: Maximale Prozessor-Temperatur
LegendI[cput]: &nbsp;cpu-temp:
LegendO[cput]: &nbsp;cpu-temp:
Options[cput]: growright,gauge

# Mem Usage
Target[mem]: `/usr/local/mrtg-2/bin/getmem.sh`
Title[mem]: yoursite ::: speicher-auslastung
Pagetop[mem]: <h1>Speicherauslastung von yoursite.com</h1>
MaxBytes[mem]: 795303936
Unscaled[mem]: ymwd
YLegend[mem]: Bytes
ShortLegend[mem]: B
Legend1[mem]: Speicher-Auslastung
Legend2[mem]: SwapFile-Auslastung
Legend3[mem]: Maximale Speicher-Auslastung
Legend4[mem]: Maximale SwapFile-Auslastung
LegendI[mem]: &nbsp;speicher:
LegendO[mem]: &nbsp;swapfile:
Options[mem]: growright,gauge


and here are the scripts:
getnet.sh:

#!/bin/bash

# Get transmit and receive bytes.
#
INFO=`grep eth0 /proc/net/dev | tr -s ' ' ' ' | cut -d: -f2`
RECEIVE=`echo $INFO | cut -d" " -f1`
TRANSMIT=`echo $INFO | cut -d" " -f9`

# Get uptime.
#
UPTIME=`uptime | tr -s ' ' ' ' | cut -d" " -f4-`
HOSTNAME=`hostname -d`

# Final output to MRTG
#
echo $RECEIVE
echo $TRANSMIT
echo $UPTIME
echo $HOSTNAME


getcpu.sh:

UPTIME=`uptime | tr -s ' ' ' ' | cut -d" " -f4-`

awk '/cpu / {print $2+$3; print $2+$3+$4;}' < /proc/stat
echo $UPTIME
hostname -d


getcputemp.sh:

UPTIME=`uptime | tr -s ' ' ' ' | cut -d" " -f4-`

awk '/temperature/ {print $3; print $3;}' < /proc/cpuinfo
echo $UPTIME
hostname -d


getmen.sh:

UPTIME=`uptime | tr -s ' ' ' ' | cut -d" " -f4-`

awk '/Mem:/ {print $3}' < /proc/meminfo
awk '/Swap:/ {print $3}' < /proc/meminfo
echo $UPTIME
hostname -d



Hope you'll enjoy it :D :D :D

qhasxeem
10-02-2002, 12:46 PM
Great job! :D

HPV
10-03-2002, 07:37 AM
This forum Rocks:cartman: :cartman:

Pingouin
10-04-2002, 05:29 AM
Hi,
I know this is a local tool and you wanted a server side solution, but this may prove useful - not that I am affiliated with them in any way ;) :

Xenon Cobalt RaQ Server Monitor®
Xenon Cobalt Server Monitor (XCSM) will sit in your tray and monitor, convert, log and analyze your bandwidth for all your websites hosted on a Cobalt server.

http://xenon-inc.hypermart.net/xcsm/xcmsetup.exe

Best regards,