Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

[NEW PLUGIN] ViewSystemLoad (free)

Quote Reply
[NEW PLUGIN] ViewSystemLoad (free)
Hi,

Been a while since I released a free plugin =)

This will give you a new option in Plugins > ViewSystemLoad > View Load (in the admin panel). Example output;

Quote:
System Load

1 Min Average: 0.01
5 Min Average: 0.01
15 Min Average: 0.0

Simple, yet very handy if your on a server that you'd like to check the load on, before doing CPU intensive processes (i.e building, verification, emails, etc).

NB: this will only work on servers that support the backtick system command, and `w` option (normally used in SSH/Telnet). The best way to know if you server supports this, is to give the plugin a go Smile

Enjoy!

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGIN] ViewSystemLoad (free) In reply to
Nice one Andy Wink.

Works for me nicely, I'm on a shared server so the numbers are a bit higher than your example...

Quote:
1 Min Average: 1.41
5 Min Average: 1.86
15 Min Average: 2.9

It's all relative though I guess, a lot of factors can influence this.
Quote Reply
Re: [aus_dave] [NEW PLUGIN] ViewSystemLoad (free) In reply to
Hi,

Np =)

Its for people like yourself that it was designed (as you say, loads can get quite high on shared servers).

Angelic

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGIN] ViewSystemLoad (free) In reply to
Got it, installed it,
is this bad:

1 Min Average: 6.44
5 Min Average: 9.73
15 Min Average: 9.6

</not a clue>
Quote Reply
Re: [Dinky] [NEW PLUGIN] ViewSystemLoad (free) In reply to
Hi,

Yeah, that is pretty high Unsure

We normally get worried if it goes over 3.0 to 4.0 (I tend to like it at leass than 2.0 if possible, but when doing high CPU processes, its not always possible).

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGIN] ViewSystemLoad (free) In reply to
btw, don't use 'w' and get the data straight from the /proc/loadavg file. Also note that not all systems allow access to proc so you may not have permissions to access /proc (and same applies for running 'w', since that also accesses /proc for its info).

Adrian
Quote Reply
Re: [brewt] [NEW PLUGIN] ViewSystemLoad (free) In reply to
All righty now....
Took me a while, but finally found an errant copy of Awstats running, turned it off and am now getting:

1 Min Average: 0.19
5 Min Average: 0.77
15 Min Average: 1.1

Smile

</not a clue>
Quote Reply
Re: [brewt] [NEW PLUGIN] ViewSystemLoad (free) In reply to
In Reply To:
btw, don't use 'w' and get the data straight from the /proc/loadavg file. Also note that not all systems allow access to proc so you may not have permissions to access /proc (and same applies for running 'w', since that also accesses /proc for its info).
Hi,

Yup, I knew that =) Just wanted a simple interface, as "w" was easier Angelic

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Dinky] [NEW PLUGIN] ViewSystemLoad (free) In reply to
In Reply To:
All righty now....
Took me a while, but finally found an errant copy of Awstats running, turned it off and am now getting:

1 Min Average: 0.19
5 Min Average: 0.77
15 Min Average: 1.1

Smile
heheh. .. worth installing just for those improvments Cool

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGIN] ViewSystemLoad (free) In reply to
If you're going to be lazy, at least uptime instead of w (or is that too long to type Tongue).

Adrian
Quote Reply
Re: [brewt] [NEW PLUGIN] ViewSystemLoad (free) In reply to
Quote:
If you're going to be lazy, at least uptime instead of w (or is that too long to type Tongue).

LOL ... nah, just happened to use `w` .. as I knew the format off by heart, so it was easy to write the regex to grab the values Tongue

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] [NEW PLUGIN] ViewSystemLoad (free) In reply to
If you haven't noticed, the output from w is the same as uptime (minus all the extra user login info that w has).

Adrian
Quote Reply
Re: [brewt] [NEW PLUGIN] ViewSystemLoad (free) In reply to
In Reply To:
If you haven't noticed, the output from w is the same as uptime (minus all the extra user login info that w has).
Oi, thought I asked you not to make me look stupid? Tongue

Angelic

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!