|
|
CPU meter
Good day, all
I would like to monitor the CPU load on multiple linux hosts from a
browser. Checked the JMETER from apache and it is too involved.
For example: 192.168.1.1 and 192.168.1.2 are the linux hosts
I would like to view the meter in the browser by typing http://192.168.1.1/cpumeter
or http://192.168.1.2
All I need are the CPU load and RAM.
Alternately, if "top" can be run on the browser...
Thanks
|
|
0
|
|
|
|
Reply
|
soup_or_power (215)
|
4/29/2008 10:32:04 PM |
|
soup_or_power@yahoo.com staggered into the Black Sun and said:
> I would like to monitor the CPU load on multiple linux hosts from a
> browser. Checked the JMETER from apache and it is too involved.
What was too involved about it?
> I would like to view the [CPU] meter in [my] browser by typing
> http://192.168.1.1/cpumeter or http://192.168.1.2 . All I need are
> the CPU load and RAM.
You'd want to have these things somewhere that wasn't on the document
root for obvious reasons. Install Apache, install PHP, then put
something like this in monitor.php :
<html><head><title>Stats for server 192.168.1.1</title></head>
<body>
<?php
$w=`w`;
$ram=`free -m`;
echo "<pre>$w</pre><hr/>";
echo "<pre>$ram/pre>";
?>
</body></html>
....modify to taste; you can make it look quite a bit fancier with some
easy messing around. Then you'd go to http://192.168.1.1/monitor.php
and see the obvious things.
> [Alternatively], if "top" can be run on the browser...
What good would that do? The machine running the browser is not the
machine you're interested in. You may want to read up on how web
servers and web clients work before getting involved in this stuff.
Anyway, HTH,
--
Outside of a dog, a book is a man's best friend. Inside of a dog
it's too dark to read.
My blog and resume: http://crow202.dyndns.org:8080/wordpress/
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
|
|
0
|
|
|
|
Reply
|
danceswithcrows (534)
|
4/30/2008 12:28:29 AM
|
|
Dances With Crows wrote:
> soup_or_power@yahoo.com staggered into the Black Sun and said:
>> I would like to monitor the CPU load on multiple linux hosts from a
>> browser. Checked the JMETER from apache and it is too involved.
>
> What was too involved about it?
>
>> I would like to view the [CPU] meter in [my] browser by typing
>> http://192.168.1.1/cpumeter or http://192.168.1.2 . All I need are
>> the CPU load and RAM.
>
> You'd want to have these things somewhere that wasn't on the document
> root for obvious reasons. Install Apache, install PHP, then put
> something like this in monitor.php :
>
> <html><head><title>Stats for server 192.168.1.1</title></head>
> <body>
> <?php
> $w=`w`;
> $ram=`free -m`;
> echo "<pre>$w</pre><hr/>";
> echo "<pre>$ram/pre>";
> ?>
> </body></html>
>
> ...modify to taste; you can make it look quite a bit fancier with some
> easy messing around. Then you'd go to http://192.168.1.1/monitor.php
> and see the obvious things.
>
>> [Alternatively], if "top" can be run on the browser...
>
> What good would that do? The machine running the browser is not the
> machine you're interested in. You may want to read up on how web
> servers and web clients work before getting involved in this stuff.
> Anyway, HTH,
There is always "gkrellm" ! //gkrellm.net
--
Best Regards:
Baron.
|
|
0
|
|
|
|
Reply
|
baron.nospam (7)
|
4/30/2008 7:18:24 PM
|
|
Baron <baron.nospam@linuxmainiac.nospam.net> writes:
>Dances With Crows wrote:
>> soup_or_power@yahoo.com staggered into the Black Sun and said:
>>> I would like to monitor the CPU load on multiple linux hosts from a
>>> browser. Checked the JMETER from apache and it is too involved.
>>
>> What was too involved about it?
>>
>>> I would like to view the [CPU] meter in [my] browser by typing
>>> http://192.168.1.1/cpumeter or http://192.168.1.2 . All I need are
>>> the CPU load and RAM.
Why on the browser?
Use gkrellm and have it display on your local desktop (Ie ssh to the remote
machine and run gkrellm. It will display on your desktop) If you just want
the cpu meter, set it up to display just the cpu meter.
>There is always "gkrellm" ! //gkrellm.net
Agreed
|
|
0
|
|
|
|
Reply
|
unruh-spam (2581)
|
4/30/2008 8:07:25 PM
|
|
"s" == soup_or_po...@yahoo.com <soup_or_po...@yahoo.com>:
s> I would like to monitor the CPU load on multiple linux hosts from a
s> browser. Checked the JMETER from apache and it is too involved.
Running
watch \
'{ echo "<html><pre>";top -b -n 1|head -9;echo "</html></pre>"; } \
> cpu_load.html'
on each computer, will give you a nice CPU load webpage,
automatically updated every 2 seconds...
|
|
0
|
|
|
|
Reply
|
anonymous195 (210)
|
5/13/2008 3:40:04 AM
|
|
In comp.os.linux.misc Unruh <unruh-spam@physics.ubc.ca>:
> Baron <baron.nospam@linuxmainiac.nospam.net> writes:
>>Dances With Crows wrote:
>>> soup_or_power@yahoo.com staggered into the Black Sun and said:
>>>> I would like to monitor the CPU load on multiple linux hosts from a
>>>> browser. Checked the JMETER from apache and it is too involved.
>>> What was too involved about it?
>>>> I would like to view the [CPU] meter in [my] browser by typing
>>>> http://192.168.1.1/cpumeter or http://192.168.1.2 . All I need are
>>>> the CPU load and RAM.
> Why on the browser?
The OP might be restricted to running a browser + doze? ;-)
> Use gkrellm and have it display on your local desktop (Ie ssh to the remote
> machine and run gkrellm. It will display on your desktop) If you just want
> the cpu meter, set it up to display just the cpu meter.
Indeed, or use something even simpler like "xosview", "ssh -CX
remote_host" and "xosview &" should just cut it. Using "xosview
+net +disk" and alike shows even more real time stats.
--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 109: The electricity substation in the car park
blew up.
|
|
0
|
|
|
|
Reply
|
USENET22 (5462)
|
5/13/2008 3:18:04 PM
|
|
|
5 Replies
77 Views
(page loaded in 0.081 seconds)
Similiar Articles: Correct code to get CPU usage - comp.os.ms-windows.programmer ...... www.daqarta.com Scope, Spectrum, Spectrogram, Sound Level Meter ... description it looks like they may change ... On a good day, high CPU (central processing unit ... Monitoring temperatures under Solaris 10 / x86 - comp.unix.solaris ...The box in question > has a Asus A7V600-X mainboard which features a CPU core temperature meter. > > Andreas. there is a temp driver from Philip Brown. Determining the CPU frequency - comp.unix.bsd.netbsd.misc ...Correct code to get CPU usage - comp.os.ms-windows.programmer ..... to come up with a correct code to determine CPU usage ... Spectrogram, Sound Level Meter Frequency ... Simple code encryption (xor) problem - comp.lang.asm.x86 ...... Analysis www.daqarta.com Scope, Spectrum, Spectrogram, Sound Level Meter ... sane brain would try SMC on 'current hot' code parts like IRQ-routines or other CPU ... DRIVER ... - comp.protocols.snmphow to unistall the cpu driver how to unistall wildtangent web driver how to unload current driver how to unload services or drivers how to update a driver WWVB 60kHz Receiver - comp.protocols.time.ntpI know the clocks are not doing this because it would require way more CPU power ... Here in Delaware we are on the 100 > microvolt per meter contour (before the WWVB ... Making a depot compatible with Apache 2.0 and 2.2 - comp.sys.hp ...Here is a part of this file : file path /opt/meter/newconfig/opt/hpws22/apache/cgi ... email server to run along side apache ... hardware platform: an Intel 32-bit CPU or ... GB in MB - comp.lang.awkOh yes, b is a fundamental unit like > > meter... > > (And "Byte", BTW, is not even of ... HP-UX 11.31: extreme performance problem on single-CPU rx2620 ... So with 180 MB free ... question on ultra 2 memory - comp.unix.solarisSolaris page sizes - comp.unix.solaris On my system (20 CPU Ultra-3) with 20 GB memory installed ... Note however that my question was about setting page sizes for shared ... [comp.publish.cdrom] CD-Recordable FAQ, Part 1/4 - comp.publish ...Archive-name: cdrom/cd-recordable/part1 Posting-Frequency: monthly Last-modified: 2008/10/09 Version: 2.71 Send corrections and updates to And... What Is a CPU Meter? | eHow.comA CPU meter is a small computer software component that measure the amount of RAM being used by the computer itself and the strain on the computer's processor ... Windows Desktop Gadgets - All CPU Meter Version 3.9Must have All CPU Meter gadget work with Windows 7 and Vista. All Free!!! 7/15/2012 8:54:36 PM
|
|
|
|
|
|
|
|
|